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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1434
RA = 195.757, Dec = 24.5821
tmin = 611020801, tmax = 611280001
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='164796', job_status='RUN', time_executed='2021-09-06 18:28:01.494301', time_epoch_executed='1630978081.49' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164796/ft1_4FGL_J1303.0+2434_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164796/ft2_4FGL_J1303.0+2434_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164796/ft1_4FGL_J1303.0+2434_daily_bin1434.fits outfile=/scratch/kocevski/164796/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1434.fits ra=195.757 dec=24.5821 rad=12.0 tmin=611020801.0 tmax=611280001.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.56
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164796/ft1_filtered_4FGL_J1303.0+2434_daily_bin1434.fits" evtable="EVENTS" scfile=/scratch/kocevski/164796/ft2_4FGL_J1303.0+2434_daily_bin1434.fits sctable="SC_DATA" outfile=/scratch/kocevski/164796/ltcube_611020801_611280001_4FGL_J1303.0+2434_daily_bin1434.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/164796/ft2_4FGL_J1303.0+2434_daily_bin1434.fits
.....................!
real 14.78
user 14.27
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164796/ft1_filtered_4FGL_J1303.0+2434_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/164796/ft2_4FGL_J1303.0+2434_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/164796/ltcube_611020801_611280001_4FGL_J1303.0+2434_daily_bin1434.fits outfile=/scratch/kocevski/164796/expmap_611020801_611280001_4FGL_J1303.0+2434_daily_bin1434.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/164796/ltcube_611020801_611280001_4FGL_J1303.0+2434_daily_bin1434.fits
.....................!
real 191.88
user 186.05
sys 5.14

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/164796/ft1_filtered_4FGL_J1303.0+2434_daily_bin1434.fits scfile=/scratch/kocevski/164796/ft2_4FGL_J1303.0+2434_daily_bin1434.fits outfile=/scratch/kocevski/164796/cmap_611020801_611280001_4FGL_J1303.0+2434_daily_bin1434.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164796/ft1_filtered_4FGL_J1303.0+2434_daily_bin1434.fits scfile=/scratch/kocevski/164796/ft2_4FGL_J1303.0+2434_daily_bin1434.fits outfile=/scratch/kocevski/164796/cmap_HighResolution_611020801_611280001_4FGL_J1303.0+2434_daily_bin1434.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.59
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9163       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3167       1.0000         .10000E-03   10000.    
     5 'norm      '    .17479       1.0000         .10000E-03   10000.    
     6 'norm      '    7.8845       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11945E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8927       1.0000         .10000E-03   10000.    
    10 'norm      '    .13615E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.975       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7609       1.0000         .10000E-03   10000.    
    13 'norm      '    .40672       1.0000         .10000E-03   10000.    
    14 'norm      '    7.7532       1.0000         .10000E-03   10000.    
    15 'norm      '    10.523       1.0000         .10000E-03   10000.    
    16 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10801E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .45413E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6646       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5133       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .83170       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93446       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2512       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=   6294.907     FROM MIGRAD    STATUS=CONVERGED   1241 CALLS     3453 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9152        3.6716        .99349E-04   -.29981E-04
   2  Prefactor     3.5301        2.6003        .98800E-04    .35671E-05
   3  Prefactor     3.9961        2.4907        .93264E-04   -.15603E-04
   4  Prefactor     3.3185        7.8366        .22228E-03    .62142E-04
   5  norm          .17482        .15197        .26773E-03   -.43865E-04
   6  norm          7.8871        5.8499        .14280E-03   -.79852E-04
   7  Prefactor     .10000E-03    6.1488        .18142E-02** at limit **
   8  Prefactor     .10000E-03    125.72        .18142E-02** at limit **
   9  Prefactor     6.8930        8.9770        .15282E-03    .54606E-05
  10  norm          .10000E-03    15.395        .23053E-02** at limit **
  11  Prefactor     15.953        15.564        .10021E-03   -.29611E-04
  12  Prefactor     3.7331        16.295        .20818E-03   -.12080E-03
  13  norm          .41165        7.2633        .22000E-02    .25421E-02
  14  norm          7.7524        5.0487        .13956E-03   -.71684E-04
  15  norm          10.519        4.0118        .91944E-04   -.40265E-03
  16  norm          .10000E-03    5.3378        .17764E-02** at limit **
  17  norm          .10199E-03    20.130        .97869E-01** at limit **
  18  Prefactor     .10000E-03    2.8519        .19681E-02** at limit **
  19  Prefactor     .10073E-03    13.116        .67091E-01** at limit **
  20  norm          7.6663        6.5466        .14485E-03    .11326E-03
  21  Prefactor     5.5325        44.231        .17111E-03    .26244E-04
  22  Prefactor     .10000E-03    20.610        .18142E-02** at limit **
  23  norm          .83502        7.3022        .39527E-03    .11893E-03
  24  Prefactor     .10000E-03    4.6997        .16785E-02** at limit **
  25  Prefactor     .10000E-03    5.8357        .18142E-02** at limit **
  26  Normalizat    .93427        .21505        .26061E-03   -.84238E-04
  27  Prefactor     1.2512        .23184        .25817E-03   -.13570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.91517
  Prefactor  = 3.53014
  Prefactor  = 3.99613
  Prefactor  = 3.31851
  norm       = 0.174819
  norm       = 7.88708
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.89303
  norm       = 0.000100001
  Prefactor  = 15.9525
  Prefactor  = 3.73312
  norm       = 0.411646
  norm       = 7.7524
  norm       = 10.5187
  norm       = 0.0001
  norm       = 0.000101993
  Prefactor  = 0.000100001
  Prefactor  = 0.000100729
  norm       = 7.66627
  Prefactor  = 5.53254
  Prefactor  = 0.0001
  norm       = 0.835018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.934271
  Prefactor  = 1.25121
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.907     FROM HESSE     STATUS=OK           486 CALLS     3939 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9152        3.6720        .39740E-05   -1.5182    
   2  Prefactor     3.5301        2.6005        .39520E-05   -1.5332    
   3  Prefactor     3.9961        2.4905        .37306E-05   -1.5308    
   4  Prefactor     3.3185        7.8326        .88912E-05   -1.5344    
   5  norm          .17482        .15195        .10709E-04   -1.5624    
   6  norm          7.8871        5.8478        .57119E-05   -1.5146    
   7  Prefactor     .10000E-03    6.1500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    125.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8930        8.9721        .30563E-04   -1.5183    
  10  norm          .10000E-03    15.537        .46107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.953        15.561        .40083E-05   -1.4909    
  12  Prefactor     3.7331        16.261        .83273E-05   -1.5322    
  13  norm          .41165        7.2344        .44001E-03   -1.5580    
  14  norm          7.7524        5.0485        .55825E-05   -1.5151    
  15  norm          10.519        4.0101        .18389E-04   -1.5059    
  16  norm          .10000E-03    5.3393        .35529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10199E-03    19.227        .10113       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8558        .39363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10073E-03    11.225        .74371E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.6663        6.5415        .57939E-05   -1.5154    
  21  Prefactor     5.5325        44.214        .68446E-05   -1.5237    
  22  Prefactor     .10000E-03    20.610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .83502        7.2898        .15811E-04   -1.5525    
  24  Prefactor     .10000E-03    4.7000        .33569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.8358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93427        .21500        .10424E-04   -.95266    
  27  Prefactor     1.2512        .23203        .51634E-04   -.84770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.024e-09
