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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin896
RA = 207.757, Dec = 0.4873
tmin = 471571201, tmax = 471830401
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='17182', job_status='RUN', time_executed='2021-09-08 15:29:04.710064', time_epoch_executed='1631140144.71' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='896'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17182/ft1_4FGL_J1351.0+0029_daily_bin896.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17182/ft2_4FGL_J1351.0+0029_daily_bin896.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17182/ft1_4FGL_J1351.0+0029_daily_bin896.fits outfile=/scratch/kocevski/17182/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin896.fits ra=207.757 dec=0.4873 rad=12.0 tmin=471571201.0 tmax=471830401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.12
user 4.76
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17182/ft1_filtered_4FGL_J1351.0+0029_daily_bin896.fits evtable="EVENTS" scfile=/scratch/kocevski/17182/ft2_4FGL_J1351.0+0029_daily_bin896.fits sctable="SC_DATA" expcube=/scratch/kocevski/17182/ltcube_471571201_471830401_4FGL_J1351.0+0029_daily_bin896.fits outfile=/scratch/kocevski/17182/expmap_471571201_471830401_4FGL_J1351.0+0029_daily_bin896.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/17182/ltcube_471571201_471830401_4FGL_J1351.0+0029_daily_bin896.fits
.....................!
real 192.93
user 187.00
sys 4.62

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/17182/ft1_filtered_4FGL_J1351.0+0029_daily_bin896.fits scfile=/scratch/kocevski/17182/ft2_4FGL_J1351.0+0029_daily_bin896.fits outfile=/scratch/kocevski/17182/cmap_471571201_471830401_4FGL_J1351.0+0029_daily_bin896.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.57
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4335       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0690       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.643       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1146       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .63314       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5830       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    29.734       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.016       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1160       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97849       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=   7323.591     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2175 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4332        4.9546        .55204E-06   -.10777E-03
   2  norm          .10000E-03    8.1338        .10067E-06** at limit **
   3  Prefactor     7.9522        14.755        .36567E-06   -.27140E-04
   4  Prefactor     1.0688        19.450        .47088E-05   -.13801E-03
   5  norm          .10000E-03    .43525        .28344E-06** at limit **
   6  Prefactor     22.633        62.819       -.60219E-06   -.97623E-05
   7  norm          .10000E-03    8.5963        .61578E-07** at limit **
   8  Prefactor     .10000E-03    3.3726        .34772E-06** at limit **
   9  Prefactor     .10000E-03    8.5924        .23771E-06** at limit **
  10  Prefactor     2.1147        5.9943        .12681E-05   -.12806E-03
  11  norm          2.0902        5.2786        .93670E-06   -.20914E-03
  12  Prefactor     .10000E-03    4.0995        .13832E-06** at limit **
  13  norm          .63194        1.2639        .11115E-05    .80204E-03
  14  Prefactor     .10000E-03    5.1314        .32869E-07** at limit **
  15  norm          4.5800        9.4873        .34867E-06   -.28039E-04
  16  norm          8.4028        5.8949        .77960E-07   -.27343E-03
  17  Prefactor     .10000E-03    12.898        .40366E-08** at limit **
  18  norm          29.737        20.888        .10994E-06    .10815E-04
  19  Prefactor     52.866        92.986       -.11086E-06   -.50528E-04
  20  Normalizat    1.1159        .18387       -.12375E-05   -.21797E-03
  21  Prefactor     .97859        .13087       -.40208E-06   -.29035E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.43323
  norm       = 0.0001
  Prefactor  = 7.95224
  Prefactor  = 1.06881
  norm       = 0.0001
  Prefactor  = 22.6328
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11472
  norm       = 2.09019
  Prefactor  = 0.0001
  norm       = 0.631943
  Prefactor  = 0.0001
  norm       = 4.58002
  norm       = 8.40275
  Prefactor  = 0.0001
  norm       = 29.737
  Prefactor  = 52.8661
  Normalizat = 1.11586
  Prefactor  = 0.97859
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.591     FROM HESSE     STATUS=OK           323 CALLS     2498 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4332        4.9266        .26231E-03   -1.5396    
   2  norm          .10000E-03    8.2303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9522        14.778        .14216E-03   -1.5144    
   4  Prefactor     1.0688        19.194        .47039E-03   -1.5501    
   5  norm          .10000E-03    .69188        .10861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.633        62.699        .84176E-04   -1.4756    
   7  norm          .10000E-03    8.5994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4473        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1147        5.9571        .28367E-03   -1.5417    
  11  norm          2.0902        5.2117        .28555E-03   -1.5419    
  12  Prefactor     .10000E-03    4.1122        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .63194        1.2129        .14877E-02   -1.5549    
  14  Prefactor     .10000E-03    5.1355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5800        9.5155        .18803E-03   -1.5280    
  16  norm          8.4028        5.8604        .69150E-03   -1.5128    
  17  Prefactor     .10000E-03    12.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          29.737        20.891        .36738E-03   -1.4617    
  19  Prefactor     52.866        93.093        .27542E-03   -1.4252    
  20  Normalizat    1.1159        .22293        .27500E-03   -.89244    
  21  Prefactor     .97859        .15909        .20647E-03   -.93447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70692e-10
