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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1599
RA = 195.757, Dec = 24.5821
tmin = 653788801, tmax = 654048001
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='953709', job_status='RUN', time_executed='2021-09-23 00:28:55.593417', time_epoch_executed='1632382135.59' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953709

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953709/ft1_4FGL_J1303.0+2434_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953709/ft2_4FGL_J1303.0+2434_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953709/ft1_4FGL_J1303.0+2434_daily_bin1599.fits outfile=/scratch/kocevski/953709/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1599.fits ra=195.757 dec=24.5821 rad=12.0 tmin=653788801.0 tmax=654048001.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.93
user 3.69
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953709/ft1_filtered_4FGL_J1303.0+2434_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/953709/ft2_4FGL_J1303.0+2434_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/953709/ltcube_653788801_654048001_4FGL_J1303.0+2434_daily_bin1599.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/953709/ft2_4FGL_J1303.0+2434_daily_bin1599.fits
.....................!
real 16.75
user 16.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953709/ft1_filtered_4FGL_J1303.0+2434_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/953709/ft2_4FGL_J1303.0+2434_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/953709/ltcube_653788801_654048001_4FGL_J1303.0+2434_daily_bin1599.fits outfile=/scratch/kocevski/953709/expmap_653788801_654048001_4FGL_J1303.0+2434_daily_bin1599.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/953709/ltcube_653788801_654048001_4FGL_J1303.0+2434_daily_bin1599.fits
.....................!
real 193.65
user 188.08
sys 5.12

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/953709/ft1_filtered_4FGL_J1303.0+2434_daily_bin1599.fits scfile=/scratch/kocevski/953709/ft2_4FGL_J1303.0+2434_daily_bin1599.fits outfile=/scratch/kocevski/953709/cmap_653788801_654048001_4FGL_J1303.0+2434_daily_bin1599.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.64
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953709/ft1_filtered_4FGL_J1303.0+2434_daily_bin1599.fits scfile=/scratch/kocevski/953709/ft2_4FGL_J1303.0+2434_daily_bin1599.fits outfile=/scratch/kocevski/953709/cmap_HighResolution_653788801_654048001_4FGL_J1303.0+2434_daily_bin1599.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1886       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    45.676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.295       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9921       1.0000         .10000E-03   10000.    
    10 'norm      '    6.1694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.910       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.876       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8564       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5630       1.0000         .10000E-03   10000.    
    20 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.031       1.0000         .10000E-03   10000.    
    23 'norm      '    .22965E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.039       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.467       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4370       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78321       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=   6723.153     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3372 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1889        3.2405       -.19927E-08    .40748E-05
   2  Prefactor     2.5970        1.7668       -.61119E-08    .52977E-05
   3  Prefactor     3.6156        2.0631       -.16250E-07   -.10693E-04
   4  Prefactor     .10000E-03    1.6201        .22195E-07** at limit **
   5  norm          .10000E-03    .11159        .89671E-07** at limit **
   6  norm          45.678        8.9055       -.56685E-07   -.86260E-04
   7  Prefactor     .10000E-03    15.235       -.39800E-06** at limit **
   8  Prefactor     24.457        132.62        .96624E-05    .13915E-04
   9  Prefactor     2.9922        4.0103        .48162E-07   -.93425E-05
  10  norm          6.1694        5.6033       -.39084E-06   -.28103E-04
  11  Prefactor     33.906        17.554        .87418E-07   -.61727E-05
  12  Prefactor     .10000E-03    47.480       -.32724E-06** at limit **
  13  norm          .10000E-03    .88498        .22586E-07** at limit **
  14  norm          .10000E-03    1.7219        .42549E-07** at limit **
  15  norm          13.877        6.8090       -.64729E-06    .34935E-05
  16  norm          1.8557        10.566        .29990E-05    .28269E-04
  17  norm          .10000E-03    5.5673        .40923E-07** at limit **
  18  Prefactor     .10000E-03    .91806        .11417E-07** at limit **
  19  Prefactor     5.5632        8.0941        .41165E-07   -.14934E-05
  20  norm          .10000E-03    3.0080       -.37479E-07** at limit **
  21  Prefactor     .10000E-03    12.568        .62653E-07** at limit **
  22  Prefactor     13.040        56.557        .61994E-06    .11892E-05
  23  norm          .10001E-03    4.9150       -.34881E-06** at limit **
  24  Prefactor     34.048        21.943        .11189E-06    .11253E-04
  25  Prefactor     10.466        28.648       -.22536E-06    .13602E-05
  26  Normalizat    1.4365        .20862        .99902E-06   -.21411E-03
  27  Prefactor     .78372        .20930       -.25428E-05   -.21757E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.18893
  Prefactor  = 2.59697
  Prefactor  = 3.61556
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 45.6784
  Prefactor  = 0.0001
  Prefactor  = 24.4573
  Prefactor  = 2.99216
  norm       = 6.16941
  Prefactor  = 33.9063
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.8772
  norm       = 1.85566
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56319
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0402
  norm       = 0.000100008
  Prefactor  = 34.0481
  Prefactor  = 10.4656
  Normalizat = 1.43651
  Prefactor  = 0.78372
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.153     FROM HESSE     STATUS=OK           492 CALLS     3864 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1889        3.2393        .95274E-04   -1.5172    
   2  Prefactor     2.5970        1.7731        .86779E-04   -1.5386    
   3  Prefactor     3.6156        2.0615        .85639E-04   -1.5328    
   4  Prefactor     .10000E-03    1.6216        .10191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .15203        .52761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          45.678        8.9075        .59325E-04   -1.4355    
   7  Prefactor     .10000E-03    15.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.457        140.76        .81268E-04   -1.4718    
   9  Prefactor     2.9922        4.0020        .18484E-03   -1.5362    
  10  norm          6.1694        5.5842        .16163E-03   -1.5211    
  11  Prefactor     33.906        17.559        .68814E-04   -1.4543    
  12  Prefactor     .10000E-03    47.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .88639        .75327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7276        .10508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.877        6.9208        .99848E-04   -1.4963    
  16  norm          1.8557        10.935        .15295E-02   -1.5436    
  17  norm          .10000E-03    5.5693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .92107        .76681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5632        8.0801        .17033E-03   -1.5236    
  20  norm          .10000E-03    6.4251        .27079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.040        56.527        .11096E-03   -1.4986    
  23  norm          .10001E-03    25.800        .33947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.048        21.935        .68685E-04   -1.4540    
  25  Prefactor     10.466        28.578        .12384E-03   -1.5061    
  26  Normalizat    1.4365        .23679        .24454E-03   -.79578    
  27  Prefactor     .78372        .23009        .33295E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1316e-10
