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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin200
RA = 207.757, Dec = 0.4873
tmin = 291168001, tmax = 291427201
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='12077', job_status='RUN', time_executed='2021-09-08 15:15:39.729088', time_epoch_executed='1631139339.73' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12077/ft1_4FGL_J1351.0+0029_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12077/ft2_4FGL_J1351.0+0029_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12077/ft1_4FGL_J1351.0+0029_daily_bin200.fits outfile=/scratch/kocevski/12077/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin200.fits ra=207.757 dec=0.4873 rad=12.0 tmin=291168001.0 tmax=291427201.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.50
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12077/ft2_4FGL_J1351.0+0029_daily_bin200.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/12077/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin200.fits evtable="EVENTS" outfile="/scratch/kocevski/12077/ft1_filtered_4FGL_J1351.0+0029_daily_bin200.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12077/ft1_filtered_4FGL_J1351.0+0029_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/12077/ft2_4FGL_J1351.0+0029_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/12077/ltcube_291168001_291427201_4FGL_J1351.0+0029_daily_bin200.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/12077/ft2_4FGL_J1351.0+0029_daily_bin200.fits
.....................!
real 14.45
user 14.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12077/ft1_filtered_4FGL_J1351.0+0029_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/12077/ft2_4FGL_J1351.0+0029_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/12077/ltcube_291168001_291427201_4FGL_J1351.0+0029_daily_bin200.fits outfile=/scratch/kocevski/12077/expmap_291168001_291427201_4FGL_J1351.0+0029_daily_bin200.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/12077/ltcube_291168001_291427201_4FGL_J1351.0+0029_daily_bin200.fits
.....................!
real 193.19
user 187.43
sys 5.13

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/12077/ft1_filtered_4FGL_J1351.0+0029_daily_bin200.fits scfile=/scratch/kocevski/12077/ft2_4FGL_J1351.0+0029_daily_bin200.fits outfile=/scratch/kocevski/12077/cmap_291168001_291427201_4FGL_J1351.0+0029_daily_bin200.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/12077/ft1_filtered_4FGL_J1351.0+0029_daily_bin200.fits scfile=/scratch/kocevski/12077/ft2_4FGL_J1351.0+0029_daily_bin200.fits outfile=/scratch/kocevski/12077/cmap_HighResolution_291168001_291427201_4FGL_J1351.0+0029_daily_bin200.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/12077/ft1_filtered_4FGL_J1351.0+0029_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/12077/ft2_4FGL_J1351.0+0029_daily_bin200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12077/Model_4FGL_J1351.0+0029_daily_bin200.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/12077/ft1_filtered_4FGL_J1351.0+0029_daily_bin200.fits.....................!
real 47.58
user 46.19
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3681       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.6685       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    91.945       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7710       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0385       1.0000         .10000E-03   10000.    
    13 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8172       1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3838       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88086       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=   5872.361     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1837 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3661        11.928       -.74762E-06   -.34864E-04
   2  norm          .10000E-03    5.0216        .34684E-05** at limit **
   3  Prefactor     .10000E-03    27.256        .33134E-05** at limit **
   4  Prefactor     .10000E-03    6.5215       -.21440E-05** at limit **
   5  norm          6.6676        2.3592       -.14659E-06   -.49919E-04
   6  Prefactor     .10000E-03    22.640        .18808E-05** at limit **
   7  norm          .10000E-03    20.785       -.45886E-05** at limit **
   8  Prefactor     .10000E-03    4.6278       -.27275E-05** at limit **
   9  Prefactor     91.950        35.309        .70780E-05    .25525E-03
  10  Prefactor     4.7703        4.1547       -.33721E-06    .14698E-03
  11  norm          .10000E-03    3.7761       -.12910E-07** at limit **
  12  Prefactor     3.0065        31.383       -.48576E-04    .93749E-04
  13  norm          .10000E-03    2.8907       -.73538E-07** at limit **
  14  Prefactor     7.8187        18.080        .96420E-05    .89776E-04
  15  norm          .10000E-03    11.223       -.58734E-05** at limit **
  16  norm          2.1606        6.2653       -.11487E-05   -.42011E-03
  17  Prefactor     .10000E-03    10.718       -.10491E-05** at limit **
  18  norm          .10000E-03    9.8184        .68829E-05** at limit **
  19  Prefactor     .10000E-03    23.271        .34361E-05** at limit **
  20  Normalizat    1.3843        .23362        .42285E-05    .22927E-03
  21  Prefactor     .88054        .15568       -.74314E-06    .52796E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.36609
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.66764
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.9501
  Prefactor  = 4.77035
  norm       = 0.0001
  Prefactor  = 3.00646
  norm       = 0.0001
  Prefactor  = 7.81868
  norm       = 0.0001
  norm       = 2.16055
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.38433
  Prefactor  = 0.88054
 **********
 **   18 **HESSE 
 **********

 FCN=   5872.361     FROM HESSE     STATUS=OK           309 CALLS     2146 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3661        11.925        .13094E-03   -1.5096    
   2  norm          .10000E-03    5.0156        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6676        2.3614        .66463E-04   -1.5191    
   6  Prefactor     .10000E-03    22.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8098        .32116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     91.950        35.430        .41909E-04   -1.3787    
  10  Prefactor     4.7703        4.1590        .14164E-03   -1.5271    
  11  norm          .10000E-03    3.7896        .14542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0065        32.113        .23277E-03   -1.5361    
  13  norm          .10000E-03    2.9916        .25390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8187        18.075        .14342E-03   -1.5149    
  15  norm          .10000E-03    11.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1606        6.2496        .28023E-03   -1.5414    
  17  Prefactor     .10000E-03    10.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.8002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3843        .28027        .27942E-03   -.81083    
  21  Prefactor     .88054        .18674        .23308E-03   -.96824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13312e-09
