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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin464
RA = 207.757, Dec = 0.4873
tmin = 359596801, tmax = 359856001
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='13697', job_status='RUN', time_executed='2021-09-08 15:19:00.531972', time_epoch_executed='1631139540.53' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13697/ft1_4FGL_J1351.0+0029_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13697/ft2_4FGL_J1351.0+0029_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13697/ft1_4FGL_J1351.0+0029_daily_bin464.fits outfile=/scratch/kocevski/13697/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin464.fits ra=207.757 dec=0.4873 rad=12.0 tmin=359596801.0 tmax=359856001.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.76
user 3.54
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13697/ft2_4FGL_J1351.0+0029_daily_bin464.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/13697/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin464.fits evtable="EVENTS" outfile="/scratch/kocevski/13697/ft1_filtered_4FGL_J1351.0+0029_daily_bin464.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.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13697/ft1_filtered_4FGL_J1351.0+0029_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/13697/ft2_4FGL_J1351.0+0029_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/13697/ltcube_359596801_359856001_4FGL_J1351.0+0029_daily_bin464.fits outfile=/scratch/kocevski/13697/expmap_359596801_359856001_4FGL_J1351.0+0029_daily_bin464.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/13697/ltcube_359596801_359856001_4FGL_J1351.0+0029_daily_bin464.fits
.....................!
real 194.71
user 189.01
sys 5.14

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/13697/ft1_filtered_4FGL_J1351.0+0029_daily_bin464.fits scfile=/scratch/kocevski/13697/ft2_4FGL_J1351.0+0029_daily_bin464.fits outfile=/scratch/kocevski/13697/cmap_359596801_359856001_4FGL_J1351.0+0029_daily_bin464.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13697/ft1_filtered_4FGL_J1351.0+0029_daily_bin464.fits scfile=/scratch/kocevski/13697/ft2_4FGL_J1351.0+0029_daily_bin464.fits outfile=/scratch/kocevski/13697/cmap_HighResolution_359596801_359856001_4FGL_J1351.0+0029_daily_bin464.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8027       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3692       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.845       1.0000         .10000E-03   10000.    
     5 'norm      '    .32181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.687       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41059E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1952       1.0000         .10000E-03   10000.    
    13 'norm      '    .10676E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20317E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.808       1.0000         .10000E-03   10000.    
    18 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18604       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4199       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74123       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.

 FCN=   4921.475     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2663 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8024        7.6682       -.33093E-06   -.16421E-03
   2  norm          6.3684        10.045       -.19915E-06   -.63406E-04
   3  Prefactor     .10000E-03    11.428        .27099E-06** at limit **
   4  Prefactor     13.855        12.076       -.10768E-06   -.77318E-04
   5  norm          .32299        1.4627        .13934E-05    .92941E-04
   6  Prefactor     62.568        61.557        .25750E-05    .12363E-03
   7  norm          .10000E-03    9.5313        .67139E-07** at limit **
   8  Prefactor     4.1682        4.1498       -.29585E-06   -.37252E-03
   9  Prefactor     .10002E-03    29.550        .44396E-05** at limit **
  10  Prefactor     .10000E-03    2.2544       -.66416E-06** at limit **
  11  norm          .10000E-03    5.0841        .62742E-06** at limit **
  12  Prefactor     2.1917        16.883        .51223E-05    .21793E-03
  13  norm          .10001E-03    2.9672       -.10925E-05** at limit **
  14  Prefactor     .18586        405.62        .25414E-04   -.28808E-04
  15  norm          .10000E-03    5.6004        .21633E-06** at limit **
  16  norm          .10000E-03    11.764        .94870E-06** at limit **
  17  Prefactor     15.792        22.256       -.15276E-06   -.21934E-04
  18  norm          .10000E-03    27.713       -.75144E-06** at limit **
  19  Prefactor     .10002E-03    7969.0       -.11324E-03** at limit **
  20  Normalizat    1.4198        .24753       -.41581E-06    .96603E-04
  21  Prefactor     .74134        .16814       -.72372E-06    .25874E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.80239
  norm       = 6.36843
  Prefactor  = 0.0001
  Prefactor  = 13.8549
  norm       = 0.322993
  Prefactor  = 62.5685
  norm       = 0.0001
  Prefactor  = 4.16818
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.19167
  norm       = 0.000100013
  Prefactor  = 0.18586
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 15.7916
  norm       = 0.0001
  Prefactor  = 0.000100015
  Normalizat = 1.41984
  Prefactor  = 0.741336
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.475     FROM HESSE     STATUS=OK           337 CALLS     3000 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8024        7.6691        .24300E-03   -1.5373    
   2  norm          6.3684        10.044        .15904E-03   -1.5203    
   3  Prefactor     .10000E-03    11.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.855        12.097        .10765E-03   -1.4963    
   5  norm          .32299        1.6567        .13602E-02   -1.5594    
   6  Prefactor     62.568        62.033        .25341E-03   -1.4124    
   7  norm          .10000E-03    9.5319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1682        4.1676        .13615E-03   -1.5300    
   9  Prefactor     .10002E-03    280.27        .48729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2890        .10337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1895        .15478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1917        17.717        .27774E-03   -1.5412    
  13  norm          .10001E-03    5.0661        .19977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18586        23.534        .89332E-01   -1.5622    
  15  norm          .10000E-03    5.6136        .16220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.792        22.238        .10073E-03   -1.4913    
  18  norm          .10000E-03    28.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    95.069        .20264       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4198        .27431        .24456E-03   -.80057    
  21  Prefactor     .74134        .18375        .22654E-03   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54717e-09
