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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1465
RA = 195.757, Dec = 24.5821
tmin = 619056001, tmax = 619315201
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='164844', job_status='RUN', time_executed='2021-09-06 18:28:14.352625', time_epoch_executed='1630978094.35' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164844

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164844/ft1_4FGL_J1303.0+2434_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164844/ft2_4FGL_J1303.0+2434_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164844/ft1_4FGL_J1303.0+2434_daily_bin1465.fits outfile=/scratch/kocevski/164844/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1465.fits ra=195.757 dec=24.5821 rad=12.0 tmin=619056001.0 tmax=619315201.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.65
user 3.34
sys 0.25

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164844/ft1_filtered_4FGL_J1303.0+2434_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/164844/ft2_4FGL_J1303.0+2434_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/164844/ltcube_619056001_619315201_4FGL_J1303.0+2434_daily_bin1465.fits outfile=/scratch/kocevski/164844/expmap_619056001_619315201_4FGL_J1303.0+2434_daily_bin1465.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/164844/ltcube_619056001_619315201_4FGL_J1303.0+2434_daily_bin1465.fits
.....................!
real 192.14
user 186.04
sys 5.58

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/164844/ft1_filtered_4FGL_J1303.0+2434_daily_bin1465.fits scfile=/scratch/kocevski/164844/ft2_4FGL_J1303.0+2434_daily_bin1465.fits outfile=/scratch/kocevski/164844/cmap_619056001_619315201_4FGL_J1303.0+2434_daily_bin1465.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/164844/ft1_filtered_4FGL_J1303.0+2434_daily_bin1465.fits scfile=/scratch/kocevski/164844/ft2_4FGL_J1303.0+2434_daily_bin1465.fits outfile=/scratch/kocevski/164844/cmap_HighResolution_619056001_619315201_4FGL_J1303.0+2434_daily_bin1465.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22877E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4220       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3294       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.552       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.220       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7603       1.0000         .10000E-03   10000.    
    10 'norm      '    11.296       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3721       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7441       1.0000         .10000E-03   10000.    
    15 'norm      '    .79362       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6621       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1741       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.281       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0159       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.899       1.0000         .10000E-03   10000.    
    23 'norm      '    3.8026       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .26430E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0105       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1302       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=   6301.787     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     2937 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6163        .53420E-07** at limit **
   2  Prefactor     3.4214        2.3163       -.78669E-07   -.56953E-04
   3  Prefactor     1.3293        1.3819       -.23382E-07    .24689E-06
   4  Prefactor     12.552        6.0983        .10618E-06    .41326E-04
   5  norm          .10000E-03    .79014E-01   -.16332E-07** at limit **
   6  norm          .10000E-03    1.5853        .60045E-07** at limit **
   7  Prefactor     .10000E-03    3.9136       -.10658E-06** at limit **
   8  Prefactor     48.203        73.123       -.14869E-04   -.11693E-03
   9  Prefactor     7.7602        8.4374       -.19751E-06   -.23654E-04
  10  norm          11.296        6.7310        .29828E-06   -.26155E-03
  11  Prefactor     56.916        20.851        .79133E-07    .23169E-04
  12  Prefactor     .10000E-03    35.528        .85664E-07** at limit **
  13  norm          2.3720        2.8145        .14156E-07   -.38774E-03
  14  norm          1.7443        3.8352        .82565E-07   -.14977E-03
  15  norm          .79543        11.338        .28486E-05   -.17837E-03
  16  norm          7.6601        11.743       -.18204E-05   -.26317E-03
  17  norm          .10000E-03    6.5709        .70717E-08** at limit **
  18  Prefactor     3.1741        4.1552       -.29340E-06   -.32489E-03
  19  Prefactor     .10000E-03    5.6941       -.16843E-06** at limit **
  20  norm          22.281        8.9259       -.14145E-06    .11398E-04
  21  Prefactor     4.0137        97.553       -.36704E-05   -.95973E-05
  22  Prefactor     15.900        52.498        .12491E-05   -.14207E-07
  23  norm          3.8024        5.1840        .49938E-06   -.14942E-02
  24  Prefactor     .10004E-03    15.437       -.16834E-06** at limit **
  25  Prefactor     .10000E-03    10.506       -.30233E-07** at limit **
  26  Normalizat    1.0104        .19353        .49512E-06   -.45212E-04
  27  Prefactor     1.1303        .19924        .21616E-06   -.21345E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.42138
  Prefactor  = 1.32925
  Prefactor  = 12.5515
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2025
  Prefactor  = 7.76021
  norm       = 11.2963
  Prefactor  = 56.9158
  Prefactor  = 0.0001
  norm       = 2.37201
  norm       = 1.74434
  norm       = 0.795434
  norm       = 7.66007
  norm       = 0.0001
  Prefactor  = 3.17407
  Prefactor  = 0.0001
  norm       = 22.2814
  Prefactor  = 4.01369
  Prefactor  = 15.9003
  norm       = 3.80237
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Normalizat = 1.01042
  Prefactor  = 1.13026
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.787     FROM HESSE     STATUS=OK           500 CALLS     3437 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.616        .19138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4214        2.2692        .94258E-04   -1.5338    
   3  Prefactor     1.3293        1.3817        .91966E-04   -1.5477    
   4  Prefactor     12.552        6.0930        .11307E-03   -1.4999    
   5  norm          .10000E-03    .90943E-01    .43335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.5948        .97566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9231        .15335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.203        72.218        .57746E-04   -1.4318    
   9  Prefactor     7.7602        8.4266        .14395E-03   -1.5151    
  10  norm          11.296        6.6414        .11920E-03   -1.5036    
  11  Prefactor     56.916        20.834        .53174E-04   -1.4198    
  12  Prefactor     .10000E-03    35.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3720        2.8190        .70330E-03   -1.5400    
  14  norm          1.7443        3.7852        .22074E-03   -1.5444    
  15  norm          .79543        9.0024        .26504E-03   -1.5530    
  16  norm          7.6601        10.495        .14487E-03   -1.5154    
  17  norm          .10000E-03    6.5731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1741        4.1030        .16354E-03   -1.5352    
  19  Prefactor     .10000E-03    5.6999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.281        9.4447        .84857E-04   -1.4764    
  21  Prefactor     4.0137        98.077        .20124E-03   -1.5307    
  22  Prefactor     15.900        52.385        .10045E-03   -1.4910    
  23  norm          3.8024        9.2461        .10350E-02   -1.5318    
  24  Prefactor     .10004E-03    176.34        .59084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0104        .22519        .26987E-03   -.92682    
  27  Prefactor     1.1303        .23518        .27340E-03   -.88505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50657e-09
