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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin288
RA = 207.757, Dec = 0.4873
tmin = 313977601, tmax = 314236801
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='12205', job_status='RUN', time_executed='2021-09-08 15:16:12.313572', time_epoch_executed='1631139372.31' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12205/ft1_4FGL_J1351.0+0029_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12205/ft1_4FGL_J1351.0+0029_daily_bin288.fits outfile=/scratch/kocevski/12205/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin288.fits ra=207.757 dec=0.4873 rad=12.0 tmin=313977601.0 tmax=314236801.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.00
user 2.78
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.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/12205/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin288.fits evtable="EVENTS" outfile="/scratch/kocevski/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.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.49
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/12205/ltcube_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.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/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits
.....................!
real 13.29
user 12.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/12205/ltcube_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.fits outfile=/scratch/kocevski/12205/expmap_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.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/12205/ltcube_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.fits
.....................!
real 156.87
user 152.34
sys 3.88

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J1351.0+0029 @ 207.757 0.4873

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.fits scfile=/scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits outfile=/scratch/kocevski/12205/cmap_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.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=207.757 yref=0.4873 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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.fits scfile=/scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits outfile=/scratch/kocevski/12205/cmap_HighResolution_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.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=207.757 yref=0.4873 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.49
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12205/Model_4FGL_J1351.0+0029_daily_bin288.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/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.fits.....................!
real 37.34
user 36.08
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.fits', '/scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits', expMap='/scratch/kocevski/12205/expmap_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.fits', expCube='/scratch/kocevski/12205/ltcube_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/12205/Model_4FGL_J1351.0+0029_daily_bin288.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.0+0029'

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.616e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/12205/ft1_filtered_4FGL_J1351.0+0029_daily_bin288.fits
Spacecraft file(s): /scratch/kocevski/12205/ft2_4FGL_J1351.0+0029_daily_bin288.fits
Exposure map: /scratch/kocevski/12205/expmap_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.fits
Exposure cube: /scratch/kocevski/12205/ltcube_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/12205/Model_4FGL_J1351.0+0029_daily_bin288.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) = 5406.79993453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.084       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.808       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3144       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.915       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7582       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4023       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14211E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    25.127       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3575       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5113       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5406.794     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2172 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.084        13.799        .19245E-02    .15825E-03
   2  norm          .10000E-03    6.3498        .90712E-02** at limit **
   3  Prefactor     16.807        22.815        .24423E-02   -.92214E-04
   4  Prefactor     5.3143        13.760        .43585E-02    .20574E-03
   5  norm          2.8119        1.7153        .60642E-02   -.83911E-03
   6  Prefactor     43.915        49.818        .15124E-02    .14432E-03
   7  norm          .10000E-03    11.997        .90712E-02** at limit **
   8  Prefactor     3.7581        3.5428        .52065E-02    .17065E-02
   9  Prefactor     .10001E-03    47.516        .90712E-02** at limit **
  10  Prefactor     .10000E-03    1.2198        .90712E-02** at limit **
  11  norm          .10000E-03    2.6609        .90712E-02** at limit **
  12  Prefactor     .10000E-03    4.4908        .90712E-02** at limit **
  13  norm          4.4024        3.0519        .47986E-02    .27069E-03
  14  Prefactor     .10000E-03    55.029        .90712E-02** at limit **
  15  norm          25.127        18.062        .19979E-02    .13361E-04
  16  norm          .10000E-03    3.2632        .90712E-02** at limit **
  17  Prefactor     .10000E-03    15.766        .90712E-02** at limit **
  18  norm          2.3590        16.966        .66732E-02    .48473E-03
  19  Prefactor     .10024E-03    183.14        .90712E-02** at limit **
  20  Normalizat    1.5113        .22117        .56023E-01    .29584E-03
  21  Prefactor     .65374        .14874        .41783E-01    .37743E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.0839
  norm       = 0.000100001
  Prefactor  = 16.8072
  Prefactor  = 5.31435
  norm       = 2.81194
  Prefactor  = 43.915
  norm       = 0.0001
  Prefactor  = 3.75814
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.40236
  Prefactor  = 0.000100002
  norm       = 25.1273
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.35899
  Prefactor  = 0.00010024
  Normalizat = 1.51132
  Prefactor  = 0.65374
 **********
 **   18 **HESSE 
 **********

 FCN=   5406.794     FROM HESSE     STATUS=OK           309 CALLS     2481 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.084        13.798        .76979E-04   -1.4667    
   2  norm          .10000E-03    6.3532        .18097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.807        22.870        .97691E-04   -1.4888    
   4  Prefactor     5.3143        13.777        .17434E-03   -1.5247    
   5  norm          2.8119        1.7127        .71908E-04   -1.5373    
   6  Prefactor     43.915        49.831        .60497E-04   -1.4382    
   7  norm          .10000E-03    12.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7581        3.5434        .12906E-03   -1.5320    
   9  Prefactor     .10001E-03    48.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2219        .79307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6648        .11714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4985        .15218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4024        3.0482        .10262E-03   -1.5288    
  14  Prefactor     .10000E-03    56.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.127        18.090        .79914E-04   -1.4705    
  16  norm          .10000E-03    3.2688        .12971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3590        16.934        .26693E-03   -1.5401    
  19  Prefactor     .10024E-03    183.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5113        .26083        .24771E-03   -.77461    
  21  Prefactor     .65374        .17434        .24481E-03   -1.0537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90821e-09
