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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1415
RA = 195.757, Dec = 24.5821
tmin = 606096001, tmax = 606355201
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='164767', job_status='RUN', time_executed='2021-09-06 18:27:22.325149', time_epoch_executed='1630978042.33' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164767

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164767/ft1_4FGL_J1303.0+2434_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164767/ft2_4FGL_J1303.0+2434_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164767/ft1_4FGL_J1303.0+2434_daily_bin1415.fits outfile=/scratch/kocevski/164767/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1415.fits ra=195.757 dec=24.5821 rad=12.0 tmin=606096001.0 tmax=606355201.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.71
user 3.45
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164767/ft1_filtered_4FGL_J1303.0+2434_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/164767/ft2_4FGL_J1303.0+2434_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/164767/ltcube_606096001_606355201_4FGL_J1303.0+2434_daily_bin1415.fits outfile=/scratch/kocevski/164767/expmap_606096001_606355201_4FGL_J1303.0+2434_daily_bin1415.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/164767/ltcube_606096001_606355201_4FGL_J1303.0+2434_daily_bin1415.fits
.....................!
real 192.89
user 188.06
sys 4.38

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/164767/ft1_filtered_4FGL_J1303.0+2434_daily_bin1415.fits scfile=/scratch/kocevski/164767/ft2_4FGL_J1303.0+2434_daily_bin1415.fits outfile=/scratch/kocevski/164767/cmap_606096001_606355201_4FGL_J1303.0+2434_daily_bin1415.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.61
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164767/ft1_filtered_4FGL_J1303.0+2434_daily_bin1415.fits scfile=/scratch/kocevski/164767/ft2_4FGL_J1303.0+2434_daily_bin1415.fits outfile=/scratch/kocevski/164767/cmap_HighResolution_606096001_606355201_4FGL_J1303.0+2434_daily_bin1415.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.64
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24361       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.7391       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12956E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3669       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4034       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8178       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5960       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5410       1.0000         .10000E-03   10000.    
    16 'norm      '    41.380       1.0000         .10000E-03   10000.    
    17 'norm      '    .58458       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5533       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4209       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.658       1.0000         .10000E-03   10000.    
    23 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.568       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99988       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0688       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=   5572.542     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3372 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3116        .10306E-07** at limit **
   2  Prefactor     7.9065        3.0143        .33614E-08   -.12572E-04
   3  Prefactor     .10000E-03    .94877        .21409E-07** at limit **
   4  Prefactor     .23931        3.0814       -.28122E-06   -.73867E-04
   5  norm          .10000E-03    .59875E-01    .11926E-07** at limit **
   6  norm          3.7390        3.7356        .26882E-07   -.30934E-04
   7  Prefactor     10.433        10.069        .42397E-07   -.99072E-05
   8  Prefactor     .10000E-03    59.320        .43574E-06** at limit **
   9  Prefactor     1.3667        1.2307        .30013E-06   -.14140E-02
  10  norm          2.4043        2.5671       -.99096E-07    .15234E-04
  11  Prefactor     .10000E-03    5.0263        .19276E-07** at limit **
  12  Prefactor     .10000E-03    11.867       -.39969E-06** at limit **
  13  norm          1.8178        2.1164        .83707E-08    .55836E-05
  14  norm          1.5961        3.6258        .12371E-08   -.26573E-05
  15  norm          2.5538        8.2385        .22671E-05   -.21541E-04
  16  norm          41.360        18.263       -.11868E-05    .25406E-04
  17  norm          .55421        64.184        .11092E-04    .37785E-04
  18  Prefactor     3.0576        3.7765       -.60055E-06   -.10294E-03
  19  Prefactor     .10000E-03    8.8764        .52562E-07** at limit **
  20  norm          1.5484        6.0243        .71718E-07   -.52692E-04
  21  Prefactor     5.4253        64.012       -.23985E-05   -.72313E-06
  22  Prefactor     53.647        55.411        .33952E-05    .10276E-05
  23  norm          .10000E-03    5.7562        .13715E-06** at limit **
  24  Prefactor     .10000E-03    19.480        .40230E-06** at limit **
  25  Prefactor     13.562        19.924        .52404E-06   -.12984E-04
  26  Normalizat    1.0002        .17784       -.31456E-06   -.20792E-04
  27  Prefactor     1.0685        .19120       -.31971E-06   -.20935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.90651
  Prefactor  = 0.0001
  Prefactor  = 0.239306
  norm       = 0.0001
  norm       = 3.73899
  Prefactor  = 10.4327
  Prefactor  = 0.0001
  Prefactor  = 1.36671
  norm       = 2.40429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81778
  norm       = 1.59614
  norm       = 2.55381
  norm       = 41.3601
  norm       = 0.554214
  Prefactor  = 3.05764
  Prefactor  = 0.0001
  norm       = 1.54841
  Prefactor  = 5.42527
  Prefactor  = 53.647
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5617
  Normalizat = 1.0002
  Prefactor  = 1.06853
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.542     FROM HESSE     STATUS=OK           498 CALLS     3870 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3219        .83359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9065        3.0090        .77357E-04   -1.5146    
   3  Prefactor     .10000E-03    .96345        .70921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23931        16.499        .24637E-02   -1.5610    
   5  norm          .10000E-03    .67058E-01    .35571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.7390        3.7345        .13647E-03   -1.5321    
   7  Prefactor     10.433        10.061        .12406E-03   -1.5062    
   8  Prefactor     .10000E-03    59.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3667        4.4083        .13766E-02   -1.5474    
  10  norm          2.4043        2.5653        .11997E-03   -1.5398    
  11  Prefactor     .10000E-03    5.0380        .16345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8178        2.1134        .11400E-03   -1.5438    
  14  norm          1.5961        3.5752        .20577E-03   -1.5455    
  15  norm          2.5538        8.3015        .22164E-03   -1.5388    
  16  norm          41.360        18.337        .62316E-04   -1.4421    
  17  norm          .55421        64.698        .46466E-02   -1.5559    
  18  Prefactor     3.0576        3.7647        .14648E-03   -1.5358    
  19  Prefactor     .10000E-03    8.8932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5484        5.9576        .33712E-03   -1.5459    
  21  Prefactor     5.4253        64.310        .17259E-03   -1.5242    
  22  Prefactor     53.647        55.439        .54756E-04   -1.4242    
  23  norm          .10000E-03    5.8127        .17439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.562        19.974        .10874E-03   -1.4971    
  26  Normalizat    1.0002        .21009        .24123E-03   -.93024    
  27  Prefactor     1.0685        .22713        .25914E-03   -.90479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38549e-08
