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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1329
RA = 195.757, Dec = 24.5821
tmin = 583804801, tmax = 584064001
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='163550', job_status='RUN', time_executed='2021-09-06 18:23:38.460887', time_epoch_executed='1630977818.46' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163550/ft1_4FGL_J1303.0+2434_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163550/ft2_4FGL_J1303.0+2434_daily_bin1329.fits


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

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

Done.
real 3.48
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163550/ft2_4FGL_J1303.0+2434_daily_bin1329.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/163550/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1329.fits evtable="EVENTS" outfile="/scratch/kocevski/163550/ft1_filtered_4FGL_J1303.0+2434_daily_bin1329.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.55
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163550/ft1_filtered_4FGL_J1303.0+2434_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/163550/ft2_4FGL_J1303.0+2434_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/163550/ltcube_583804801_584064001_4FGL_J1303.0+2434_daily_bin1329.fits outfile=/scratch/kocevski/163550/expmap_583804801_584064001_4FGL_J1303.0+2434_daily_bin1329.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/163550/ltcube_583804801_584064001_4FGL_J1303.0+2434_daily_bin1329.fits
.....................!
real 201.59
user 194.64
sys 4.69

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/163550/ft1_filtered_4FGL_J1303.0+2434_daily_bin1329.fits scfile=/scratch/kocevski/163550/ft2_4FGL_J1303.0+2434_daily_bin1329.fits outfile=/scratch/kocevski/163550/cmap_583804801_584064001_4FGL_J1303.0+2434_daily_bin1329.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163550/ft1_filtered_4FGL_J1303.0+2434_daily_bin1329.fits scfile=/scratch/kocevski/163550/ft2_4FGL_J1303.0+2434_daily_bin1329.fits outfile=/scratch/kocevski/163550/cmap_HighResolution_583804801_584064001_4FGL_J1303.0+2434_daily_bin1329.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0343       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10505E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    32.623       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    121.21       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5576       1.0000         .10000E-03   10000.    
    10 'norm      '    .93470E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9942       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18026E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    17.002       1.0000         .10000E-03   10000.    
    15 'norm      '    12.553       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .86917       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8560       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.203       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.317       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1990       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92794       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=   6332.881     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     2910 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0412        3.7525       -.22305E-06   -.23392E-03
   2  Prefactor     .10000E-03    1.7083       -.14298E-06** at limit **
   3  Prefactor     1.9067        2.8444        .16528E-05    .17778E-03
   4  Prefactor     .10000E-03    7.1198       -.76592E-07** at limit **
   5  norm          .10000E-03    .10250        .57037E-07** at limit **
   6  norm          32.630        8.2811       -.14656E-06   -.12618E-03
   7  Prefactor     17.091        13.884       -.67365E-06   -.29049E-04
   8  Prefactor     121.11        72.610        .86592E-05    .67568E-04
   9  Prefactor     3.5594        6.5812        .23083E-05    .17831E-03
  10  norm          .10456        2.2259        .88729E-06   -.10595E-02
  11  Prefactor     4.9970        13.213        .21891E-05    .38016E-04
  12  Prefactor     .10000E-03    11.345       -.12013E-05** at limit **
  13  norm          .10061E-03    1.7433       -.79861E-06** at limit **
  14  norm          16.999        6.7567        .66156E-07    .34005E-04
  15  norm          12.546        4.4020        .15472E-06    .11257E-03
  16  norm          .10000E-03    3.9253       -.82824E-07** at limit **
  17  norm          .10000E-03    5.9468       -.30787E-07** at limit **
  18  Prefactor     .86960        2.3460        .11861E-06   -.25585E-04
  19  Prefactor     6.8564        11.351        .17572E-06    .11185E-04
  20  norm          .10000E-03    1.7879       -.17448E-08** at limit **
  21  Prefactor     29.202        26.741        .24961E-06    .99468E-06
  22  Prefactor     .10000E-03    24.911       -.10692E-05** at limit **
  23  norm          14.318        8.0812        .11111E-06    .39000E-05
  24  Prefactor     .10000E-03    8.0751        .19760E-06** at limit **
  25  Prefactor     .10000E-03    13.928        .11893E-05** at limit **
  26  Normalizat    1.1989        .18238       -.75278E-08    .69036E-04
  27  Prefactor     .92800        .19291       -.18320E-05    .29426E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.04117
  Prefactor  = 0.0001
  Prefactor  = 1.90672
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.6302
  Prefactor  = 17.0914
  Prefactor  = 121.115
  Prefactor  = 3.55941
  norm       = 0.10456
  Prefactor  = 4.99696
  Prefactor  = 0.0001
  norm       = 0.000100607
  norm       = 16.9988
  norm       = 12.5456
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.869597
  Prefactor  = 6.85643
  norm       = 0.0001
  Prefactor  = 29.2015
  Prefactor  = 0.0001
  norm       = 14.318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19888
  Prefactor  = 0.928001
 **********
 **   18 **HESSE 
 **********

 FCN=   6332.881     FROM HESSE     STATUS=OK           506 CALLS     3416 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0412        3.5954        .95988E-04   -1.5141    
   2  Prefactor     .10000E-03    2.9930        .19205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9067        2.8613        .74801E-03   -1.5432    
   4  Prefactor     .10000E-03    27.015        .38221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .13713        .49261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          32.630        7.7745        .70155E-04   -1.4565    
   7  Prefactor     17.091        13.823        .96900E-04   -1.4881    
   8  Prefactor     121.11        73.537        .18278E-03   -1.3502    
   9  Prefactor     3.5594        6.5622        .10714E-02   -1.5331    
  10  norm          .10456        15.107        .21491E-02   -1.5643    
  11  Prefactor     4.9970        13.202        .89975E-03   -1.5261    
  12  Prefactor     .10000E-03    11.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10061E-03    2.7720        .37271E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.999        6.7464        .97134E-04   -1.4883    
  15  norm          12.546        4.3873        .92866E-04   -1.4999    
  16  norm          .10000E-03    3.9368        .15363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.9514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .86960        2.2621        .18447E-03   -1.5521    
  19  Prefactor     6.8564        11.232        .15323E-03   -1.5184    
  20  norm          .10000E-03    1.7924        .10388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.202        26.741        .74138E-04   -1.4627    
  22  Prefactor     .10000E-03    24.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.318        8.0816        .10586E-03   -1.4951    
  24  Prefactor     .10000E-03    8.1039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1989        .21706        .24379E-03   -.86637    
  27  Prefactor     .92800        .22773        .29653E-03   -.95169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52014e-09
