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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin620
RA = 195.757, Dec = 24.5821
tmin = 400032001, tmax = 400291201
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='159076', job_status='RUN', time_executed='2021-09-06 18:07:30.324291', time_epoch_executed='1630976850.32' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159076/ft1_4FGL_J1303.0+2434_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159076/ft2_4FGL_J1303.0+2434_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159076/ft1_4FGL_J1303.0+2434_daily_bin620.fits outfile=/scratch/kocevski/159076/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin620.fits ra=195.757 dec=24.5821 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.39
user 4.11
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159076/ft1_filtered_4FGL_J1303.0+2434_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/159076/ft2_4FGL_J1303.0+2434_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/159076/ltcube_400032001_400291201_4FGL_J1303.0+2434_daily_bin620.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/159076/ft2_4FGL_J1303.0+2434_daily_bin620.fits
.....................!
real 14.97
user 14.38
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159076/ft1_filtered_4FGL_J1303.0+2434_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/159076/ft2_4FGL_J1303.0+2434_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/159076/ltcube_400032001_400291201_4FGL_J1303.0+2434_daily_bin620.fits outfile=/scratch/kocevski/159076/expmap_400032001_400291201_4FGL_J1303.0+2434_daily_bin620.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/159076/ltcube_400032001_400291201_4FGL_J1303.0+2434_daily_bin620.fits
.....................!
real 192.74
user 186.13
sys 5.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/159076/ft1_filtered_4FGL_J1303.0+2434_daily_bin620.fits scfile=/scratch/kocevski/159076/ft2_4FGL_J1303.0+2434_daily_bin620.fits outfile=/scratch/kocevski/159076/cmap_400032001_400291201_4FGL_J1303.0+2434_daily_bin620.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.56
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.405       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4348       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16764E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.0775       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5135       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12353E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4064       1.0000         .10000E-03   10000.    
    10 'norm      '    .11035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.021       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2690       1.0000         .10000E-03   10000.    
    14 'norm      '    .49713       1.0000         .10000E-03   10000.    
    15 'norm      '    4.2283       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.533       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1142       1.0000         .10000E-03   10000.    
    20 'norm      '    7.3278       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0734       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=   7549.926     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3376 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.405        4.8200        .25173E-06    .18847E-04
   2  Prefactor     2.4349        2.4067       -.10587E-06   -.13541E-04
   3  Prefactor     .10000E-03    .90747       -.96295E-07** at limit **
   4  Prefactor     .10001E-03    19.889       -.46780E-05** at limit **
   5  norm          7.0775        .69042        .68052E-08   -.15073E-04
   6  norm          2.5137        3.7680       -.87499E-07    .17407E-04
   7  Prefactor     .10000E-03    4.1840        .57468E-07** at limit **
   8  Prefactor     .10000E-03    173.31       -.20116E-05** at limit **
   9  Prefactor     9.4068        8.3856        .49970E-07   -.10556E-04
  10  norm          .10000E-03    19.095       -.46503E-05** at limit **
  11  Prefactor     25.867        19.393        .68880E-07   -.16781E-04
  12  Prefactor     44.001        26.973        .25409E-06   -.46533E-04
  13  norm          7.2690        4.2578        .23033E-07   -.25402E-04
  14  norm          .49787        4.9760       -.26666E-05    .16776E-05
  15  norm          4.2279        2.8519       -.30674E-08   -.68230E-04
  16  norm          .10000E-03    2.8574        .42261E-07** at limit **
  17  norm          25.533        19.437        .10034E-07   -.10831E-04
  18  Prefactor     .10000E-03    1.2071        .15362E-06** at limit **
  19  Prefactor     9.1138        9.4767       -.37239E-07   -.35196E-04
  20  norm          7.3275        6.2365        .13689E-06   -.10565E-04
  21  Prefactor     .10000E-03    26.140        .25701E-05** at limit **
  22  Prefactor     .10000E-03    13.503       -.67211E-07** at limit **
  23  norm          .10000E-03    4.1216       -.17494E-06** at limit **
  24  Prefactor     .10000E-03    10.143        .57783E-07** at limit **
  25  Prefactor     .10000E-03    49.848        .27285E-05** at limit **
  26  Normalizat    1.2637        .20205        .14103E-06   -.18432E-03
  27  Prefactor     1.0732        .20973       -.10021E-05   -.13745E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4053
  Prefactor  = 2.43491
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.07749
  norm       = 2.51365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.4068
  norm       = 0.000100001
  Prefactor  = 25.8666
  Prefactor  = 44.0005
  norm       = 7.26905
  norm       = 0.497869
  norm       = 4.22794
  norm       = 0.0001
  norm       = 25.533
  Prefactor  = 0.0001
  Prefactor  = 9.11379
  norm       = 7.32749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2637
  Prefactor  = 1.07325
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.926     FROM HESSE     STATUS=OK           508 CALLS     3884 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.405        4.8197        .10933E-03   -1.5003    
   2  Prefactor     2.4349        2.4062        .12338E-03   -1.5396    
   3  Prefactor     .10000E-03    .91330        .80790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    4.7971        .62063E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0775        .69217        .21400E-04   -1.5176    
   6  norm          2.5137        3.7492        .19809E-03   -1.5391    
   7  Prefactor     .10000E-03    4.1896        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    173.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4068        8.3860        .13067E-03   -1.5094    
  10  norm          .10000E-03    3.1950        .49986E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.867        19.411        .78767E-04   -1.4690    
  12  Prefactor     44.001        27.076        .60425E-04   -1.4380    
  13  norm          7.2690        4.2611        .13226E-03   -1.5169    
  14  norm          .49787        5.0217        .37384E-03   -1.5567    
  15  norm          4.2279        2.8465        .11529E-03   -1.5297    
  16  norm          .10000E-03    2.8675        .14318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.533        19.437        .79277E-04   -1.4697    
  18  Prefactor     .10000E-03    3.1055        .18430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.1138        9.4493        .13276E-03   -1.5104    
  20  norm          7.3275        6.2422        .14817E-03   -1.5167    
  21  Prefactor     .10000E-03    26.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.1349        .17217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    50.545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2637        .24247        .29161E-03   -.84657    
  27  Prefactor     1.0732        .25009        .33426E-03   -.90326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13938e-11
