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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin975
RA = 207.757, Dec = 0.4873
tmin = 492048001, tmax = 492307201
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='17308', job_status='RUN', time_executed='2021-09-08 15:30:19.430318', time_epoch_executed='1631140219.43' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17308

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17308/ft1_4FGL_J1351.0+0029_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17308/ft2_4FGL_J1351.0+0029_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17308/ft1_4FGL_J1351.0+0029_daily_bin975.fits outfile=/scratch/kocevski/17308/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin975.fits ra=207.757 dec=0.4873 rad=12.0 tmin=492048001.0 tmax=492307201.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.73
user 3.48
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17308/ft1_filtered_4FGL_J1351.0+0029_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/17308/ft2_4FGL_J1351.0+0029_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/17308/ltcube_492048001_492307201_4FGL_J1351.0+0029_daily_bin975.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/17308/ft2_4FGL_J1351.0+0029_daily_bin975.fits
.....................!
real 14.72
user 14.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17308/ft1_filtered_4FGL_J1351.0+0029_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/17308/ft2_4FGL_J1351.0+0029_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/17308/ltcube_492048001_492307201_4FGL_J1351.0+0029_daily_bin975.fits outfile=/scratch/kocevski/17308/expmap_492048001_492307201_4FGL_J1351.0+0029_daily_bin975.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/17308/ltcube_492048001_492307201_4FGL_J1351.0+0029_daily_bin975.fits
.....................!
real 192.23
user 186.39
sys 4.97

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/17308/ft1_filtered_4FGL_J1351.0+0029_daily_bin975.fits scfile=/scratch/kocevski/17308/ft2_4FGL_J1351.0+0029_daily_bin975.fits outfile=/scratch/kocevski/17308/cmap_492048001_492307201_4FGL_J1351.0+0029_daily_bin975.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.61
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17308/ft1_filtered_4FGL_J1351.0+0029_daily_bin975.fits scfile=/scratch/kocevski/17308/ft2_4FGL_J1351.0+0029_daily_bin975.fits outfile=/scratch/kocevski/17308/cmap_HighResolution_492048001_492307201_4FGL_J1351.0+0029_daily_bin975.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.63
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.192       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4220       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48422E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .12820E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24744E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.137       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1725       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10451E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    71.459       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .17774E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    191.47       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .61492       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89256       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=   1350.484     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2514 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6189        .94271E-07** at limit **
   2  norm          12.193        14.298        .26424E-06   -.28975E-05
   3  Prefactor     .10000E-03    55.165        .16944E-04** at limit **
   4  Prefactor     .10000E-03    27.636       -.18034E-05** at limit **
   5  norm          4.4217        3.1715        .10371E-05   -.23686E-03
   6  Prefactor     .10000E-03    882.79       -.68674E-03** at limit **
   7  norm          .10000E-03    91.095       -.58565E-04** at limit **
   8  Prefactor     .10000E-03    13.574       -.27040E-06** at limit **
   9  Prefactor     .10000E-03    125.07        .70658E-04** at limit **
  10  Prefactor     52.160        121.75        .26991E-04    .20619E-04
  11  norm          2.1668        14.759        .31374E-05   -.15072E-03
  12  Prefactor     .10000E-03    19.677       -.74781E-06** at limit **
  13  norm          .10000E-03    4.2746        .30596E-06** at limit **
  14  Prefactor     .10000E-03    57.133       -.68506E-05** at limit **
  15  norm          .10000E-03    21.912        .13552E-05** at limit **
  16  norm          71.472        29.051        .72855E-06   -.53753E-04
  17  Prefactor     .10015E-03    947.02       -.15500E-03** at limit **
  18  norm          .10004E-03    226.64        .34121E-04** at limit **
  19  Prefactor     192.31        775.23        .61198E-03    .37270E-05
  20  Normalizat    .61534        .49105       -.12648E-04   -.11974E-03
  21  Prefactor     .89202        .30929       -.81692E-05    .45560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 12.193
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.42169
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.1599
  norm       = 2.16682
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 71.4716
  Prefactor  = 0.000100155
  norm       = 0.000100036
  Prefactor  = 192.311
  Normalizat = 0.615344
  Prefactor  = 0.892018
 **********
 **   18 **HESSE 
 **********

 FCN=   1350.484     FROM HESSE     STATUS=OK           303 CALLS     2817 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6211        .85089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.193        14.302        .11473E-03   -1.5009    
   3  Prefactor     .10000E-03    55.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4217        3.1744        .50077E-04   -1.5287    
   6  Prefactor     .10000E-03    881.99        .19246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    91.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.575        .13226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    125.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     52.160        121.74        .55545E-04   -1.4262    
  11  norm          2.1668        14.609        .26135E-03   -1.5414    
  12  Prefactor     .10000E-03    19.680        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3505        .74064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    21.928        .16807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          71.472        29.054        .47490E-04   -1.4015    
  17  Prefactor     .10015E-03    948.53        .21299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10004E-03    226.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     192.31        773.93        .14594E-03   -1.2925    
  20  Normalizat    .61534        .57504        .37288E-03   -1.0734    
  21  Prefactor     .89202        .36799        .20052E-03   -.96421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70973e-09
