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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin296
RA = 207.757, Dec = 0.4873
tmin = 316051201, tmax = 316310401
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='12216', job_status='RUN', time_executed='2021-09-08 15:14:56.639583', time_epoch_executed='1631139296.64' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12216/ft1_4FGL_J1351.0+0029_daily_bin296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12216/ft2_4FGL_J1351.0+0029_daily_bin296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12216/ft1_4FGL_J1351.0+0029_daily_bin296.fits outfile=/scratch/kocevski/12216/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin296.fits ra=207.757 dec=0.4873 rad=12.0 tmin=316051201.0 tmax=316310401.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.54
user 3.29
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12216/ft1_filtered_4FGL_J1351.0+0029_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/12216/ft2_4FGL_J1351.0+0029_daily_bin296.fits sctable="SC_DATA" expcube=/scratch/kocevski/12216/ltcube_316051201_316310401_4FGL_J1351.0+0029_daily_bin296.fits outfile=/scratch/kocevski/12216/expmap_316051201_316310401_4FGL_J1351.0+0029_daily_bin296.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/12216/ltcube_316051201_316310401_4FGL_J1351.0+0029_daily_bin296.fits
.....................!
real 193.04
user 186.84
sys 4.17

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/12216/ft1_filtered_4FGL_J1351.0+0029_daily_bin296.fits scfile=/scratch/kocevski/12216/ft2_4FGL_J1351.0+0029_daily_bin296.fits outfile=/scratch/kocevski/12216/cmap_316051201_316310401_4FGL_J1351.0+0029_daily_bin296.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=207.757 yref=0.4873 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0493       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4849       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.994       1.0000         .10000E-03   10000.    
     7 'norm      '    5.7409       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12267E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11297E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5592       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9582       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8459       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.926       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6435       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78263       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=   8243.753     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1922 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0506        8.4133        .27006E-06    .54054E-06
   2  norm          6.1673        6.4030       -.17150E-06    .78436E-05
   3  Prefactor     6.4821        11.591        .35311E-06    .22481E-05
   4  Prefactor     .10000E-03    3.0633       -.10012E-06** at limit **
   5  norm          3.0985        1.3437        .46750E-07    .94716E-04
   6  Prefactor     41.000        45.122        .59015E-05    .26358E-04
   7  norm          5.7403        20.149       -.61882E-06    .50321E-05
   8  Prefactor     .10000E-03    1.6268        .45336E-07** at limit **
   9  Prefactor     .10000E-03    43.902       -.27895E-04** at limit **
  10  Prefactor     .10000E-03    1.7897       -.12885E-06** at limit **
  11  norm          1.9518        3.7303        .82087E-06   -.67447E-04
  12  Prefactor     .10000E-03    3.3101        .10844E-06** at limit **
  13  norm          .10000E-03    1.1935       -.25342E-06** at limit **
  14  Prefactor     5.5586        11.427        .85265E-07   -.19767E-03
  15  norm          4.9591        7.4222        .70796E-07   -.34207E-03
  16  norm          1.8431        2.2950        .74612E-06   -.26581E-02
  17  Prefactor     .10000E-03    21.714       -.23862E-05** at limit **
  18  norm          10.923        18.589       -.11483E-05   -.28509E-05
  19  Prefactor     .10000E-03    38.301        .27702E-04** at limit **
  20  Normalizat    1.6436        .19072       -.33246E-07    .32703E-03
  21  Prefactor     .78245        .13187        .32542E-07    .25029E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.05058
  norm       = 6.16728
  Prefactor  = 6.48213
  Prefactor  = 0.0001
  norm       = 3.09849
  Prefactor  = 40.9999
  norm       = 5.74032
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9518
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.55856
  norm       = 4.95914
  norm       = 1.84306
  Prefactor  = 0.0001
  norm       = 10.923
  Prefactor  = 0.000100001
  Normalizat = 1.6436
  Prefactor  = 0.782455
 **********
 **   18 **HESSE 
 **********

 FCN=   8243.753     FROM HESSE     STATUS=OK           323 CALLS     2245 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0506        8.4090        .13323E-03   -1.5106    
   2  norm          6.1673        6.4059        .16166E-03   -1.5211    
   3  Prefactor     6.4821        11.585        .15760E-03   -1.5199    
   4  Prefactor     .10000E-03    3.0667        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0985        1.3408        .66332E-04   -1.5356    
   6  Prefactor     41.000        45.116        .31303E-03   -1.4426    
   7  norm          5.7403        20.179        .16763E-03   -1.5229    
   8  Prefactor     .10000E-03    14.021        .22245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8033        .11861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9518        3.7110        .23518E-03   -1.5429    
  12  Prefactor     .10000E-03    3.3176        .16132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1541        .19083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5586        11.472        .85197E-03   -1.5236    
  15  norm          4.9591        7.4561        .90307E-03   -1.5263    
  16  norm          1.8431        6.0574        .15347E-02   -1.5436    
  17  Prefactor     .10000E-03    21.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.923        18.590        .12121E-03   -1.5047    
  19  Prefactor     .10000E-03    38.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6436        .22566        .25698E-03   -.73819    
  21  Prefactor     .78245        .15795        .24498E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45977e-08