Minuit parameter uncertainties:
  1  11.9285
  2  4.95979e-05
  3  0.000240565
  4  1.92898e-05
  5  2.36147
  6  6.48571e-05
  7  0.000113715
  8  7.09721e-05
  9  35.438
  10  4.15922
  11  8.01245e-06
  12  19.6649
  13  1.77291e-05
  14  18.0873
  15  0.000117159
  16  6.2515
  17  1.65548e-05
  18  0.000144395
  19  0.000110094
  20  0.28058
  21  0.186878
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  9.195e+01  3.544e+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.805e-01  1.869e-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.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.37
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.75e-07 +/- 6.74e-08
Energy Flux (Fixed Index): 5.47e-05 +/- 2.11e-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) = 5871.42741246
delta logL = 0.933643904827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.42711926
delta logL = 0.933937100388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    119.14       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9645       1.0000          .0000       10.000    
     3 'Normalizat'    1.4623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84560       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=   5871.427     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      232 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     119.30        89.171        .92167E-03    .35401E-05
   2  Index         1.9643        .55686        .13541        .37810E-04
   3  Normalizat    1.4623        .23768        .61827E-01    .97445E-04
   4  Prefactor     .84553        .15810        .44308E-01    .13587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 119.303
  Index      = 1.96434
  Normalizat = 1.46231
  Prefactor  = 0.845532
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.427     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     119.30        47.624        .36867E-04   -1.3519    
   2  Index         1.9643        .32936        .53545E-02   -.65245    
   3  Normalizat    1.4623        .27566        .27344E-03   -.78843    
   4  Prefactor     .84553        .18637        .23732E-03   -.98071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69032e-11
Minuit parameter uncertainties:
  1  47.6397
  2  0.329734
  3  0.275941
  4  0.186512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12077': 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) = 5871.42711335
delta logL = 0.933943010014

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.193e+02  4.764e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.964e+00  3.297e-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.455e-01  1.865e-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.462e+00  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.25
Ra Dec: 207.757 0.487
Photon Index (Free Index): 1.96 +/- 0.33
Photon Flux (Free Index): 1.14e-07 +/- 6.28e-08
Energy Flux (Free Index): 8.61e-05 +/- 5.26e-05

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/12077/cmap_HighResolution_291168001_291427201_4FGL_J1351.0+0029_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-07', energy_flux2='8.61e-05', photon_flux_error='6.74e-08', dlogl='9.34e-01', energy_flux='5.47e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-08 15:24:31.962101', photon_index_error2='0.33', photon_index2='1.96', ts='22.37', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='5.26e-05', EG='1.38', time_epoch_completed='1631139871.96', return_code='0', job_id='12077', GAL2='0.85', EG2='1.46', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='6.28e-08', ts2='24.25', photon_index='2.44' WHERE bin_id='200' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:24:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 12077: <4FGL_J1351.0+0029_daily_bin200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin200 207.757 0.4873 291168001 291427201 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 :                                   494.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            839 sec.

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

