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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin376
RA = 207.757, Dec = 0.4873
tmin = 336787201, tmax = 337046401
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='13522', job_status='RUN', time_executed='2021-09-08 15:18:33.806989', time_epoch_executed='1631139513.81' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13522

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13522/ft1_4FGL_J1351.0+0029_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13522/ft2_4FGL_J1351.0+0029_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13522/ft1_4FGL_J1351.0+0029_daily_bin376.fits outfile=/scratch/kocevski/13522/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin376.fits ra=207.757 dec=0.4873 rad=12.0 tmin=336787201.0 tmax=337046401.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 6.77
user 6.47
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13522/ft1_filtered_4FGL_J1351.0+0029_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/13522/ft2_4FGL_J1351.0+0029_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/13522/ltcube_336787201_337046401_4FGL_J1351.0+0029_daily_bin376.fits outfile=/scratch/kocevski/13522/expmap_336787201_337046401_4FGL_J1351.0+0029_daily_bin376.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/13522/ltcube_336787201_337046401_4FGL_J1351.0+0029_daily_bin376.fits
.....................!
real 193.55
user 187.16
sys 5.74

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/13522/ft1_filtered_4FGL_J1351.0+0029_daily_bin376.fits scfile=/scratch/kocevski/13522/ft2_4FGL_J1351.0+0029_daily_bin376.fits outfile=/scratch/kocevski/13522/cmap_336787201_337046401_4FGL_J1351.0+0029_daily_bin376.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13522/ft1_filtered_4FGL_J1351.0+0029_daily_bin376.fits scfile=/scratch/kocevski/13522/ft2_4FGL_J1351.0+0029_daily_bin376.fits outfile=/scratch/kocevski/13522/cmap_HighResolution_336787201_337046401_4FGL_J1351.0+0029_daily_bin376.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7963       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6431       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.361       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18889       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8563       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28285       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4385       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9818       1.0000         .10000E-03   10000.    
    16 'norm      '    24.461       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.043       1.0000         .10000E-03   10000.    
    18 'norm      '    .10801E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    256.06       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0499       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0720       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=   4858.727     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     2554 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9541        .17920E-02** at limit **
   2  norm          .10000E-03    7.4061        .18142E-02** at limit **
   3  Prefactor     14.213        22.275        .10632E-03    .24808E-04
   4  Prefactor     8.7901        13.299        .13515E-03   -.43743E-05
   5  norm          1.6430        1.4035        .73858E-04    .14161E-04
   6  Prefactor     .10000E-03    23.866        .18142E-02** at limit **
   7  norm          12.495        20.087        .11335E-03    .97284E-05
   8  Prefactor     7.7970        5.3694        .12702E-03    .32222E-05
   9  Prefactor     39.369        36.719        .63888E-04    .97871E-05
  10  Prefactor     .18682        25.752        .23356E-02   -.34481E-03
  11  norm          3.8606        7.8418        .20550E-03    .28214E-04
  12  Prefactor     .23364        31.839        .72784E-01    .20393E-03
  13  norm          3.4386        2.9982        .10732E-03    .28285E-04
  14  Prefactor     .10000E-03    6.8390        .17801E-02** at limit **
  15  norm          2.9839        9.4982        .23511E-03    .16876E-04
  16  norm          24.467        14.380        .80992E-04    .27372E-04
  17  Prefactor     38.009        34.356        .64982E-04    .12072E-04
  18  norm          .10000E-03    12.550        .18142E-02** at limit **
  19  Prefactor     256.07        137.46        .12662E-03   -.34119E-05
  20  Normalizat    1.0505        .32259        .30917E-03   -.88620E-05
  21  Prefactor     1.0714        .21662        .21818E-03   -.10161E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2128
  Prefactor  = 8.79007
  norm       = 1.64299
  Prefactor  = 0.0001
  norm       = 12.4945
  Prefactor  = 7.79702
  Prefactor  = 39.3687
  Prefactor  = 0.186819
  norm       = 3.8606
  Prefactor  = 0.233642
  norm       = 3.43861
  Prefactor  = 0.0001
  norm       = 2.98389
  norm       = 24.4666
  Prefactor  = 38.0086
  norm       = 0.0001
  Prefactor  = 256.071
  Normalizat = 1.05054
  Prefactor  = 1.07143
 **********
 **   18 **HESSE 
 **********

 FCN=   4858.727     FROM HESSE     STATUS=OK           307 CALLS     2861 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9550        .35840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.4061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.213        22.267        .42527E-05   -1.4954    
   4  Prefactor     8.7901        13.297        .54059E-05   -1.5115    
   5  norm          1.6430        1.4033        .29543E-05   -1.5452    
   6  Prefactor     .10000E-03    23.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.495        20.085        .45342E-05   -1.5001    
   8  Prefactor     7.7970        5.3693        .50806E-05   -1.5149    
   9  Prefactor     39.369        36.463        .25555E-05   -1.4452    
  10  Prefactor     .18682        25.945        .93422E-04   -1.5622    
  11  norm          3.8606        7.8410        .82200E-05   -1.5315    
  12  Prefactor     .23364        25.066        .83251E-01   -1.5611    
  13  norm          3.4386        2.9979        .42927E-05   -1.5337    
  14  Prefactor     .10000E-03    6.8390        .35601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9839        9.4979        .94044E-05   -1.5362    
  16  norm          24.467        14.377        .32397E-05   -1.4718    
  17  Prefactor     38.009        34.358        .25993E-05   -1.4474    
  18  norm          .10000E-03    12.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     256.07        137.45        .50647E-05   -1.2494    
  20  Normalizat    1.0505        .32268        .12367E-04   -.91356    
  21  Prefactor     1.0714        .21678        .87273E-05   -.90385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83818e-09
