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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin518
RA = 207.757, Dec = 0.4873
tmin = 373593601, tmax = 373852801
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='13780', job_status='RUN', time_executed='2021-09-08 15:18:52.850975', time_epoch_executed='1631139532.85' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13780

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13780/ft1_4FGL_J1351.0+0029_daily_bin518.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13780/ft2_4FGL_J1351.0+0029_daily_bin518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13780/ft1_4FGL_J1351.0+0029_daily_bin518.fits outfile=/scratch/kocevski/13780/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin518.fits ra=207.757 dec=0.4873 rad=12.0 tmin=373593601.0 tmax=373852801.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.50
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13780/ft2_4FGL_J1351.0+0029_daily_bin518.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/13780/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin518.fits evtable="EVENTS" outfile="/scratch/kocevski/13780/ft1_filtered_4FGL_J1351.0+0029_daily_bin518.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13780/ft1_filtered_4FGL_J1351.0+0029_daily_bin518.fits" evtable="EVENTS" scfile=/scratch/kocevski/13780/ft2_4FGL_J1351.0+0029_daily_bin518.fits sctable="SC_DATA" outfile=/scratch/kocevski/13780/ltcube_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.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/13780/ft2_4FGL_J1351.0+0029_daily_bin518.fits
.....................!
real 14.09
user 13.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13780/ft1_filtered_4FGL_J1351.0+0029_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/13780/ft2_4FGL_J1351.0+0029_daily_bin518.fits sctable="SC_DATA" expcube=/scratch/kocevski/13780/ltcube_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.fits outfile=/scratch/kocevski/13780/expmap_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.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/13780/ltcube_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.fits
.....................!
real 190.77
user 185.94
sys 4.41

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/13780/ft1_filtered_4FGL_J1351.0+0029_daily_bin518.fits scfile=/scratch/kocevski/13780/ft2_4FGL_J1351.0+0029_daily_bin518.fits outfile=/scratch/kocevski/13780/cmap_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13780/ft1_filtered_4FGL_J1351.0+0029_daily_bin518.fits scfile=/scratch/kocevski/13780/ft2_4FGL_J1351.0+0029_daily_bin518.fits outfile=/scratch/kocevski/13780/cmap_HighResolution_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13780/ft1_filtered_4FGL_J1351.0+0029_daily_bin518.fits', '/scratch/kocevski/13780/ft2_4FGL_J1351.0+0029_daily_bin518.fits', expMap='/scratch/kocevski/13780/expmap_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.fits', expCube='/scratch/kocevski/13780/ltcube_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13780/Model_4FGL_J1351.0+0029_daily_bin518.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/13780/ft1_filtered_4FGL_J1351.0+0029_daily_bin518.fits
Spacecraft file(s): /scratch/kocevski/13780/ft2_4FGL_J1351.0+0029_daily_bin518.fits
Exposure map: /scratch/kocevski/13780/expmap_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.fits
Exposure cube: /scratch/kocevski/13780/ltcube_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13780/Model_4FGL_J1351.0+0029_daily_bin518.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) = 5608.3355675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.639       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.455       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7021       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3849       1.0000         .10000E-03   10000.    
    11 'norm      '    .53558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1658       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.694       1.0000         .10000E-03   10000.    
    15 'norm      '    10.730       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.677       1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.546       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83088       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2741       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=   5608.306     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2179 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.639        14.144        .21046E-02    .56158E-03
   2  norm          .10000E-03    14.795        .90712E-02** at limit **
   3  Prefactor     .10000E-03    12.525        .90712E-02** at limit **
   4  Prefactor     11.455        11.155        .29591E-02    .32897E-03
   5  norm          .10000E-03    .62007        .90712E-02** at limit **
   6  Prefactor     .10000E-03    21.771        .90712E-02** at limit **
   7  norm          .10002E-03    15.611        .90712E-02** at limit **
   8  Prefactor     3.4052        4.7965        .54806E-02    .43822E-03
   9  Prefactor     2.7012        29.686        .61953E-02    .53051E-03
  10  Prefactor     5.3848        3.7287        .43294E-02   -.24691E-02
  11  norm          .50031        7.3963        .64118E-01    .23851E-03
  12  Prefactor     9.1649        13.049        .33095E-02    .53823E-03
  13  norm          .10000E-03    .76044        .90712E-02** at limit **
  14  Prefactor     16.693        17.688        .24507E-02    .92031E-03
  15  norm          10.729        9.9707        .30578E-02   -.58641E-03
  16  norm          .10000E-03    3.2842        .90712E-02** at limit **
  17  Prefactor     .10001E-03    14.506        .90712E-02** at limit **
  18  norm          23.677        17.229        .20580E-02    .27778E-03
  19  Prefactor     52.546        55.580        .13832E-02   -.15371E-03
  20  Normalizat    .83078        .23394        .74493E-01    .26403E-04
  21  Prefactor     1.2742        .16784        .33077E-01    .69817E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 22.6389
  norm       = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 11.455
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100019
  Prefactor  = 3.40519
  Prefactor  = 2.70117
  Prefactor  = 5.38484
  norm       = 0.50031
  Prefactor  = 9.16489
  norm       = 0.0001
  Prefactor  = 16.6929
  norm       = 10.7293
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 23.6768
  Prefactor  = 52.5463
  Normalizat = 0.830783
  Prefactor  = 1.27424
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.306     FROM HESSE     STATUS=OK           315 CALLS     2494 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.639        14.143        .84184E-04   -1.4756    
   2  norm          .10000E-03    14.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.455        11.158        .11836E-03   -1.5031    
   5  norm          .10000E-03    .64150        .11505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10002E-03    15.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4052        4.7901        .18278E-03   -1.5339    
   9  Prefactor     2.7012        29.553        .24781E-03   -1.5379    
  10  Prefactor     5.3848        3.7311        .58619E-03   -1.5244    
  11  norm          .50031        29.032        .39045E-02   -1.5567    
  12  Prefactor     9.1649        13.029        .13238E-03   -1.5102    
  13  norm          .10000E-03    .76368        .63763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.693        17.685        .98027E-04   -1.4891    
  15  norm          10.729        9.9738        .61157E-03   -1.5053    
  16  norm          .10000E-03    3.2904        .13254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    14.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.677        17.229        .82321E-04   -1.4734    
  19  Prefactor     52.546        55.582        .55329E-04   -1.4257    
  20  Normalizat    .83078        .27039        .32969E-03   -.98937    
  21  Prefactor     1.2742        .19549        .19938E-03   -.84076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40576e-09
