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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin497
RA = 207.757, Dec = 0.4873
tmin = 368150401, tmax = 368409601
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='13748', job_status='RUN', time_executed='2021-09-08 15:17:49.615119', time_epoch_executed='1631139469.62' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13748/ft1_4FGL_J1351.0+0029_daily_bin497.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13748/ft2_4FGL_J1351.0+0029_daily_bin497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13748/ft1_4FGL_J1351.0+0029_daily_bin497.fits outfile=/scratch/kocevski/13748/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin497.fits ra=207.757 dec=0.4873 rad=12.0 tmin=368150401.0 tmax=368409601.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.37
user 3.13
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13748/ft1_filtered_4FGL_J1351.0+0029_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/13748/ft2_4FGL_J1351.0+0029_daily_bin497.fits sctable="SC_DATA" expcube=/scratch/kocevski/13748/ltcube_368150401_368409601_4FGL_J1351.0+0029_daily_bin497.fits outfile=/scratch/kocevski/13748/expmap_368150401_368409601_4FGL_J1351.0+0029_daily_bin497.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/13748/ltcube_368150401_368409601_4FGL_J1351.0+0029_daily_bin497.fits
.....................!
real 192.02
user 187.25
sys 4.24

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/13748/ft1_filtered_4FGL_J1351.0+0029_daily_bin497.fits scfile=/scratch/kocevski/13748/ft2_4FGL_J1351.0+0029_daily_bin497.fits outfile=/scratch/kocevski/13748/cmap_368150401_368409601_4FGL_J1351.0+0029_daily_bin497.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.742       1.0000         .10000E-03   10000.    
     2 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25455E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2849       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82544E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7086       1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8593       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.791       1.0000         .10000E-03   10000.    
    15 'norm      '    7.3507       1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.598       1.0000         .10000E-03   10000.    
    18 'norm      '    39.487       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95848       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=   5523.303     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     2940 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.735        15.149        .74730E-04    .99949E-04
   2  norm          .10000E-03    5.0898        .16374E-02** at limit **
   3  Prefactor     .10761        18.009        .86930E-01    .13093E-03
   4  Prefactor     .10000E-03    16.995        .18142E-02** at limit **
   5  norm          .10000E-03    .79950        .12763E-03** at limit **
   6  Prefactor     .10000E-03    94.420        .21458E-02** at limit **
   7  norm          .10000E-03    11.157        .18142E-02** at limit **
   8  Prefactor     3.2848        3.5296        .13911E-03   -.13893E-05
   9  Prefactor     .10230E-03    17.207        .91534E-01** at limit **
  10  Prefactor     2.7093        2.6395        .11580E-03    .47810E-04
  11  norm          .10000E-03    6.9050        .18142E-02** at limit **
  12  Prefactor     2.8629        11.000        .24042E-03    .33621E-04
  13  norm          .10000E-03    2.6318        .23009E-02** at limit **
  14  Prefactor     24.801        20.983        .80452E-04    .84786E-05
  15  norm          7.3505        7.7412        .14793E-03    .22440E-04
  16  norm          .10000E-03    6.3062        .18142E-02** at limit **
  17  Prefactor     13.604        26.839        .10862E-03   -.52331E-06
  18  norm          39.506        27.068        .31893E-03   -.16326E-04
  19  Prefactor     .10000E-03    21.665        .18142E-02** at limit **
  20  Normalizat    1.1239        .26783        .28102E-03    .78766E-04
  21  Prefactor     .95853        .18341        .21197E-03    .92410E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.7348
  norm       = 0.0001
  Prefactor  = 0.107613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.28477
  Prefactor  = 0.000102305
  Prefactor  = 2.70928
  norm       = 0.0001
  Prefactor  = 2.86286
  norm       = 0.0001
  Prefactor  = 24.801
  norm       = 7.35045
  norm       = 0.0001
  Prefactor  = 13.6036
  norm       = 39.5065
  Prefactor  = 0.0001
  Normalizat = 1.12391
  Prefactor  = 0.958527
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.303     FROM HESSE     STATUS=OK           315 CALLS     3255 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.735        15.148        .29892E-05   -1.4635    
   2  norm          .10000E-03    5.0898        .32749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10761        17.314        .89456E-01   -1.5642    
   4  Prefactor     .10000E-03    17.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .79950        .25527E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    94.464        .42915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2848        3.5295        .55645E-05   -1.5345    
   9  Prefactor     .10230E-03    17.053        .92172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7093        2.6395        .46321E-05   -1.5379    
  11  norm          .10000E-03    6.9110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8629        10.998        .96167E-05   -1.5370    
  13  norm          .10000E-03    2.6396        .46019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.801        20.981        .32181E-05   -1.4712    
  15  norm          7.3505        7.7411        .59174E-05   -1.5166    
  16  norm          .10000E-03    6.3079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.604        26.840        .43449E-05   -1.4970    
  18  norm          39.506        27.067        .12757E-04   -1.4450    
  19  Prefactor     .10000E-03    21.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1239        .26814        .11241E-04   -.88988    
  21  Prefactor     .95853        .18362        .84788E-05   -.94125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19895e-10
