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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin173
RA = 207.757, Dec = 0.4873
tmin = 284169601, tmax = 284428801
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='12039', job_status='RUN', time_executed='2021-09-08 15:15:47.111226', time_epoch_executed='1631139347.11' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12039/ft1_4FGL_J1351.0+0029_daily_bin173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12039/ft2_4FGL_J1351.0+0029_daily_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12039/ft1_4FGL_J1351.0+0029_daily_bin173.fits outfile=/scratch/kocevski/12039/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin173.fits ra=207.757 dec=0.4873 rad=12.0 tmin=284169601.0 tmax=284428801.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.58
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12039/ft2_4FGL_J1351.0+0029_daily_bin173.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/12039/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin173.fits evtable="EVENTS" outfile="/scratch/kocevski/12039/ft1_filtered_4FGL_J1351.0+0029_daily_bin173.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/12039/ft1_filtered_4FGL_J1351.0+0029_daily_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/12039/ft2_4FGL_J1351.0+0029_daily_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/12039/ltcube_284169601_284428801_4FGL_J1351.0+0029_daily_bin173.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/12039/ft2_4FGL_J1351.0+0029_daily_bin173.fits
.....................!
real 15.25
user 14.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12039/ft1_filtered_4FGL_J1351.0+0029_daily_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/12039/ft2_4FGL_J1351.0+0029_daily_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/12039/ltcube_284169601_284428801_4FGL_J1351.0+0029_daily_bin173.fits outfile=/scratch/kocevski/12039/expmap_284169601_284428801_4FGL_J1351.0+0029_daily_bin173.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/12039/ltcube_284169601_284428801_4FGL_J1351.0+0029_daily_bin173.fits
.....................!
real 191.86
user 186.54
sys 4.42

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/12039/ft1_filtered_4FGL_J1351.0+0029_daily_bin173.fits scfile=/scratch/kocevski/12039/ft2_4FGL_J1351.0+0029_daily_bin173.fits outfile=/scratch/kocevski/12039/cmap_284169601_284428801_4FGL_J1351.0+0029_daily_bin173.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12039/ft1_filtered_4FGL_J1351.0+0029_daily_bin173.fits scfile=/scratch/kocevski/12039/ft2_4FGL_J1351.0+0029_daily_bin173.fits outfile=/scratch/kocevski/12039/cmap_HighResolution_284169601_284428801_4FGL_J1351.0+0029_daily_bin173.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.252       1.0000         .10000E-03   10000.    
     5 'norm      '    8.8192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    37.689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3165       1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10263E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.036       1.0000         .10000E-03   10000.    
    16 'norm      '    7.8299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    128.99       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4122       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77093       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=   7519.565     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2170 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3303        .30640E-07** at limit **
   2  norm          .10000E-03    3.5230       -.43487E-10** at limit **
   3  Prefactor     11.482        14.894        .53454E-06   -.14243E-05
   4  Prefactor     21.253        13.967        .42791E-06   -.11500E-04
   5  norm          8.8193        2.0726        .74633E-07   -.28253E-03
   6  Prefactor     .10000E-03    16.706       -.10941E-06** at limit **
   7  norm          37.690        27.622       -.84513E-07   -.27970E-04
   8  Prefactor     3.3162        3.5421       -.91121E-07   -.56922E-04
   9  Prefactor     59.034        28.904       -.70547E-06   -.17413E-03
  10  Prefactor     .10000E-03    1.7607        .31878E-07** at limit **
  11  norm          .10000E-03    2.2713        .42911E-07** at limit **
  12  Prefactor     .10000E-03    72.062       -.16355E-04** at limit **
  13  norm          3.5228        2.8208       -.22996E-07    .46385E-06
  14  Prefactor     .10000E-03    20.197        .18913E-06** at limit **
  15  norm          12.037        10.017        .98776E-07   -.21311E-04
  16  norm          7.8302        7.0059        .43010E-06    .82811E-04
  17  Prefactor     .10000E-03    66.976       -.92526E-05** at limit **
  18  norm          4.2589        17.137       -.15686E-05    .46884E-04
  19  Prefactor     128.99        90.511        .55745E-06    .31107E-05
  20  Normalizat    1.4123        .21762       -.15743E-05   -.84923E-04
  21  Prefactor     .77083        .14020       -.79417E-06   -.46223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4818
  Prefactor  = 21.253
  norm       = 8.81929
  Prefactor  = 0.0001
  norm       = 37.6903
  Prefactor  = 3.31625
  Prefactor  = 59.0345
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.52276
  Prefactor  = 0.0001
  norm       = 12.0367
  norm       = 7.83021
  Prefactor  = 0.0001
  norm       = 4.25888
  Prefactor  = 128.987
  Normalizat = 1.41229
  Prefactor  = 0.770828
 **********
 **   18 **HESSE 
 **********

 FCN=   7519.565     FROM HESSE     STATUS=OK           317 CALLS     2487 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3422        .15455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.5235        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.482        14.900        .11823E-03   -1.5030    
   4  Prefactor     21.253        13.977        .86884E-04   -1.4786    
   5  norm          8.8193        2.0759        .57229E-04   -1.5114    
   6  Prefactor     .10000E-03    16.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.690        27.628        .65285E-04   -1.4479    
   8  Prefactor     3.3162        3.5478        .16164E-03   -1.5344    
   9  Prefactor     59.034        28.801        .52208E-04   -1.4170    
  10  Prefactor     .10000E-03    1.7717        .11237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2911        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    71.122        .55902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5228        2.8127        .12202E-03   -1.5333    
  14  Prefactor     .10000E-03    20.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.037        10.023        .11547E-03   -1.5014    
  16  norm          7.8302        7.0128        .14330E-03   -1.5148    
  17  Prefactor     .10000E-03    66.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2589        16.959        .19508E-03   -1.5295    
  19  Prefactor     128.99        90.560        .35449E-04   -1.3432    
  20  Normalizat    1.4123        .25253        .27894E-03   -.80274    
  21  Prefactor     .77083        .16622        .24831E-03   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05365e-10
