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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin598
RA = 207.757, Dec = 0.4873
tmin = 394329601, tmax = 394588801
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='15632', job_status='RUN', time_executed='2021-09-08 15:25:18.682554', time_epoch_executed='1631139918.68' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15632

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15632/ft1_4FGL_J1351.0+0029_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15632/ft2_4FGL_J1351.0+0029_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15632/ft1_4FGL_J1351.0+0029_daily_bin598.fits outfile=/scratch/kocevski/15632/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin598.fits ra=207.757 dec=0.4873 rad=12.0 tmin=394329601.0 tmax=394588801.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 7.54
user 7.13
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15632/ft2_4FGL_J1351.0+0029_daily_bin598.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/15632/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/15632/ft1_filtered_4FGL_J1351.0+0029_daily_bin598.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.55
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15632/ft1_filtered_4FGL_J1351.0+0029_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/15632/ft2_4FGL_J1351.0+0029_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/15632/ltcube_394329601_394588801_4FGL_J1351.0+0029_daily_bin598.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/15632/ft2_4FGL_J1351.0+0029_daily_bin598.fits
.....................!
real 16.02
user 15.55
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15632/ft1_filtered_4FGL_J1351.0+0029_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/15632/ft2_4FGL_J1351.0+0029_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/15632/ltcube_394329601_394588801_4FGL_J1351.0+0029_daily_bin598.fits outfile=/scratch/kocevski/15632/expmap_394329601_394588801_4FGL_J1351.0+0029_daily_bin598.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/15632/ltcube_394329601_394588801_4FGL_J1351.0+0029_daily_bin598.fits
.....................!
real 193.28
user 186.27
sys 6.26

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/15632/ft1_filtered_4FGL_J1351.0+0029_daily_bin598.fits scfile=/scratch/kocevski/15632/ft2_4FGL_J1351.0+0029_daily_bin598.fits outfile=/scratch/kocevski/15632/cmap_394329601_394588801_4FGL_J1351.0+0029_daily_bin598.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15632/ft1_filtered_4FGL_J1351.0+0029_daily_bin598.fits scfile=/scratch/kocevski/15632/ft2_4FGL_J1351.0+0029_daily_bin598.fits outfile=/scratch/kocevski/15632/cmap_HighResolution_394329601_394588801_4FGL_J1351.0+0029_daily_bin598.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.58
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.547       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2918       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    81.606       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.095       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0708       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3764       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6292       1.0000         .10000E-03   10000.    
    15 'norm      '    23.570       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.224       1.0000         .10000E-03   10000.    
    18 'norm      '    11.522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.712       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96871       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=   7696.761     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2501 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.547        8.9363       -.17536E-06    .27124E-04
   2  norm          1.2916        14.487        .20612E-04   -.17327E-03
   3  Prefactor     12.476        17.447        .24619E-06    .47599E-04
   4  Prefactor     .10000E-03    14.277       -.21378E-06** at limit **
   5  norm          3.3159        1.3620       -.42971E-07    .14784E-03
   6  Prefactor     81.590        77.778        .24579E-05    .54796E-04
   7  norm          .10000E-03    12.646       -.11730E-05** at limit **
   8  Prefactor     13.095        5.6216       -.95252E-07    .50538E-04
   9  Prefactor     .10000E-03    7.6599        .37037E-06** at limit **
  10  Prefactor     6.0709        6.5219       -.51943E-07   -.19521E-05
  11  norm          .10000E-03    3.4452       -.24881E-06** at limit **
  12  Prefactor     .10000E-03    4.8990       -.19637E-06** at limit **
  13  norm          1.3762        2.1922       -.24664E-08   -.89163E-04
  14  Prefactor     5.6279        15.402        .65206E-06    .36720E-04
  15  norm          23.571        12.364        .88026E-07    .37533E-04
  16  norm          .10000E-03    6.5848       -.50038E-06** at limit **
  17  Prefactor     19.223        22.878        .45328E-06    .49108E-04
  18  norm          11.522        19.658        .57412E-06    .35549E-04
  19  Prefactor     15.808        154.72       -.32951E-04   -.96324E-04
  20  Normalizat    1.0620        .19937        .23705E-05    .11312E-03
  21  Prefactor     .96867        .13669       -.14932E-05    .85475E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.5467
  norm       = 1.29156
  Prefactor  = 12.4763
  Prefactor  = 0.000100001
  norm       = 3.31585
  Prefactor  = 81.5898
  norm       = 0.0001
  Prefactor  = 13.0949
  Prefactor  = 0.0001
  Prefactor  = 6.07086
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37616
  Prefactor  = 5.62794
  norm       = 23.5705
  norm       = 0.0001
  Prefactor  = 19.2231
  norm       = 11.5215
  Prefactor  = 15.8076
  Normalizat = 1.06203
  Prefactor  = 0.968674
 **********
 **   18 **HESSE 
 **********

 FCN=   7696.761     FROM HESSE     STATUS=OK           323 CALLS     2824 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.547        8.9363        .93001E-04   -1.4846    
   2  norm          1.2916        14.525        .19476E-02   -1.5481    
   3  Prefactor     12.476        17.494        .11340E-03   -1.5001    
   4  Prefactor     .10000E-03    14.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3159        1.3615        .62384E-04   -1.5344    
   6  Prefactor     81.590        77.784        .22231E-03   -1.3899    
   7  norm          .10000E-03    12.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.095        5.6496        .11069E-03   -1.4984    
   9  Prefactor     .10000E-03    7.7004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0709        6.5147        .16295E-03   -1.5215    
  11  norm          .10000E-03    3.4763        .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3762        2.1708        .15390E-03   -1.5473    
  14  Prefactor     5.6279        15.395        .16932E-03   -1.5233    
  15  norm          23.571        12.372        .82507E-04   -1.4737    
  16  norm          .10000E-03    6.7774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.223        22.887        .91349E-04   -1.4831    
  18  norm          11.522        19.648        .11802E-03   -1.5029    
  19  Prefactor     15.808        156.45        .10104E-03   -1.4913    
  20  Normalizat    1.0620        .24125        .29422E-03   -.90980    
  21  Prefactor     .96867        .16504        .21583E-03   -.93781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94536e-10