Minuit parameter uncertainties:
  1  6.06177e-05
  2  2.26929
  3  1.38172
  4  6.09329
  5  3.82804e-07
  6  5.45872e-07
  7  8.99864e-09
  8  72.3498
  9  8.4279
  10  6.64181
  11  20.8367
  12  8.32456e-06
  13  2.81916
  14  3.7857
  15  5.35263
  16  10.4972
  17  6.80209e-07
  18  4.1034
  19  4.2863e-06
  20  9.4453
  21  39.754
  22  52.537
  23  9.2496
  24  0.00503765
  25  5.42535e-06
  26  0.225399
  27  0.235393
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.372e+00  2.819e+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.130e+00  2.354e-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.010e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 8.34e-06 +/- 9.91e-06

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

Saving results to:
/scratch/kocevski/164844/likelihoodResults_619056001_619315201_4FGL_J1303.0+2434_daily_bin1465.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) = 6301.29083975
delta logL = 0.496418329441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6301.17489272
delta logL = 0.612365353144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1490       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0546       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1260       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=   6301.175     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1490        1.3131        .10800E-01   -.19948E-03
   2  alpha         1.0542        .50365        .45364       -.43918E-04
   3  Normalizat    1.0216        .18343        .43123E-01    .66193E-05
   4  Prefactor     1.1260        .19620        .61907E-01    .96099E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14899
  alpha      = 1.05418
  Normalizat = 1.02164
  Prefactor  = 1.126
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.175     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1490        1.8372        .90948E-04   -1.5494    
   2  alpha         1.0542        .74831        .18528E-01   -.61668    
   3  Normalizat    1.0216        .21536        .26848E-03   -.92309    
   4  Prefactor     1.1260        .23026        .27380E-03   -.88640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07321e-11
Minuit parameter uncertainties:
  1  1.83731
  2  0.766201
  3  0.215543
  4  0.230459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164844': 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) = 6301.17489238
delta logL = 0.612365697312

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.149e+00  1.837e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.054e+00  7.662e-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.126e+00  2.305e-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.022e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.05 +/- 0.77
Photon Flux (Free Index): 4.68e-09 +/- 6.29e-09
Energy Flux (Free Index): 2.79e-05 +/- 4.62e-05

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/164844/cmap_HighResolution_619056001_619315201_4FGL_J1303.0+2434_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-05', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='2.79e-05', photon_flux_error='1.91e-08', dlogl='6.12e-01', energy_flux='8.34e-06', photon_flux2='4.68e-09', job_status='DONE', time_completed='2021-09-06 18:40:55.999438', photon_index_error2='0.77', photon_index2='1.05', ts='1.66', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='7.37e-08', energy_flux_error2='4.62e-05', EG='1.01', time_epoch_completed='1630978856.0', return_code='0', job_id='164844', GAL2='1.13', EG2='1.02', return_code2='0', energy_flux_error='9.91e-06', photon_flux_error2='6.29e-09', ts2='2.89', photon_index='2.07' WHERE bin_id='1465' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:40:56 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1465 195.757 24.5821 619056001 619315201 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 :                                   725.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            932 sec.

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