Minuit parameter uncertainties:
  1  4.78995e-06
  2  3.40281e-07
  3  22.2804
  4  13.3017
  5  1.40328
  6  1.3186e-06
  7  20.096
  8  5.36958
  9  36.4839
  10  4.40399
  11  7.84311
  12  4.84106
  13  2.99801
  14  3.61724e-07
  15  9.50271
  16  14.3794
  17  34.3761
  18  3.4421e-06
  19  137.621
  20  0.323289
  21  0.216959
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.937e+01  3.648e+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:  1.071e+00  2.170e-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.051e+00  3.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 7.50e-08 +/- 6.94e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 2.17e-05

TS (Fixed Index): 2.00
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 2.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13522/likelihoodResults_336787201_337046401_4FGL_J1351.0+0029_daily_bin376.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) = 4858.3737346
delta logL = 0.353246496633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4858.36093974
delta logL = 0.36604135387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.104       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1463       1.0000          .0000       10.000    
     3 'Normalizat'    .98349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1049       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=   4858.361     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      304 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.104        44.346        .47065E-03   -.82418E-04
   2  Index         3.1467        1.3825        .45269E-02   -.17537E-04
   3  Normalizat    .98327        .31763        .31832E-03   -.58214E-05
   4  Prefactor     1.1049        .22108        .21527E-03   -.15315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1043
  Index      = 3.14675
  Normalizat = 0.983273
  Prefactor  = 1.10493
 **********
 **   18 **HESSE 
 **********

 FCN=   4858.361     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.104        29.345        .18826E-04   -1.4857    
   2  Index         3.1467        .92020        .18108E-03   -.37971    
   3  Normalizat    .98327        .31446        .12733E-04   -.93593    
   4  Prefactor     1.1049        .21857        .86107E-05   -.89309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01566e-11
Minuit parameter uncertainties:
  1  29.3683
  2  0.926326
  3  0.315049
  4  0.218746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13522': 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) = 4858.36093887
delta logL = 0.366042218878

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.810e+01  2.937e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  3.147e+00  9.263e-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:  1.105e+00  2.187e-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:  9.833e-01  3.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 207.757 0.487
Photon Index (Free Index): 3.15 +/- 0.93
Photon Flux (Free Index): 1.18e-07 +/- 8.90e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.60e-05

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/13522/cmap_HighResolution_336787201_337046401_4FGL_J1351.0+0029_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='7.50e-08', energy_flux2='2.21e-05', photon_flux_error='6.94e-08', dlogl='3.66e-01', energy_flux='2.34e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-08 15:27:58.508640', photon_index_error2='0.93', photon_index2='3.15', ts='2.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.60e-05', EG='1.05', time_epoch_completed='1631140078.51', return_code='0', job_id='13522', GAL2='1.10', EG2='0.98', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='8.90e-08', ts2='2.82', photon_index='2.44' WHERE bin_id='376' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:27:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 13522: <4FGL_J1351.0+0029_daily_bin376> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin376 207.757 0.4873 336787201 337046401 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 :                                   561.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