Minuit parameter uncertainties:
  1  8.93696
  2  8.66491
  3  17.5008
  4  0.00019326
  5  1.36152
  6  77.8809
  7  7.51444e-05
  8  5.64985
  9  1.70142e-05
  10  6.51545
  11  2.53446e-05
  12  2.78784e-05
  13  2.17092
  14  15.406
  15  12.3735
  16  2.51491e-05
  17  22.8976
  18  19.6591
  19  99.8001
  20  0.241495
  21  0.165124
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.701e-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:  9.687e-01  1.651e-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.062e+00  2.415e-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: 5.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15632/likelihoodResults_394329601_394588801_4FGL_J1351.0+0029_daily_bin598.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): 102
logL (Free Index) = 7696.76121573
delta logL = -0.000618800177108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7696.76059814
delta logL = -1.20631557365e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4007       1.0000          .0000       10.000    
     3 'Normalizat'    1.0619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96866       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7696.761     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10500E-03    7.5694        .18142E-01** at limit **
   2  Index         2.2895        8.5986        .50000        .28712E-04
   3  Normalizat    1.0620        .42754E-02    .29422E-03    .63834E-04
   4  Prefactor     .96867        .30278E-02    .21583E-03    .91075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105003
  Index      = 2.28947
  Normalizat = 1.06203
  Prefactor  = 0.968674
 **********
 **   18 **HESSE 
 **********

 FCN=   7696.761     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10500E-03    64.589        .25928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2895        5.5427        .50000       -.57294    
   3  Normalizat    1.0620        .12423E-01    .11769E-04   -.90980    
   4  Prefactor     .96867        .87983E-02    .86331E-05   -.93781    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.52011e-09
Minuit parameter uncertainties:
  1  0.0359906
  2  273.393
  3  0.0124234
  4  0.00879828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15632': 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): 102
logL (Free Index) = 7696.76059603
delta logL = 9.00627128431e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.050e-04  3.599e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.289e+00  2.734e+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.687e-01  8.798e-03  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.062e+00  1.242e-02  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/15632/cmap_HighResolution_394329601_394588801_4FGL_J1351.0+0029_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2021-09-08 15:36:49.801372', job_id='15632', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631140609.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='598' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 15632: <4FGL_J1351.0+0029_daily_bin598> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin598> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:21 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:21:30 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:21:30 2021
Terminated at Wed Sep  8 15:36:50 2021
Results reported at Wed Sep  8 15:36:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin598 207.757 0.4873 394329601 394588801 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            989 sec.

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