Minuit parameter uncertainties:
  1  3.67208
  2  2.60057
  3  2.49056
  4  7.83502
  5  0.151947
  6  5.84821
  7  6.03203e-06
  8  0.00111043
  9  8.97386
  10  0.000179607
  11  15.5648
  12  15.5894
  13  3.45145
  14  5.04881
  15  4.01018
  16  2.46961e-05
  17  0.0123842
  18  0.000130391
  19  0.00572226
  20  6.54215
  21  31.3118
  22  7.17254e-06
  23  4.93493
  24  7.12681e-06
  25  3.50484e-06
  26  0.215193
  27  0.232218
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.116e-01  3.451e+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.251e+00  2.322e-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.343e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/164796/likelihoodResults_611020801_611280001_4FGL_J1303.0+2434_daily_bin1434.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) = 6293.55463956
delta logL = 1.35193128406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6293.53663123
delta logL = 1.36993961575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39856       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2016       1.0000          .0000       5.0000    
     3 'Normalizat'    .82158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3259       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=   6293.537     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      221 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39592        4.0850        .71427E-02   -.30536E-02
   2  alpha         4.2050        4.5130        .34507       -.39144E-04
   3  Normalizat    .82166        .48274E-01    .43891E-01   -.23227E-03
   4  Prefactor     1.3258        .54591E-01    .56939E-01   -.14891E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.395922
  alpha      = 4.20499
  Normalizat = 0.821662
  Prefactor  = 1.32582
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.537     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39592        1.2607        .32318E-04   -1.5582    
   2  alpha         4.2050        1.5098        .15511E-02    .75049    
   3  Normalizat    .82166        .21370        .27583E-03   -.99270    
   4  Prefactor     1.3258        .23490        .25177E-03   -.82542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48003e-10
Minuit parameter uncertainties:
  1  1.26076
  2  1.77632
  3  0.213919
  4  0.235087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164796': 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) = 6293.53662765
delta logL = 1.36994318954

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.959e-01  1.261e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  4.205e+00  1.776e+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:  1.326e+00  2.351e-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:  8.217e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 195.757 24.582
Photon Index (Free Index): 4.20 +/- 1.78
Photon Flux (Free Index): 8.25e-08 +/- 5.79e-08
Energy Flux (Free Index): 1.24e-05 +/- 8.76e-06

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/164796/cmap_HighResolution_611020801_611280001_4FGL_J1303.0+2434_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='1.37e+00', photon_flux2='8.25e-08', job_status='DONE', time_completed='2021-09-06 18:41:31.251995', photon_index_error2='1.78', photon_index2='4.20', ts='0.02', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='6.52e-08', energy_flux_error2='8.76e-06', EG='0.93', time_epoch_completed='1630978891.25', return_code='0', job_id='164796', GAL2='1.33', EG2='0.82', return_code2='0', photon_flux_error2='5.79e-08', ts2='2.99', photon_index='2.07' WHERE bin_id='1434' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:41:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 164796: <4FGL_J1303.0+2434_daily_bin1434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1434 195.757 24.5821 611020801 611280001 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 :                                   777.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            972 sec.

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