Minuit parameter uncertainties:
  1  8.23679e-06
  2  1.65496e-06
  3  14.9049
  4  13.9791
  5  2.07588
  6  8.83005e-07
  7  27.6372
  8  3.54798
  9  28.8076
  10  6.8407e-06
  11  7.96736e-06
  12  0.000776291
  13  2.81284
  14  0.000117314
  15  10.0242
  16  7.01356
  17  0.000151993
  18  16.9784
  19  90.6573
  20  0.25275
  21  0.166327
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  5.903e+01  2.881e+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:  7.708e-01  1.663e-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.412e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.76
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 5.48e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.71e-05

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) = 7519.46626336
delta logL = 0.0991160084395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7519.45722779
delta logL = 0.108151578145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.966       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6589       1.0000          .0000       10.000    
     3 'Normalizat'    1.3832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78374       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=   7519.457     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      281 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.958        35.413        .57306E-04    .69986E-03
   2  Index         2.6586        .51755        .48431E-02    .32440E-03
   3  Normalizat    1.3836        .25285        .28127E-03   -.75583E-03
   4  Prefactor     .78363        .16757        .24648E-03   -.11414E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.9576
  Index      = 2.65861
  Normalizat = 1.3836
  Prefactor  = 0.783629
 **********
 **   18 **HESSE 
 **********

 FCN=   7519.457     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.958        33.137        .11461E-04   -1.4307    
   2  Index         2.6586        .48348        .19372E-03   -.48734    
   3  Normalizat    1.3836        .25234        .56254E-04   -.81104    
   4  Prefactor     .78363        .16738        .49295E-04   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07751e-09
Minuit parameter uncertainties:
  1  33.1495
  2  0.484448
  3  0.25257
  4  0.16749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12039': 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) = 7519.45722527
delta logL = 0.108154098126

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.896e+01  3.315e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.659e+00  4.844e-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.836e-01  1.675e-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.384e+00  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.95
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.66 +/- 0.48
Photon Flux (Free Index): 1.35e-07 +/- 7.61e-08
Energy Flux (Free Index): 3.35e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/12039/cmap_HighResolution_284169601_284428801_4FGL_J1351.0+0029_daily_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.35e-05', photon_flux_error='5.48e-08', dlogl='1.08e-01', energy_flux='3.51e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-08 15:25:33.725130', photon_index_error2='0.48', photon_index2='2.66', ts='9.76', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.41', time_epoch_completed='1631139933.73', return_code='0', job_id='12039', GAL2='0.78', EG2='1.38', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='7.61e-08', ts2='9.95', photon_index='2.44' WHERE bin_id='173' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:25:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 12039: <4FGL_J1351.0+0029_daily_bin173> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin173> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:10:31 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:11:44 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:11:44 2021
Terminated at Wed Sep  8 15:25:34 2021
Results reported at Wed Sep  8 15:25:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin173 207.757 0.4873 284169601 284428801 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 :                                   580.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            903 sec.

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