Minuit parameter uncertainties:
  1  1.67904e-05
  2  14.3056
  3  0.000515631
  4  8.61654e-06
  5  3.17451
  6  0.000742397
  7  0.000515164
  8  5.5924e-05
  9  0.000322631
  10  122.327
  11  11.2563
  12  7.3631e-05
  13  6.5055e-05
  14  0.000590853
  15  5.35545e-05
  16  29.0598
  17  0.0246294
  18  0.00575359
  19  790.113
  20  0.580767
  21  0.36902
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.226e-04  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.920e-01  3.690e-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:  6.153e-01  5.808e-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: 3.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17308/likelihoodResults_492048001_492307201_4FGL_J1351.0+0029_daily_bin975.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) = 1350.4839139
delta logL = -3.78580768938e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1350.4838759
delta logL = 1.37568349601e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27468E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9760       1.0000          .0000       10.000    
     3 'Normalizat'    .61534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89202       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=   1350.484     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      237 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27460E-03    2.4164        .10713    ** at limit **
   2  Index         2.9760        6.4100        .50000       -.66553E-05
   3  Normalizat    .61536        .21189E-02    .84183E-01    .15189E-04
   4  Prefactor     .89201        .13626E-02    .44903E-01   -.27094E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000274601
  Index      = 2.97597
  Normalizat = 0.615363
  Prefactor  = 0.892006
 **********
 **   18 **HESSE 
 **********

 FCN=   1350.484     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      272 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27460E-03    611.08        .58281E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9760        7.8660        .50000       -.41677    
   3  Normalizat    .61536        .12142E-01    .37289E-03   -1.0734    
   4  Prefactor     .89201        .78274E-02    .20053E-03   -.96421    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.08383e-07
Minuit parameter uncertainties:
  1  0.660129
  2  188.638
  3  0.0121424
  4  0.00782737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17308': 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) = 1350.4838759
delta logL = 1.38197037813e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.746e-04  6.601e-01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.976e+00  1.886e+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:  8.920e-01  7.827e-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:  6.154e-01  1.214e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17308/cmap_HighResolution_492048001_492307201_4FGL_J1351.0+0029_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-02', job_status='DONE', photon_flux_upper_limit='3.99e-07', time_completed='2021-09-08 15:36:45.332046', job_id='17308', GAL2='0.89', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1631140605.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='975' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:36:45 PDT 2021


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

Job <4FGL_J1351.0+0029_daily_bin975> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:43 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:26:43 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:43 2021
Terminated at Wed Sep  8 15:36:46 2021
Results reported at Wed Sep  8 15:36:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin975 207.757 0.4873 492048001 492307201 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 :                                   378.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             207.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            663 sec.

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