Minuit parameter uncertainties:
  1  3.23933
  2  1.77311
  3  2.06154
  4  4.50589e-07
  5  4.96428e-07
  6  8.90778
  7  2.34381e-06
  8  117.769
  9  4.00234
  10  5.58466
  11  17.5619
  12  9.70293e-07
  13  2.48727e-07
  14  9.50917e-07
  15  6.92122
  16  9.01143
  17  1.34963e-06
  18  7.18786e-08
  19  8.08172
  20  4.48177e-05
  21  5.15213e-06
  22  54.3867
  23  0.000890599
  24  21.9406
  25  28.615
  26  0.236976
  27  0.230369
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  2.487e-07  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:  7.837e-01  2.304e-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.437e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953709/likelihoodResults_653788801_654048001_4FGL_J1303.0+2434_daily_bin1599.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) = 6723.1527139
delta logL = -4.55601430076e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6723.15266954
delta logL = -1.20169534057e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0633       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78393       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=   6723.153     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      239 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .89033        .75336E-03** at limit **
   2  alpha         1.9850        3.3678        .16790E-01   -.10834E-08
   3  Normalizat    1.4365        .21587        .24455E-03    .44387E-04
   4  Prefactor     .78372        .22551        .33294E-03    .33565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98495
  Normalizat = 1.43651
  Prefactor  = 0.783718
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.153     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .88845        .15067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9850        3.3387        .33579E-02   -.20751    
   3  Normalizat    1.4365        .21604        .48910E-04   -.79578    
   4  Prefactor     .78372        .22570        .13318E-04   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02005e-12
Minuit parameter uncertainties:
  1  4.53589e-08
  2  155.819
  3  0.216182
  4  0.225963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953709': 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) = 6723.15266821
delta logL = 1.30046828417e-07

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  4.536e-08  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.985e+00  1.558e+02  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:  7.837e-01  2.260e-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.437e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.757 24.582

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/953709/cmap_HighResolution_653788801_654048001_4FGL_J1303.0+2434_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-05', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2021-09-23 00:42:36.396090', job_id='953709', GAL2='0.78', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632382956.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1599' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:42:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 953709: <4FGL_J1303.0+2434_daily_bin1599> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 00:26:44 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:26:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:26:51 2021
Terminated at Thu Sep 23 00:42:37 2021
Results reported at Thu Sep 23 00:42:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1599 195.757 24.5821 653788801 654048001 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 :                                   823.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            953 sec.

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