Minuit parameter uncertainties:
  1  15.1505
  2  3.97271e-06
  3  2.72951
  4  7.84309e-06
  5  3.35458e-06
  6  2.05726e-05
  7  5.27199e-07
  8  3.5297
  9  0.0125424
  10  2.63957
  11  8.56158e-07
  12  11.0061
  13  5.06576e-06
  14  20.9877
  15  7.74218
  16  9.76949e-08
  17  26.864
  18  27.075
  19  9.61624e-08
  20  0.268471
  21  0.183737
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.023e-04  1.254e-02  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.585e-01  1.837e-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.124e+00  2.685e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13748/likelihoodResults_368150401_368409601_4FGL_J1351.0+0029_daily_bin497.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) = 5523.30338543
delta logL = -3.63759681932e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5523.30338543
delta logL = -3.60882040695e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4368       1.0000          .0000       10.000    
     3 'Normalizat'    1.1239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95853       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=   5523.302     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      315 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54497        16.295        .90712E-01    .17413E-03
   2  Index         2.8901        1.4156        .50000       -.51965E-05
   3  Normalizat    1.1219        .83575E-02    .63580E-01   -.25630E-03
   4  Prefactor     .95892        .59019E-02    .45747E-01   -.25567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.544966
  Index      = 2.89005
  Normalizat = 1.12193
  Prefactor  = 0.958918
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.302     FROM HESSE     STATUS=OK            31 CALLS      346 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54497        210.76        .38249E-02   -1.5560    
   2  Index         2.8901        6.4686        .15041E-01   -.43564    
   3  Normalizat    1.1219        .26193        .28124E-03   -.89051    
   4  Prefactor     .95892        .18307        .21193E-03   -.94112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85443e-10
Minuit parameter uncertainties:
  1  21.5091
  2  13.0196
  3  0.262231
  4  0.183185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13748': 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) = 5523.30162321
delta logL = 0.0017618569027

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  5.450e-01  2.151e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.890e+00  1.302e+01  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.589e-01  1.832e-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.122e+00  2.622e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/13748/cmap_HighResolution_368150401_368409601_4FGL_J1351.0+0029_daily_bin497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', job_status='DONE', photon_flux_upper_limit='8.99e-08', time_completed='2021-09-08 15:27:39.251515', job_id='13748', GAL2='0.96', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631140059.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.76e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='497' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:27:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 13748: <4FGL_J1351.0+0029_daily_bin497> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin497> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:33 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:40 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:15:40 2021
Terminated at Wed Sep  8 15:27:40 2021
Results reported at Wed Sep  8 15:27:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin497 207.757 0.4873 368150401 368409601 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 :                                   586.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            727 sec.

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