Minuit parameter uncertainties:
  1  4.81987
  2  2.40629
  3  2.59838e-06
  4  0.000313201
  5  0.692171
  6  3.74952
  7  4.98455e-08
  8  0.000181855
  9  8.38705
  10  0.000128942
  11  19.4158
  12  27.0837
  13  4.2613
  14  3.16239
  15  2.84662
  16  4.22674e-06
  17  19.4416
  18  1.09508e-05
  19  9.4508
  20  6.24274
  21  9.17858e-06
  22  1.0524e-06
  23  3.0283e-06
  24  3.18231e-06
  25  0.00019664
  26  0.242689
  27  0.250366
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.269e+00  4.261e+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.073e+00  2.504e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.264e+00  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.16
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.50e-05

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) = 7549.82126741
delta logL = 0.104831738016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7549.81527061
delta logL = 0.11082853837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9558       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3491       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0867       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=   7549.815     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      260 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9559        4.1988        .12174E-03   -.34188E-03
   2  alpha         2.3491        .60724        .15219E-01    .15309E-03
   3  Normalizat    1.2408        .24030        .29385E-03   -.53390E-04
   4  Prefactor     1.0867        .25132        .33241E-03   -.57663E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.95589
  alpha      = 2.34905
  Normalizat = 1.24082
  Prefactor  = 1.08668
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.815     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9559        4.1361        .48696E-05   -1.5180    
   2  alpha         2.3491        .59740        .30439E-02   -.60415E-01
   3  Normalizat    1.2408        .24027        .11754E-04   -.85351    
   4  Prefactor     1.0867        .25144        .13296E-04   -.89894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72694e-11
Minuit parameter uncertainties:
  1  4.13629
  2  0.603261
  3  0.240488
  4  0.251719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159076': 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) = 7549.8152706
delta logL = 0.110828549498

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  6.956e+00  4.136e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.349e+00  6.033e-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.087e+00  2.517e-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.241e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.33
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.35 +/- 0.60
Photon Flux (Free Index): 6.75e-08 +/- 5.52e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.33e-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/159076/cmap_HighResolution_400032001_400291201_4FGL_J1303.0+2434_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='2.37e-05', photon_flux_error='2.89e-08', dlogl='1.11e-01', energy_flux='2.56e-05', photon_flux2='6.75e-08', job_status='DONE', time_completed='2021-09-06 18:20:32.273177', photon_index_error2='0.60', photon_index2='2.35', ts='9.16', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='1.26', time_epoch_completed='1630977632.27', return_code='0', job_id='159076', GAL2='1.09', EG2='1.24', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.52e-08', ts2='9.33', photon_index='2.07' WHERE bin_id='620' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:20:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 159076: <4FGL_J1303.0+2434_daily_bin620> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin620 195.757 24.5821 400032001 400291201 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 :                                   779.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

