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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin943
RA = 207.757, Dec = 0.4873
tmin = 483753601, tmax = 484012801
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='17255', job_status='RUN', time_executed='2021-09-08 15:29:30.926203', time_epoch_executed='1631140170.93' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17255/ft1_4FGL_J1351.0+0029_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17255/ft2_4FGL_J1351.0+0029_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17255/ft1_4FGL_J1351.0+0029_daily_bin943.fits outfile=/scratch/kocevski/17255/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin943.fits ra=207.757 dec=0.4873 rad=12.0 tmin=483753601.0 tmax=484012801.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 5.59
user 5.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17255/ft1_filtered_4FGL_J1351.0+0029_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/17255/ft2_4FGL_J1351.0+0029_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/17255/ltcube_483753601_484012801_4FGL_J1351.0+0029_daily_bin943.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/17255/ft2_4FGL_J1351.0+0029_daily_bin943.fits
.....................!
real 13.74
user 13.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17255/ft1_filtered_4FGL_J1351.0+0029_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/17255/ft2_4FGL_J1351.0+0029_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/17255/ltcube_483753601_484012801_4FGL_J1351.0+0029_daily_bin943.fits outfile=/scratch/kocevski/17255/expmap_483753601_484012801_4FGL_J1351.0+0029_daily_bin943.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/17255/ltcube_483753601_484012801_4FGL_J1351.0+0029_daily_bin943.fits
.....................!
real 191.69
user 186.55
sys 4.74

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/17255/ft1_filtered_4FGL_J1351.0+0029_daily_bin943.fits scfile=/scratch/kocevski/17255/ft2_4FGL_J1351.0+0029_daily_bin943.fits outfile=/scratch/kocevski/17255/cmap_483753601_484012801_4FGL_J1351.0+0029_daily_bin943.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3710       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .94675E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.577       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .94150       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.074       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.2654       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.157       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1616       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85624       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=   3973.210     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2175 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3711        9.1968       -.56023E-06    .16352E-04
   2  norm          .10000E-03    5.3924       -.48816E-06** at limit **
   3  Prefactor     .10000E-03    11.210       -.51188E-05** at limit **
   4  Prefactor     .10000E-03    3.9605       -.10158E-06** at limit **
   5  norm          .99144E-01    1.0154       -.11406E-05    .13947E-02
   6  Prefactor     .10000E-03    24.100       -.14356E-04** at limit **
   7  norm          .10000E-03    38.159        .21901E-04** at limit **
   8  Prefactor     .10000E-03    2.0304       -.13286E-06** at limit **
   9  Prefactor     19.551        26.049       -.18033E-04    .13641E-03
  10  Prefactor     .10000E-03    2.7306       -.13253E-06** at limit **
  11  norm          .10000E-03    3.4673       -.92298E-07** at limit **
  12  Prefactor     .10004E-03    52.627       -.14844E-04** at limit **
  13  norm          .94209        3.8249       -.24186E-05   -.86717E-03
  14  Prefactor     20.053        28.520       -.17072E-04    .95416E-04
  15  norm          .10000E-03    8.4843        .86608E-06** at limit **
  16  norm          9.2665        8.7552        .65813E-07    .13079E-03
  17  Prefactor     .10000E-03    14.131        .82592E-05** at limit **
  18  norm          23.156        31.994       -.12095E-05    .27469E-06
  19  Prefactor     .10000E-03    47.275        .79955E-05** at limit **
  20  Normalizat    1.1614        .23839        .50938E-05    .36516E-03
  21  Prefactor     .85627        .16749        .18043E-05    .53620E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.37108
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0991445
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.551
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100043
  norm       = 0.942091
  Prefactor  = 20.0531
  norm       = 0.0001
  norm       = 9.26655
  Prefactor  = 0.0001
  norm       = 23.1557
  Prefactor  = 0.0001
  Normalizat = 1.16137
  Prefactor  = 0.856275
 **********
 **   18 **HESSE 
 **********

 FCN=   3973.210     FROM HESSE     STATUS=OK           313 CALLS     2488 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3711        9.1916        .14773E-03   -1.5165    
   2  norm          .10000E-03    5.3927        .14296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9635        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .99144E-01    6.9517        .11939E-02   -1.5645    
   6  Prefactor     .10000E-03    24.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    38.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0544        .87676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.551        25.997        .90522E-04   -1.4823    
  10  Prefactor     .10000E-03    4.9191        .20290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.4707        .11463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    53.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .94209        3.8964        .22818E-03   -1.5514    
  14  Prefactor     20.053        28.526        .89396E-04   -1.4812    
  15  norm          .10000E-03    8.4976        .17932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.2665        8.7061        .13166E-03   -1.5099    
  17  Prefactor     .10000E-03    14.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.156        32.004        .83239E-04   -1.4745    
  19  Prefactor     .10000E-03    47.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1614        .28458        .25734E-03   -.87805    
  21  Prefactor     .85627        .20009        .20979E-03   -.97686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91147e-09
Minuit parameter uncertainties:
  1  9.19337
  2  8.29059e-07
  3  1.45059e-05
  4  9.55268e-06
  5  1.65975
  6  1.80496e-05
  7  7.32307e-05
  8  9.34996e-06
  9  26.0116
  10  9.70785e-05
  11  3.98761e-06
  12  0.00302791
  13  3.83208
  14  28.5455
  15  7.82626e-06
  16  8.70734
  17  4.64166e-06
  18  32.0278
  19  1.80933e-05
  20  0.28496
  21  0.200261
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.955e+01  2.601e+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:  8.563e-01  2.003e-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.161e+00  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17255/likelihoodResults_483753601_484012801_4FGL_J1351.0+0029_daily_bin943.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) = 3973.20969918
delta logL = 8.89680281944e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3973.20965166
delta logL = 0.000136489054057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.249       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4531       1.0000          .0000       10.000    
     3 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85648       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=   3973.210     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      262 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.228        34.311        .91289E-04    .11339E-03
   2  Index         2.4516        .94204        .82346E-02    .22910E-03
   3  Normalizat    1.1610        .28046        .25738E-03    .84786E-04
   4  Prefactor     .85649        .19970        .20977E-03    .82568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2277
  Index      = 2.45164
  Normalizat = 1.16097
  Prefactor  = 0.856495
 **********
 **   18 **HESSE 
 **********

 FCN=   3973.210     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.228        32.489        .36516E-05   -1.4831    
   2  Index         2.4516        .89247        .16469E-02   -.53480    
   3  Normalizat    1.1610        .28066        .10295E-04   -.87818    
   4  Prefactor     .85649        .19980        .83908E-05   -.97678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77646e-11
Minuit parameter uncertainties:
  1  32.5188
  2  0.899001
  3  0.281026
  4  0.199972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17255': 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) = 3973.20964788
delta logL = 0.00014026459894

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.923e+01  3.252e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.452e+00  8.990e-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:  8.565e-01  2.000e-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.161e+00  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/17255/cmap_HighResolution_483753601_484012801_4FGL_J1351.0+0029_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-09-08 15:37:45.316299', job_id='17255', GAL2='0.86', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631140665.32', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.40e-04', ts2='0.73', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='943' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:37:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 17255: <4FGL_J1351.0+0029_daily_bin943> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin943> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:38 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:26:33 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:26:33 2021
Terminated at Wed Sep  8 15:37:46 2021
Results reported at Wed Sep  8 15:37:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin943 207.757 0.4873 483753601 484012801 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 :                                   487.56 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            728 sec.

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

