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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin265
RA = 207.757, Dec = 0.4873
tmin = 308016001, tmax = 308275201
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='12170', job_status='RUN', time_executed='2021-09-08 15:15:37.141653', time_epoch_executed='1631139337.14' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12170/ft1_4FGL_J1351.0+0029_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12170/ft2_4FGL_J1351.0+0029_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12170/ft1_4FGL_J1351.0+0029_daily_bin265.fits outfile=/scratch/kocevski/12170/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin265.fits ra=207.757 dec=0.4873 rad=12.0 tmin=308016001.0 tmax=308275201.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.47
user 3.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12170/ft2_4FGL_J1351.0+0029_daily_bin265.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/12170/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin265.fits evtable="EVENTS" outfile="/scratch/kocevski/12170/ft1_filtered_4FGL_J1351.0+0029_daily_bin265.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.53
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12170/ft1_filtered_4FGL_J1351.0+0029_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/12170/ft2_4FGL_J1351.0+0029_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/12170/ltcube_308016001_308275201_4FGL_J1351.0+0029_daily_bin265.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/12170/ft2_4FGL_J1351.0+0029_daily_bin265.fits
.....................!
real 17.28
user 16.85
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12170/ft1_filtered_4FGL_J1351.0+0029_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/12170/ft2_4FGL_J1351.0+0029_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/12170/ltcube_308016001_308275201_4FGL_J1351.0+0029_daily_bin265.fits outfile=/scratch/kocevski/12170/expmap_308016001_308275201_4FGL_J1351.0+0029_daily_bin265.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/12170/ltcube_308016001_308275201_4FGL_J1351.0+0029_daily_bin265.fits
.....................!
real 192.74
user 187.10
sys 5.08

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/12170/ft1_filtered_4FGL_J1351.0+0029_daily_bin265.fits scfile=/scratch/kocevski/12170/ft2_4FGL_J1351.0+0029_daily_bin265.fits outfile=/scratch/kocevski/12170/cmap_308016001_308275201_4FGL_J1351.0+0029_daily_bin265.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12170/ft1_filtered_4FGL_J1351.0+0029_daily_bin265.fits scfile=/scratch/kocevski/12170/ft2_4FGL_J1351.0+0029_daily_bin265.fits outfile=/scratch/kocevski/12170/cmap_HighResolution_308016001_308275201_4FGL_J1351.0+0029_daily_bin265.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.091       1.0000         .10000E-03   10000.    
     2 'norm      '    10.025       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    28.231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.314       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.007       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5707       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.313       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    31.682       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9757       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.033       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.204       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .56878       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3922       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=   6915.467     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2191 TOTAL
                     EDM=   .63E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.093        14.796        .76806E-07    .29917E-05
   2  norm          10.023        16.484        .10269E-06    .73237E-06
   3  Prefactor     .10000E-03    10.206        .17347E-06** at limit **
   4  Prefactor     .10000E-03    7.4288        .23083E-06** at limit **
   5  norm          28.232        3.6268        .24766E-07    .17541E-04
   6  Prefactor     .10000E-03    46.929        .97489E-07** at limit **
   7  norm          12.298        28.708        .14430E-06   -.87679E-05
   8  Prefactor     12.009        6.9245        .11919E-06   -.18116E-04
   9  Prefactor     3.7192        97.377        .12155E-06    .34317E-05
  10  Prefactor     1.5714        3.9267        .87540E-06    .12350E-04
  11  norm          .10000E-03    7.2127        .79856E-07** at limit **
  12  Prefactor     17.313        19.080        .49784E-06   -.14614E-05
  13  norm          4.7439        3.0073        .77945E-06   -.28026E-04
  14  Prefactor     .10000E-03    11.606       -.18957E-07** at limit **
  15  norm          31.678        19.020        .21990E-07   -.16304E-05
  16  norm          6.9756        7.3528        .47575E-06   -.12161E-04
  17  Prefactor     14.036        24.094        .17933E-06    .24105E-05
  18  norm          .10000E-03    9.5866       -.14659E-06** at limit **
  19  Prefactor     26.088        86.820       -.54237E-06   -.18572E-04
  20  Normalizat    .56828        .27878       -.12751E-05   -.16122E-04
  21  Prefactor     1.3925        .18297        .12439E-06   -.17137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.0927
  norm       = 10.0234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.2316
  Prefactor  = 0.0001
  norm       = 12.2979
  Prefactor  = 12.0085
  Prefactor  = 3.71916
  Prefactor  = 1.57139
  norm       = 0.0001
  Prefactor  = 17.3128
  norm       = 4.7439
  Prefactor  = 0.0001
  norm       = 31.6785
  norm       = 6.97564
  Prefactor  = 14.0359
  norm       = 0.0001
  Prefactor  = 26.0884
  Normalizat = 0.568275
  Prefactor  = 1.39252
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.467     FROM HESSE     STATUS=OK           323 CALLS     2514 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.093        14.784        .83357E-04   -1.4746    
   2  norm          10.023        16.484        .12656E-03   -1.5075    
   3  Prefactor     .10000E-03    10.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          28.232        3.6198        .53563E-04   -1.4645    
   6  Prefactor     .10000E-03    46.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.298        28.759        .11416E-03   -1.5006    
   8  Prefactor     12.009        6.9129        .11561E-03   -1.5015    
   9  Prefactor     3.7192        93.365        .20982E-03   -1.5322    
  10  Prefactor     1.5714        3.9001        .25261E-03   -1.5457    
  11  norm          .10000E-03    7.4165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.313        18.860        .96258E-04   -1.4876    
  13  norm          4.7439        3.0040        .54900E-03   -1.5272    
  14  Prefactor     .10000E-03    11.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.678        19.072        .71186E-04   -1.4582    
  16  norm          6.9756        7.3453        .75948E-03   -1.5180    
  17  Prefactor     14.036        24.070        .10692E-03   -1.4959    
  18  norm          .10000E-03    9.5900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.088        87.021        .78258E-04   -1.4686    
  20  Normalizat    .56828        .30684        .46082E-03   -1.0935    
  21  Prefactor     1.3925        .20733        .21897E-03   -.80596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26926e-11