Minuit parameter uncertainties:
  1  5.67113e-07
  2  3.00906
  3  5.03081e-07
  4  3.97435
  5  5.94557e-08
  6  3.73473
  7  10.0624
  8  1.76583e-05
  9  4.40932
  10  2.56538
  11  2.8315e-06
  12  1.44742e-05
  13  2.11353
  14  3.57563
  15  8.30524
  16  18.3395
  17  11.9883
  18  3.76498
  19  1.06869e-06
  20  5.95989
  21  37.4076
  22  55.4923
  23  1.46051e-05
  24  6.35484e-05
  25  19.9841
  26  0.210265
  27  0.227337
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.818e+00  2.114e+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.069e+00  2.273e-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.000e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.23e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 6.39e-06 +/- 7.43e-06

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

Saving results to:
/scratch/kocevski/164767/likelihoodResults_606096001_606355201_4FGL_J1303.0+2434_daily_bin1415.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) = 5572.17453888
delta logL = 0.367121498919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5572.16188818
delta logL = 0.379772203314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4863       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2784       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0642       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=   5572.162     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      199 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4863        1.6482        .87953E-02    .26675E-03
   2  alpha         1.2784        .56563        .50000        .21884E-04
   3  Normalizat    1.0078        .16908        .46265E-01    .29142E-04
   4  Prefactor     1.0642        .18785        .58692E-01   -.25970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48634
  alpha      = 1.27844
  Normalizat = 1.00783
  Prefactor  = 1.0642
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.162     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4863        1.9452        .98498E-04   -1.5464    
   2  alpha         1.2784        .77496        .19103E-01   -.51051    
   3  Normalizat    1.0078        .19884        .24039E-03   -.92768    
   4  Prefactor     1.0642        .22091        .25954E-03   -.90619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67797e-10
Minuit parameter uncertainties:
  1  1.94527
  2  0.792263
  3  0.198987
  4  0.221096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164767': 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) = 5572.16188818
delta logL = 0.379772203471

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.486e+00  1.945e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.278e+00  7.923e-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.064e+00  2.211e-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.008e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.28 +/- 0.79
Photon Flux (Free Index): 5.77e-09 +/- 7.69e-09
Energy Flux (Free Index): 1.88e-05 +/- 3.42e-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/164767/cmap_HighResolution_606096001_606355201_4FGL_J1303.0+2434_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-05', comment='SUCCESS', photon_flux='1.23e-08', energy_flux2='1.88e-05', photon_flux_error='1.43e-08', dlogl='3.80e-01', energy_flux='6.39e-06', photon_flux2='5.77e-09', job_status='DONE', time_completed='2021-09-06 18:40:27.731722', photon_index_error2='0.79', photon_index2='1.28', ts='1.96', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='5.93e-08', energy_flux_error2='3.42e-05', EG='1.00', time_epoch_completed='1630978827.73', return_code='0', job_id='164767', GAL2='1.06', EG2='1.01', return_code2='0', energy_flux_error='7.43e-06', photon_flux_error2='7.69e-09', ts2='2.72', photon_index='2.07' WHERE bin_id='1415' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:40:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 164767: <4FGL_J1303.0+2434_daily_bin1415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1415 195.757 24.5821 606096001 606355201 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 :                                   729.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            911 sec.

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