Minuit parameter uncertainties:
  1  14.1453
  2  0.000392165
  3  0.000214033
  4  11.16
  5  7.0532e-08
  6  0.000192885
  7  0.00108129
  8  4.79063
  9  17.8803
  10  3.73126
  11  7.62544
  12  13.0327
  13  2.153e-07
  14  17.6908
  15  9.97533
  16  1.43259e-06
  17  0.000861397
  18  17.2331
  19  55.6367
  20  0.270828
  21  0.195605
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.701e+00  1.788e+01  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:  1.274e+00  1.956e-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:  8.308e-01  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/13780/likelihoodResults_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.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) = 5608.29640398
delta logL = 0.00977473377679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5607.07175244
delta logL = 1.23442627413

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     '    8.8058       1.0000          .0000       10.000    
     3 'Normalizat'    .71026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3361       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=   5607.072     FROM MIGRAD    STATUS=CONVERGED    237 CALLS      517 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .36860E-02    .30002E-03** at limit **
   2  Index         8.8054        2.6786        .17115        .54234E-04
   3  Normalizat    .70997        .62912E-01    .80004E-01    .94464E-04
   4  Prefactor     1.3363        .45524E-01    .32009E-01   -.74100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.80539
  Normalizat = 0.709967
  Prefactor  = 1.33626
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.072     FROM HESSE     STATUS=OK            33 CALLS      550 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11278E-02    .90600E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8054        .35613        .72464E-02    .86497    
   3  Normalizat    .70997        .27363        .35423E-03   -1.0350    
   4  Prefactor     1.3363        .19864        .19532E-03   -.82235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86513e-10
Minuit parameter uncertainties:
  1  1.59044e-08
  2  0.356846
  3  0.274162
  4  0.198749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13780': 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) = 5607.07174916
delta logL = 1.23442954523

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.590e-08  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  8.805e+00  3.568e-01  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:  1.336e+00  1.987e-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:  7.100e-01  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 207.757 0.487
Photon Index (Free Index): 8.81 +/- 0.36
Photon Flux (Free Index): 8.38e-08 +/- 6.35e-08
Energy Flux (Free Index): 9.55e-06 +/- 7.21e-06

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/13780/cmap_HighResolution_373593601_373852801_4FGL_J1351.0+0029_daily_bin518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.36e-03', comment='SUCCESS', energy_flux2='9.55e-06', dlogl='1.23e+00', photon_flux2='8.38e-08', job_status='DONE', time_completed='2021-09-08 15:28:17.709859', photon_index_error2='0.36', photon_index2='8.81', ts='0.03', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='7.21e-06', EG='0.83', time_epoch_completed='1631140097.71', return_code='0', job_id='13780', GAL2='1.34', EG2='0.71', return_code2='0', photon_flux_error2='6.35e-08', ts2='2.71', photon_index='2.44' WHERE bin_id='518' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 13780: <4FGL_J1351.0+0029_daily_bin518> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin518> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:35 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:41 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:15:41 2021
Terminated at Wed Sep  8 15:28:18 2021
Results reported at Wed Sep  8 15:28:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin518 207.757 0.4873 373593601 373852801 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 :                                   559.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            763 sec.

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