Minuit parameter uncertainties:
  1  8.41013
  2  6.40661
  3  11.5895
  4  1.29263e-06
  5  1.34084
  6  45.1541
  7  20.2034
  8  0.000303643
  9  9.58529e-06
  10  2.2496e-06
  11  3.71139
  12  3.22669e-06
  13  1.82816e-05
  14  11.4764
  15  7.45754
  16  6.05938
  17  5.81682e-07
  18  18.6003
  19  0.000349125
  20  0.225805
  21  0.15804
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  9.585e-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:  7.825e-01  1.580e-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.644e+00  2.258e-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: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12216/likelihoodResults_316051201_316310401_4FGL_J1351.0+0029_daily_bin296.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) = 8243.75296942
delta logL = -0.000107664973257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8243.63442912
delta logL = 0.118432632347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6292       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6489       1.0000          .0000       10.000    
     3 'Normalizat'    1.6112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79405       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=   8243.634     FROM MIGRAD    STATUS=FAILED        98 CALLS      310 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6305        148.95        .22733E-03    .47968E-04
   2  Index         3.6484        6.3992        .93226E-02    .35842E-03
   3  Normalizat    1.6111        .23209        .25909E-03   -.35103E-06
   4  Prefactor     .79410        .15669        .24335E-03   -.18687E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8243.634     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      395 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6305        148.95        .17667E-03   -1.5453    
   2  Index         3.6484        6.3992        .11212E-02   -.27372    
   3  Normalizat    1.6111        .23209        .16022E-03   -.74702    
   4  Prefactor     .79410        .15669        .16646E-03   -.99946    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8243.634     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      426 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6305        7.7521        .45467E-04   -.30005E-05
   2  Index         3.6484        2.0034        .18645E-02    .14248E-04
   3  Normalizat    1.6111        .23243        .10364E-04   -.43879E-06
   4  Prefactor     .79410        .15628        .97339E-05   -.18687E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63054
  Index      = 3.64843
  Normalizat = 1.61111
  Prefactor  = 0.794102
 **********
 **   18 **HESSE 
 **********

 FCN=   8243.634     FROM HESSE     STATUS=OK            25 CALLS      451 TOTAL
                     EDM=   .54E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6305        6.6399        .18187E-05   -1.5453    
   2  Index         3.6484        1.8607        .37290E-03   -.27372    
   3  Normalizat    1.6111        .23312        .20727E-05   -.74702    
   4  Prefactor     .79410        .15663        .97339E-05   -.99946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39305e-14
Minuit parameter uncertainties:
  1  6.58182
  2  1.91048
  3  0.233281
  4  0.156716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12216': 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) = 8243.63442903
delta logL = 0.118432726638

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.631e+00  6.582e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  3.648e+00  1.910e+00  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.941e-01  1.567e-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.611e+00  2.333e-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/12216/cmap_HighResolution_316051201_316310401_4FGL_J1351.0+0029_daily_bin296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-08 15:26:00.536570', job_id='12216', GAL2='0.79', fit_tolerance='1e-08', EG2='1.61', EG='1.64', time_epoch_completed='1631139960.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.18e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='296' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:26:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 12216: <4FGL_J1351.0+0029_daily_bin296> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin296> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:10:44 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:12:10 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:12:10 2021
Terminated at Wed Sep  8 15:26:01 2021
Results reported at Wed Sep  8 15:26:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin296 207.757 0.4873 316051201 316310401 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 :                                   651.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            917 sec.

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