Minuit parameter uncertainties:
  1  14.7859
  2  16.491
  3  2.55713e-07
  4  4.50747e-06
  5  3.61978
  6  1.39461e-06
  7  28.7915
  8  6.91333
  9  37.3334
  10  3.90071
  11  8.56013e-06
  12  18.8664
  13  3.00409
  14  6.63219e-07
  15  19.076
  16  7.3462
  17  24.0868
  18  3.78444e-06
  19  87.4484
  20  0.30776
  21  0.207453
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.719e+00  3.733e+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.393e+00  2.075e-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:  5.683e-01  3.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/12170/likelihoodResults_308016001_308275201_4FGL_J1351.0+0029_daily_bin265.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) = 6915.14011732
delta logL = 0.326960179025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6915.09551347
delta logL = 0.37156403547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5301       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5145       1.0000          .0000       10.000    
     3 'Normalizat'    .49500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4198       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=   6915.096     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      243 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5758        193.25        .42712E-02    .33304E-03
   2  Index         3.5095        3.9301        .12377        .16231E-03
   3  Normalizat    .49520        .72687E-01    .11091        .27584E-04
   4  Prefactor     1.4196        .51205E-01    .49106E-01   -.38465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.57577
  Index      = 3.50952
  Normalizat = 0.495199
  Prefactor  = 1.41959
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.096     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5758        146.01        .17085E-03   -1.5236    
   2  Index         3.5095        6.6948        .76024E-02   -.30270    
   3  Normalizat    .49520        .29505        .49174E-03   -1.1264    
   4  Prefactor     1.4196        .20915        .21706E-03   -.79817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36352e-10
Minuit parameter uncertainties:
  1  57.2213
  2  5.00489
  3  0.295989
  4  0.209274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12170': 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) = 6915.09550538
delta logL = 0.371572118458

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.420e+00  2.093e-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:  4.952e-01  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 207.757 0.487

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/12170/cmap_HighResolution_308016001_308275201_4FGL_J1351.0+0029_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-08 15:25:49.704875', job_id='12170', GAL2='1.42', fit_tolerance='1e-08', EG2='0.50', EG='0.57', time_epoch_completed='1631139949.7', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='3.72e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='265' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:25:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 12170: <4FGL_J1351.0+0029_daily_bin265> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin265 207.757 0.4873 308016001 308275201 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 :                                   609.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            910 sec.

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