Minuit parameter uncertainties:
  1  3.5955
  2  1.79599e-05
  3  2.86146
  4  0.000116905
  5  5.85138e-07
  6  7.77471
  7  13.8256
  8  73.5927
  9  6.56349
  10  2.51303
  11  13.2099
  12  5.28418e-05
  13  0.00259536
  14  6.74668
  15  4.3874
  16  1.05104e-05
  17  1.50594e-06
  18  2.26228
  19  11.2352
  20  8.58522e-07
  21  26.7524
  22  1.50667e-05
  23  8.08226
  24  3.35632e-06
  25  1.86727e-05
  26  0.217228
  27  0.227959
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.006e-04  2.595e-03  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:  9.280e-01  2.280e-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.199e+00  2.172e-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: 5.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163550/likelihoodResults_583804801_584064001_4FGL_J1303.0+2434_daily_bin1329.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) = 6332.8806763
delta logL = -0.00010159071644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6332.85715707
delta logL = 0.023417644592

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6332.857     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      291 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32989        28.916        .31577E-01    .97686E-03
   2  alpha         2.7386        2.6692        .41391        .28191E-04
   3  Normalizat    1.1934        .23687E-01    .55245E-01   -.15999E-03
   4  Prefactor     .92948        .25853E-01    .66989E-01   -.86388E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.329895
  alpha      = 2.73858
  Normalizat = 1.19339
  Prefactor  = 0.929478
 **********
 **   18 **HESSE 
 **********

 FCN=   6332.857     FROM HESSE     STATUS=OK            33 CALLS      324 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32989        6.3889        .16495E-02   -1.5593    
   2  alpha         2.7386        3.8468        .49016E-01    .95579E-01
   3  Normalizat    1.1934        .20910        .24429E-03   -.86807    
   4  Prefactor     .92948        .22618        .29631E-03   -.95119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02215e-08
Minuit parameter uncertainties:
  1  2.90348
  2  3.67432
  3  0.209244
  4  0.226405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163550': 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) = 6332.85715664
delta logL = 0.0234180699563

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.299e-01  2.903e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.739e+00  3.674e+00  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:  9.295e-01  2.264e-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.193e+00  2.092e-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/163550/cmap_HighResolution_583804801_584064001_4FGL_J1303.0+2434_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-06 18:36:49.730635', job_id='163550', GAL2='0.93', fit_tolerance='1e-08', EG2='1.19', EG='1.20', time_epoch_completed='1630978609.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.34e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1329' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 163550: <4FGL_J1303.0+2434_daily_bin1329> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1329 195.757 24.5821 583804801 584064001 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 :                                   763.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            974 sec.

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

