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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin470
RA = 207.757, Dec = 0.4873
tmin = 361152001, tmax = 361411201
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='13705', job_status='RUN', time_executed='2021-09-08 15:15:47.229203', time_epoch_executed='1631139347.23' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13705/ft1_4FGL_J1351.0+0029_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13705/ft2_4FGL_J1351.0+0029_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13705/ft1_4FGL_J1351.0+0029_daily_bin470.fits outfile=/scratch/kocevski/13705/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin470.fits ra=207.757 dec=0.4873 rad=12.0 tmin=361152001.0 tmax=361411201.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.59
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13705/ft1_filtered_4FGL_J1351.0+0029_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/13705/ft2_4FGL_J1351.0+0029_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/13705/ltcube_361152001_361411201_4FGL_J1351.0+0029_daily_bin470.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/13705/ft2_4FGL_J1351.0+0029_daily_bin470.fits
.....................!
real 14.63
user 14.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13705/ft1_filtered_4FGL_J1351.0+0029_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/13705/ft2_4FGL_J1351.0+0029_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/13705/ltcube_361152001_361411201_4FGL_J1351.0+0029_daily_bin470.fits outfile=/scratch/kocevski/13705/expmap_361152001_361411201_4FGL_J1351.0+0029_daily_bin470.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/13705/ltcube_361152001_361411201_4FGL_J1351.0+0029_daily_bin470.fits
.....................!
real 192.06
user 187.02
sys 4.44

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/13705/ft1_filtered_4FGL_J1351.0+0029_daily_bin470.fits scfile=/scratch/kocevski/13705/ft2_4FGL_J1351.0+0029_daily_bin470.fits outfile=/scratch/kocevski/13705/cmap_361152001_361411201_4FGL_J1351.0+0029_daily_bin470.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13705/ft1_filtered_4FGL_J1351.0+0029_daily_bin470.fits scfile=/scratch/kocevski/13705/ft2_4FGL_J1351.0+0029_daily_bin470.fits outfile=/scratch/kocevski/13705/cmap_HighResolution_361152001_361411201_4FGL_J1351.0+0029_daily_bin470.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.174       1.0000         .10000E-03   10000.    
     2 'norm      '    5.1062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8119       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6228       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2246       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2929       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9064       1.0000         .10000E-03   10000.    
    13 'norm      '    .43740       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.876       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2537       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2995       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6842.250     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     1536 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.173        1.0081       -.92788E-07    .27019E-04
   2  norm          5.1063        1.0050       -.29464E-07   -.97059E-05
   3  Prefactor     8.8068        1.5557       -.21123E-05    .11261E-02
   4  Prefactor     .10000E-03    14.399       -.19862E-04** at limit **
   5  norm          .10000E-03    1.1110        .66730E-06** at limit **
   6  Prefactor     .10010E-03    11.164        .78851E-06** at limit **
   7  norm          .10005E-03    23.076       -.29510E-04** at limit **
   8  Prefactor     3.6227        3.8487        .21685E-05    .90152E-03
   9  Prefactor     .10000E-03    11.059        .64976E-05** at limit **
  10  Prefactor     3.2245        1.6367       -.57854E-06   -.16705E-02
  11  norm          2.2935        1.2778        .19661E-05    .18166E-02
  12  Prefactor     7.9050        1.0281       -.42238E-06    .17073E-03
  13  norm          .43775        1.1207        .37289E-06   -.78068E-04
  14  Prefactor     .10000E-03    5.2331        .66135E-06** at limit **
  15  norm          17.877        1.0018       -.63933E-07    .20935E-04
  16  norm          .10000E-03    3.4502       -.35181E-06** at limit **
  17  Prefactor     1.2502        1.4907       -.46962E-05    .30959E-03
  18  norm          6.7840        1.0038       -.95814E-08   -.67360E-04
  19  Prefactor     .10001E-03    19.589        .37584E-04** at limit **
  20  Normalizat    1.2996        .23447       -.24776E-05    .22476E-04
  21  Prefactor     .82732        .15980        .96547E-06    .26600E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 42.1732
  norm       = 5.10628
  Prefactor  = 8.80679
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001001
  norm       = 0.000100054
  Prefactor  = 3.62265
  Prefactor  = 0.0001
  Prefactor  = 3.22448
  norm       = 2.29351
  Prefactor  = 7.90503
  norm       = 0.437749
  Prefactor  = 0.0001
  norm       = 17.8766
  norm       = 0.0001
  Prefactor  = 1.25017
  norm       = 6.78396
  Prefactor  = 0.000100009
  Normalizat = 1.29962
  Prefactor  = 0.827322
 **********
 **   18 **HESSE 
 **********

 FCN=   6842.250     FROM HESSE     STATUS=OK           369 CALLS     1905 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.173        15.608        .15432E-02   -1.4408    
   2  norm          5.1063        7.3882        .44482E-02   -1.5256    
   3  Prefactor     8.8068        18.209        .33757E-02   -1.5114    
   4  Prefactor     .10000E-03    14.295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .57491        .23887E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10010E-03    28.675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10005E-03    32.026        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6227        4.0890        .53067E-02   -1.5327    
   9  Prefactor     .10000E-03    11.051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2245        4.3280        .56397E-02   -1.5349    
  11  norm          2.2935        4.8545        .67766E-02   -1.5405    
  12  Prefactor     7.9050        14.428        .35650E-02   -1.5146    
  13  norm          .43775        1.2300        .32631E-01   -1.5576    
  14  Prefactor     .10000E-03    5.2309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.877        11.023        .23682E-02   -1.4862    
  16  norm          .10000E-03    3.4299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2502        92.089        .99768E-02   -1.5484    
  18  norm          6.7840        13.326        .38509E-02   -1.5187    
  19  Prefactor     .10001E-03    22.060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2996        .20164        .60274E-01   -.83578    
  21  Prefactor     .82732        .13405        .44073E-01   -.98729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87097e-08
