/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 6 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin421
RA = 195.757, Dec = 24.5821
tmin = 348451201, tmax = 348710401
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='156415', job_status='RUN', time_executed='2021-09-06 17:56:40.595644', time_epoch_executed='1630976200.6' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156415

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156415/ft1_4FGL_J1303.0+2434_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156415/ft2_4FGL_J1303.0+2434_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156415/ft1_4FGL_J1303.0+2434_daily_bin421.fits outfile=/scratch/kocevski/156415/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin421.fits ra=195.757 dec=24.5821 rad=12.0 tmin=348451201.0 tmax=348710401.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.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156415/ft1_filtered_4FGL_J1303.0+2434_daily_bin421.fits" evtable="EVENTS" scfile=/scratch/kocevski/156415/ft2_4FGL_J1303.0+2434_daily_bin421.fits sctable="SC_DATA" outfile=/scratch/kocevski/156415/ltcube_348451201_348710401_4FGL_J1303.0+2434_daily_bin421.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/156415/ft2_4FGL_J1303.0+2434_daily_bin421.fits
.....................!
real 15.47
user 14.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156415/ft1_filtered_4FGL_J1303.0+2434_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/156415/ft2_4FGL_J1303.0+2434_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/156415/ltcube_348451201_348710401_4FGL_J1303.0+2434_daily_bin421.fits outfile=/scratch/kocevski/156415/expmap_348451201_348710401_4FGL_J1303.0+2434_daily_bin421.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/156415/ltcube_348451201_348710401_4FGL_J1303.0+2434_daily_bin421.fits
.....................!
real 192.15
user 186.75
sys 4.57

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/156415/ft1_filtered_4FGL_J1303.0+2434_daily_bin421.fits scfile=/scratch/kocevski/156415/ft2_4FGL_J1303.0+2434_daily_bin421.fits outfile=/scratch/kocevski/156415/cmap_348451201_348710401_4FGL_J1303.0+2434_daily_bin421.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.757 yref=24.5821 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156415/ft1_filtered_4FGL_J1303.0+2434_daily_bin421.fits scfile=/scratch/kocevski/156415/ft2_4FGL_J1303.0+2434_daily_bin421.fits outfile=/scratch/kocevski/156415/cmap_HighResolution_348451201_348710401_4FGL_J1303.0+2434_daily_bin421.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.757 yref=24.5821 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8365       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9336       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.092       1.0000         .10000E-03   10000.    
     5 'norm      '    .26954       1.0000         .10000E-03   10000.    
     6 'norm      '    .11195E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1490       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0832       1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.242       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.499       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0739       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2673       1.0000         .10000E-03   10000.    
    20 'norm      '    .99837       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14667E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.963       1.0000         .10000E-03   10000.    
    23 'norm      '    2.6593       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3521       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.189       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0787       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=   7174.598     FROM MIGRAD    STATUS=CONVERGED   1196 CALLS     4359 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8371        3.5770        .92927E-04   -.81968E-05
   2  Prefactor     .10000E-03    1.5800        .20436E-03** at limit **
   3  Prefactor     3.9339        2.1603        .43958E-03    .10981E-03
   4  Prefactor     10.094        6.7095        .12613E-03    .84726E-05
   5  norm          .26947        .21942        .34983E-03   -.10424E-02
   6  norm          .10012E-03    18.099        .23166E-02** at limit **
   7  Prefactor     7.1500        6.1702        .15003E-03    .72747E-04
   8  Prefactor     .10000E-03    109.50        .18142E-02** at limit **
   9  Prefactor     9.0823        7.7708        .13298E-03    .60184E-04
  10  norm          .10000E-03    1.6325        .10543E-02** at limit **
  11  Prefactor     45.247        17.009        .59608E-04   -.17165E-04
  12  Prefactor     23.500        21.403        .82631E-04   -.12644E-03
  13  norm          2.0741        2.2015        .12549E-03    .20836E-05
  14  norm          .10000E-03    1.3867        .97335E-03** at limit **
  15  norm          .10000E-03    2.9086        .27556E-02** at limit **
  16  norm          .10000E-03    2.0366        .11779E-02** at limit **
  17  norm          .10000E-03    14.396        .18142E-02** at limit **
  18  Prefactor     .10000E-03    4.9615        .24178E-02** at limit **
  19  Prefactor     1.2620        42.798        .39555E-03    .30064E-04
  20  norm          .99644        6.9371        .39891E-03    .10559E-03
  21  Prefactor     .10000E-03    24.410        .13572    ** at limit **
  22  Prefactor     48.008        68.399        .57899E-04    .71080E-05
  23  norm          2.6622        5.2484        .24996E-03    .25780E-03
  24  Prefactor     1.3508        38.792        .18808E-02   -.19343E-04
  25  Prefactor     16.192        24.185        .99542E-04   -.19987E-04
  26  Normalizat    1.0462        .21777        .25677E-03   -.18773E-04
  27  Prefactor     1.0791        .22039        .27028E-03    .21032E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 9.83706
  Prefactor  = 0.0001
  Prefactor  = 3.9339
  Prefactor  = 10.0935
  norm       = 0.269469
  norm       = 0.000100124
  Prefactor  = 7.14996
  Prefactor  = 0.000100003
  Prefactor  = 9.08228
  norm       = 0.0001
  Prefactor  = 45.2465
  Prefactor  = 23.4996
  norm       = 2.07406
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26199
  norm       = 0.996444
  Prefactor  = 0.000100001
  Prefactor  = 48.0078
  norm       = 2.6622
  Prefactor  = 1.35084
  Prefactor  = 16.1918
  Normalizat = 1.04616
  Prefactor  = 1.07907
 **********
 **   18 **HESSE 
 **********

 FCN=   7174.598     FROM HESSE     STATUS=OK           474 CALLS     4833 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8371        3.5768        .37171E-05   -1.5081    
   2  Prefactor     .10000E-03    1.5800        .40873E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9339        2.1601        .17583E-04   -1.5311    
   4  Prefactor     10.094        6.7044        .50452E-05   -1.5072    
   5  norm          .26947        .21930        .13993E-04   -1.5604    
   6  norm          .10012E-03    18.459        .46333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1500        6.1701        .60010E-05   -1.5173    
   8  Prefactor     .10000E-03    109.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.0823        7.7704        .53194E-05   -1.5105    
  10  norm          .10000E-03    1.6326        .21085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.247        17.008        .23843E-05   -1.4362    
  12  Prefactor     23.500        21.401        .33052E-05   -1.4738    
  13  norm          2.0741        2.2015        .50198E-05   -1.5420    
  14  norm          .10000E-03    1.3868        .19467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9204        .55112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0367        .23557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9753        .48356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2620        42.536        .15822E-04   -1.5483    
  20  norm          .99644        6.9195        .15956E-04   -1.5508    
  21  Prefactor     .10000E-03    24.249        .13652       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.008        68.338        .11580E-04   -1.4321    
  23  norm          2.6622        5.2435        .99982E-05   -1.5382    
  24  Prefactor     1.3508        38.469        .75231E-04   -1.5476    
  25  Prefactor     16.192        24.123        .39817E-05   -1.4903    
  26  Normalizat    1.0462        .21783        .10271E-04   -.91500    
  27  Prefactor     1.0791        .22063        .10811E-04   -.90138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12696e-09