Minuit parameter uncertainties:
  1  13.7994
  2  0.000171573
  3  22.8818
  4  13.7856
  5  1.71269
  6  49.8778
  7  7.67843e-05
  8  3.5436
  9  0.00124888
  10  2.06023e-05
  11  5.06456e-05
  12  2.70528e-05
  13  3.04826
  14  0.000592613
  15  18.0941
  16  6.30455e-05
  17  0.000183465
  18  12.6456
  19  0.0133168
  20  0.261062
  21  0.174487
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.249e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  6.537e-01  1.745e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.511e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12205/likelihoodResults_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.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): 102
logL (Free Index) = 5406.79394949
delta logL = -9.89954460238e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5406.7938507
delta logL = -2.10956386582e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3755       1.0000          .0000       10.000    
     3 'Normalizat'    1.5113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65375       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   5406.794     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      281 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7460.1        .18142E-02** at limit **
   2  Index         2.4375        7.9503        .50000       -.14569E-04
   3  Normalizat    1.5113        .75384E-01    .24771E-03   -.27537E-06
   4  Prefactor     .65374        .51559E-01    .24481E-03   -.37615E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.43746
  Normalizat = 1.51132
  Prefactor  = 0.653739
 **********
 **   18 **HESSE 
 **********

 FCN=   5406.794     FROM HESSE     STATUS=OK            29 CALLS      310 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    73.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4375        6.1592        .50000       -.53810    
   3  Normalizat    1.5113        .24994        .99086E-05   -.77461    
   4  Prefactor     .65374        .17102        .97925E-05   -1.0537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65848e-10
Minuit parameter uncertainties:
  1  0.00176517
  2  5.37225
  3  0.250146
  4  0.171155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12205': 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) = 5406.79385049
delta logL = 2.25190888159e-09

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.765e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  5.372e+00  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  6.537e-01  1.712e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.511e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

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/12205/cmap_HighResolution_313977601_314236801_4FGL_J1351.0+0029_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-08 15:23:50.611597', job_id='12205', GAL2='0.65', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1631139830.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.25e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='288' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:23:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 12205: <4FGL_J1351.0+0029_daily_bin288> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin288> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:10:43 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:12:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:12:08 2021
Terminated at Wed Sep  8 15:23:51 2021
Results reported at Wed Sep  8 15:23:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin288 207.757 0.4873 313977601 314236801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.0+0029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   447.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            788 sec.

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