Minuit parameter uncertainties:
  1  15.6094
  2  7.38952
  3  18.22
  4  4.53771e-05
  5  3.4707e-06
  6  0.00339393
  7  0.00263584
  8  4.08927
  9  3.5049e-05
  10  4.32846
  11  4.85533
  12  14.4339
  13  1.23012
  14  2.02877e-05
  15  11.0245
  16  1.18806e-06
  17  21.493
  18  13.3314
  19  0.00090563
  20  0.201765
  21  0.134107
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.505e-05  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.273e-01  1.341e-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.300e+00  2.018e-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: 7.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13705/likelihoodResults_361152001_361411201_4FGL_J1351.0+0029_daily_bin470.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) = 6842.25051138
delta logL = -0.000430309044532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6842.25008124
delta logL = -1.59713636094e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4360       1.0000          .0000       10.000    
     3 'Normalizat'    1.2995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82738       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=   6842.250     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.952        .90712E-02** at limit **
   2  Index         2.4351        6.1952        .50000        .61866E-06
   3  Normalizat    1.2996        .19284        .60274E-01    .72006E-05
   4  Prefactor     .82732        .13263        .44073E-01    .13220E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43512
  Normalizat = 1.29962
  Prefactor  = 0.827323
 **********
 **   18 **HESSE 
 **********

 FCN=   6842.250     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .71E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4351        6.2173        .50000       -.53865    
   3  Normalizat    1.2996        .23079        .26657E-03   -.83578    
   4  Prefactor     .82732        .15880        .22287E-03   -.98729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06337e-13
Minuit parameter uncertainties:
  1  8.31747e-06
  2  4.49643
  3  0.23097
  4  0.158883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13705': 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) = 6842.25008108
delta logL = 2.61024979409e-10

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  8.317e-06  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.435e+00  4.496e+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:  8.273e-01  1.589e-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.300e+00  2.310e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/13705/cmap_HighResolution_361152001_361411201_4FGL_J1351.0+0029_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-09-08 15:25:06.213974', job_id='13705', GAL2='0.83', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1631139906.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.61e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='470' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:25:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 13705: <4FGL_J1351.0+0029_daily_bin470> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin470> 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) <bullet0125>, 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:25:07 2021
Results reported at Wed Sep  8 15:25:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin470 207.757 0.4873 361152001 361411201 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 :                                   552.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             339.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            577 sec.

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