Minuit parameter uncertainties:
  1  4.92746
  2  5.83532e-06
  3  14.7845
  4  9.06165
  5  1.4027e-05
  6  62.8829
  7  2.76281e-07
  8  5.93846e-06
  9  1.10228e-06
  10  5.95874
  11  5.21284
  12  9.05798e-08
  13  1.21299
  14  3.32672e-06
  15  9.51866
  16  5.8608
  17  1.78967e-05
  18  20.8966
  19  93.3509
  20  0.223116
  21  0.159165
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.102e-06  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:  9.786e-01  1.592e-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.116e+00  2.231e-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: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17182/likelihoodResults_471571201_471830401_4FGL_J1351.0+0029_daily_bin896.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) = 7323.59200256
delta logL = -0.00055325691028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7323.59145197
delta logL = -2.66899587587e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4343       1.0000          .0000       10.000    
     3 'Normalizat'    1.1157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97852       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7323.591     FROM MIGRAD    STATUS=FAILED        86 CALLS      236 TOTAL
                     EDM=   .21E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1479.7        .18142E-02** at limit **
   2  Index         2.4316        5.1554        .20000        .25140E-05
   3  Normalizat    1.1159        .89323E-01    .27500E-03   -.16830E-03
   4  Prefactor     .97859        .63617E-01    .20647E-03   -.35858E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7323.591     FROM SIMPLEX   STATUS=UNCHANGED    201 CALLS      437 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1479.7        .48897E-03** at limit **
   2  Index         2.4316        5.1554        .32084E-06    .25140E-05
   3  Normalizat    1.1159        .89323E-01    .29739E-07   -.16830E-03
   4  Prefactor     .97859        .63617E-01    .71468E-08   -.35858E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7323.591     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      474 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9068        .36285E-03** at limit **
   2  Index         2.2586        5.2487        .80000E-01    .15490E-07
   3  Normalizat    1.1159        .21875        .11000E-04    .12361E-03
   4  Prefactor     .97859        .15585        .41295E-04    .97789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25857
  Normalizat = 1.11586
  Prefactor  = 0.978589
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.591     FROM HESSE     STATUS=OK            23 CALLS      497 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6984        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2586        5.7592        .32000E-02   -.58031    
   3  Normalizat    1.1159        .21879        .22000E-05   -.89244    
   4  Prefactor     .97859        .15587        .82590E-05   -.93447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62758e-11
Minuit parameter uncertainties:
  1  3.74766e-06
  2  505.63
  3  0.218965
  4  0.15594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17182': 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) = 7323.59144925
delta logL = 5.67852111999e-08

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.748e-06  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.259e+00  5.056e+02  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:  9.786e-01  1.559e-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.116e+00  2.190e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/17182/cmap_HighResolution_471571201_471830401_4FGL_J1351.0+0029_daily_bin896.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-08 15:39:51.826694', job_id='17182', GAL2='0.98', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631140791.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='896' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 17182: <4FGL_J1351.0+0029_daily_bin896> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin896> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:33 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:26:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:26:11 2021
Terminated at Wed Sep  8 15:39:52 2021
Results reported at Wed Sep  8 15:39:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin896 207.757 0.4873 471571201 471830401 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            859 sec.

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