Minuit parameter uncertainties:
  1  7.67181
  2  10.0462
  3  4.19913e-05
  4  12.0988
  5  1.46285
  6  62.097
  7  8.60829e-06
  8  4.1679
  9  0.00477831
  10  4.65172e-05
  11  5.97196e-05
  12  12.4674
  13  0.000506548
  14  4.18338
  15  2.3698e-05
  16  0.000182986
  17  22.2501
  18  0.000142249
  19  0.00241626
  20  0.274594
  21  0.183897
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  4.778e-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:  7.413e-01  1.839e-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.420e+00  2.746e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13697/likelihoodResults_359596801_359856001_4FGL_J1351.0+0029_daily_bin464.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) = 4921.47531673
delta logL = -1.62922578966e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4921.47531673
delta logL = -1.6286866412e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4368       1.0000          .0000       10.000    
     3 'Normalizat'    1.4198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74134       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=   4921.438     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      298 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38500        30.959        .90713E-02    .10994E-02
   2  Index         4.1181        3.4599        .23764        .99548E-05
   3  Normalizat    1.3992        .28910E-01    .55653E-01    .13567E-03
   4  Prefactor     .74960        .20177E-01    .42949E-01    .26812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.384997
  Index      = 4.11806
  Normalizat = 1.39922
  Prefactor  = 0.749602
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.438     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      327 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38500        246.73        .15055E-03   -1.5584    
   2  Index         4.1181        7.4159        .10541E-01   -.17732    
   3  Normalizat    1.3992        .18079        .24609E-03   -.80651    
   4  Prefactor     .74960        .12463        .22542E-03   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02355e-09
Minuit parameter uncertainties:
  1  19.5714
  2  25.5684
  3  0.18087
  4  0.124676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13697': 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): 102
logL (Free Index) = 4921.43793701
delta logL = 0.0373634321395

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.850e-01  1.957e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  4.118e+00  2.557e+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:  7.496e-01  1.247e-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.399e+00  1.809e-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/13697/cmap_HighResolution_359596801_359856001_4FGL_J1351.0+0029_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-08 15:28:19.645037', job_id='13697', GAL2='0.75', fit_tolerance='1e-08', EG2='1.40', EG='1.42', time_epoch_completed='1631140099.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.74e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='464' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 13697: <4FGL_J1351.0+0029_daily_bin464> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin464 207.757 0.4873 359596801 359856001 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 :                                   557.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            770 sec.

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