Minuit parameter uncertainties:
  1  3.57693
  2  1.13874e-05
  3  2.16012
  4  6.70495
  5  0.219301
  6  0.00302285
  7  6.17064
  8  0.00115372
  9  7.77124
  10  9.12285e-06
  11  17.0093
  12  21.4078
  13  2.20156
  14  2.61578e-07
  15  6.57125e-05
  16  1.24296e-05
  17  1.65867e-06
  18  9.51922e-05
  19  14.664
  20  5.25223
  21  0.000261015
  22  68.4498
  23  5.24439
  24  14.4271
  25  24.1378
  26  0.218019
  27  0.220812
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.074e+00  2.202e+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.079e+00  2.208e-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.046e+00  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.41e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 7.29e-06 +/- 7.74e-06

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

Saving results to:
/scratch/kocevski/156415/likelihoodResults_348451201_348710401_4FGL_J1303.0+2434_daily_bin421.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) = 7172.99115282
delta logL = 1.6070182591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7172.31175107
delta logL = 2.28642000308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23373       1.0000         .10000E-03   10000.    
     2 'alpha     '    .35987       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0784       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=   7172.312     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23354        .26985        .91295E-02   -.89892E-03
   2  alpha         .35952        .51624        .47717        .39870E-05
   3  Normalizat    1.0546        .16658        .57864E-01    .10197E-04
   4  Prefactor     1.0783        .17855        .61123E-01    .85558E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.233536
  alpha      = 0.35952
  Normalizat = 1.05458
  Prefactor  = 1.07831
 **********
 **   18 **HESSE 
 **********

 FCN=   7172.312     FROM HESSE     STATUS=OK            35 CALLS      263 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23354        .52756        .34786E-03   -1.5611    
   2  alpha         .35952        .69590        .25608E-01   -1.0279    
   3  Normalizat    1.0546        .20264        .25588E-03   -.91224    
   4  Prefactor     1.0783        .21720        .27033E-03   -.90163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91241e-12
Minuit parameter uncertainties:
  1  0.527568
  2  0.734915
  3  0.202789
  4  0.217376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156415': 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) = 7172.31175071
delta logL = 2.28642036423

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.335e-01  5.276e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.595e-01  7.349e-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.078e+00  2.174e-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.055e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.11
Ra Dec: 195.757 24.582
Photon Index (Free Index): 0.36 +/- 0.73
Photon Flux (Free Index): 2.76e-09 +/- 2.83e-09
Energy Flux (Free Index): 6.68e-05 +/- 8.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/156415/cmap_HighResolution_348451201_348710401_4FGL_J1303.0+2434_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', comment='SUCCESS', photon_flux='1.41e-08', energy_flux2='6.68e-05', photon_flux_error='1.49e-08', dlogl='2.29e+00', energy_flux='7.29e-06', photon_flux2='2.76e-09', job_status='DONE', time_completed='2021-09-06 18:11:56.513473', photon_index_error2='0.73', photon_index2='0.36', ts='2.55', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='5.90e-08', energy_flux_error2='8.69e-05', EG='1.05', time_epoch_completed='1630977116.51', return_code='0', job_id='156415', GAL2='1.08', EG2='1.05', return_code2='0', energy_flux_error='7.74e-06', photon_flux_error2='2.83e-09', ts2='7.11', photon_index='2.07' WHERE bin_id='421' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:11:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 156415: <4FGL_J1303.0+2434_daily_bin421> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin421> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 17:55:37 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:56:25 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:56:25 2021
Terminated at Mon Sep  6 18:11:57 2021
Results reported at Mon Sep  6 18:11:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin421 195.757 24.5821 348451201 348710401 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 :                                   911.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            980 sec.

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

