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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin192
RA = 207.757, Dec = 0.4873
tmin = 289094401, tmax = 289353601
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='12065', job_status='RUN', time_executed='2021-09-08 15:15:29.558861', time_epoch_executed='1631139329.56' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12065

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12065/ft1_4FGL_J1351.0+0029_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12065/ft2_4FGL_J1351.0+0029_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12065/ft1_4FGL_J1351.0+0029_daily_bin192.fits outfile=/scratch/kocevski/12065/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin192.fits ra=207.757 dec=0.4873 rad=12.0 tmin=289094401.0 tmax=289353601.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.62
user 3.37
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12065/ft1_filtered_4FGL_J1351.0+0029_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/12065/ft2_4FGL_J1351.0+0029_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/12065/ltcube_289094401_289353601_4FGL_J1351.0+0029_daily_bin192.fits outfile=/scratch/kocevski/12065/expmap_289094401_289353601_4FGL_J1351.0+0029_daily_bin192.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/12065/ltcube_289094401_289353601_4FGL_J1351.0+0029_daily_bin192.fits
.....................!
real 191.82
user 186.02
sys 4.07

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/12065/ft1_filtered_4FGL_J1351.0+0029_daily_bin192.fits scfile=/scratch/kocevski/12065/ft2_4FGL_J1351.0+0029_daily_bin192.fits outfile=/scratch/kocevski/12065/cmap_289094401_289353601_4FGL_J1351.0+0029_daily_bin192.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9003       1.0000         .10000E-03   10000.    
     2 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    26.861       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.779       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87086       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2090       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.394       1.0000         .10000E-03   10000.    
    15 'norm      '    24.183       1.0000         .10000E-03   10000.    
    16 'norm      '    .21533       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .98499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13698E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4184       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74062       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=   6441.789     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2242 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8997        6.7031       -.27362E-06   -.17288E-03
   2  norm          .10000E-03    9.0204        .46132E-07** at limit **
   3  Prefactor     .10000E-03    8.6211        .26565E-07** at limit **
   4  Prefactor     .10000E-03    27.720       -.14672E-06** at limit **
   5  norm          6.1726        1.8801       -.26555E-07   -.17550E-04
   6  Prefactor     .10000E-03    17.808       -.83847E-07** at limit **
   7  norm          26.842        29.968        .10227E-05   -.86862E-04
   8  Prefactor     4.8103        4.6878       -.10294E-06   -.24372E-03
   9  Prefactor     10.764        16.179       -.42722E-05    .53242E-03
  10  Prefactor     .86974        3.7214       -.27125E-05   -.10489E-02
  11  norm          3.2084        4.8160       -.16945E-06   -.18365E-03
  12  Prefactor     .10000E-03    3.2165        .15624E-07** at limit **
  13  norm          .10000E-03    1.5313       -.36184E-07** at limit **
  14  Prefactor     22.385        18.457        .11396E-05   -.17188E-03
  15  norm          24.177        15.906        .67282E-06   -.19639E-03
  16  norm          .11168        6.2150       -.52830E-06   -.50678E-04
  17  Prefactor     .10000E-03    10.922        .59255E-07** at limit **
  18  norm          .97684        15.246       -.25542E-05    .15364E-03
  19  Prefactor     .10000E-03    195.82       -.27075E-05** at limit **
  20  Normalizat    1.4181        .21305        .78830E-06    .16462E-03
  21  Prefactor     .74098        .14317        .14924E-07    .23509E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89972
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.17259
  Prefactor  = 0.0001
  norm       = 26.8416
  Prefactor  = 4.81027
  Prefactor  = 10.764
  Prefactor  = 0.869736
  norm       = 3.20837
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.3847
  norm       = 24.1772
  norm       = 0.111675
  Prefactor  = 0.0001
  norm       = 0.97684
  Prefactor  = 0.000100001
  Normalizat = 1.41811
  Prefactor  = 0.740977
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.789     FROM HESSE     STATUS=OK           321 CALLS     2563 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8997        6.7178        .20430E-03   -1.5313    
   2  norm          .10000E-03    9.0619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1726        1.8877        .57895E-04   -1.5211    
   6  Prefactor     .10000E-03    17.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.842        29.888        .77296E-04   -1.4671    
   8  Prefactor     4.8103        4.6920        .16282E-03   -1.5269    
   9  Prefactor     10.764        15.216        .12203E-03   -1.5052    
  10  Prefactor     .86974        6.3472        .38080E-03   -1.5521    
  11  norm          3.2084        4.8190        .21010E-03   -1.5350    
  12  Prefactor     .10000E-03    3.2186        .14057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5640        .19358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.385        18.298        .84643E-04   -1.4761    
  15  norm          24.177        15.827        .81457E-04   -1.4724    
  16  norm          .11168        7.5595        .62019E-01   -1.5641    
  17  Prefactor     .10000E-03    10.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .97684        77.398        .59905E-02   -1.5510    
  19  Prefactor     .10000E-03    196.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4181        .25690        .26411E-03   -.80106    
  21  Prefactor     .74098        .17235        .23713E-03   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98714e-09
Minuit parameter uncertainties:
  1  6.71914
  2  6.04638e-06
  3  6.34304e-06
  4  1.92661e-05
  5  1.88775
  6  1.60948e-05
  7  29.9049
  8  4.69238
  9  15.2219
  10  4.69954
  11  4.81956
  12  2.16671e-06
  13  1.88478e-07
  14  18.3029
  15  15.8295
  16  1.83704
  17  4.62177e-07
  18  17.4128
  19  0.00103556
  20  0.257132
  21  0.172471
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.410e-01  1.725e-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.418e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12065/likelihoodResults_289094401_289353601_4FGL_J1351.0+0029_daily_bin192.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) = 6441.77381189
delta logL = 0.0156137489193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6441.76948162
delta logL = 0.0199440196993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3550       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6480       1.0000          .0000       10.000    
     3 'Normalizat'    1.4129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74304       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=   6441.769     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3555        16.412        .13103E-03    .36788E-04
   2  Index         2.6481        1.1215        .10138E-01    .22733E-03
   3  Normalizat    1.4130        .25159        .26451E-03    .84929E-04
   4  Prefactor     .74294        .16889        .23684E-03    .93842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.35545
  Index      = 2.64812
  Normalizat = 1.413
  Prefactor  = 0.742938
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.769     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3555        15.611        .52411E-05   -1.5096    
   2  Index         2.6481        1.0675        .20276E-02   -.48972    
   3  Normalizat    1.4130        .25173        .52902E-04   -.80254    
   4  Prefactor     .74294        .16900        .94737E-05   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70655e-11
Minuit parameter uncertainties:
  1  15.6175
  2  1.07821
  3  0.25195
  4  0.16912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12065': 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) = 6441.76948134
delta logL = 0.0199443044812

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  9.355e+00  1.562e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.648e+00  1.078e+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.429e-01  1.691e-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.413e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.81
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/12065/cmap_HighResolution_289094401_289353601_4FGL_J1351.0+0029_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-08 15:25:25.134991', job_id='12065', GAL2='0.74', fit_tolerance='1e-08', EG2='1.41', EG='1.42', time_epoch_completed='1631139925.14', return_code2='0', ts='0.81', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.99e-02', ts2='0.85', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='192' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:25:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 12065: <4FGL_J1351.0+0029_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin192 207.757 0.4873 289094401 289353601 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 :                                   590.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            892 sec.

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

