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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin375
RA = 207.757, Dec = 0.4873
tmin = 336528001, tmax = 336787201
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='13520', job_status='RUN', time_executed='2021-09-08 15:17:31.031317', time_epoch_executed='1631139451.03' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13520

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13520/ft1_4FGL_J1351.0+0029_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13520/ft2_4FGL_J1351.0+0029_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13520/ft1_4FGL_J1351.0+0029_daily_bin375.fits outfile=/scratch/kocevski/13520/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin375.fits ra=207.757 dec=0.4873 rad=12.0 tmin=336528001.0 tmax=336787201.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 5.94
user 5.64
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13520/ft1_filtered_4FGL_J1351.0+0029_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/13520/ft2_4FGL_J1351.0+0029_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/13520/ltcube_336528001_336787201_4FGL_J1351.0+0029_daily_bin375.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/13520/ft2_4FGL_J1351.0+0029_daily_bin375.fits
.....................!
real 14.09
user 13.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13520/ft1_filtered_4FGL_J1351.0+0029_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/13520/ft2_4FGL_J1351.0+0029_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/13520/ltcube_336528001_336787201_4FGL_J1351.0+0029_daily_bin375.fits outfile=/scratch/kocevski/13520/expmap_336528001_336787201_4FGL_J1351.0+0029_daily_bin375.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/13520/ltcube_336528001_336787201_4FGL_J1351.0+0029_daily_bin375.fits
.....................!
real 191.78
user 186.32
sys 4.76

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/13520/ft1_filtered_4FGL_J1351.0+0029_daily_bin375.fits scfile=/scratch/kocevski/13520/ft2_4FGL_J1351.0+0029_daily_bin375.fits outfile=/scratch/kocevski/13520/cmap_336528001_336787201_4FGL_J1351.0+0029_daily_bin375.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13520/ft1_filtered_4FGL_J1351.0+0029_daily_bin375.fits scfile=/scratch/kocevski/13520/ft2_4FGL_J1351.0+0029_daily_bin375.fits outfile=/scratch/kocevski/13520/cmap_HighResolution_336528001_336787201_4FGL_J1351.0+0029_daily_bin375.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.044       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.360       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4568       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1321       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.8321       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7019       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.114       1.0000         .10000E-03   10000.    
    15 'norm      '    29.388       1.0000         .10000E-03   10000.    
    16 'norm      '    .11894E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99451E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    37.507       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.080       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5985       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .60512       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=   4696.035     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2285 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.043        16.736       -.50895E-06   -.31902E-03
   2  norm          .10000E-03    14.099       -.10441E-08** at limit **
   3  Prefactor     41.357        34.181       -.27861E-05    .11227E-04
   4  Prefactor     2.4563        19.294       -.14458E-05   -.11101E-03
   5  norm          2.1319        1.7093       -.70148E-07   -.14240E-03
   6  Prefactor     .10000E-03    73.972        .12347E-05** at limit **
   7  norm          .10000E-03    30.944       -.69942E-05** at limit **
   8  Prefactor     .71119        3.8965       -.71552E-06   -.12703E-03
   9  Prefactor     .10000E-03    9.0889       -.29772E-07** at limit **
  10  Prefactor     .10000E-03    3.3074        .93685E-08** at limit **
  11  norm          6.8322        6.0790        .15522E-05   -.56422E-04
  12  Prefactor     .10000E-03    20.349        .51561E-06** at limit **
  13  norm          2.7015        3.2336       -.62762E-06   -.89445E-03
  14  Prefactor     36.107        25.583       -.25159E-05    .97261E-05
  15  norm          29.388        15.406       -.65261E-07   -.20354E-05
  16  norm          .10008E-03    8.0215        .16238E-05** at limit **
  17  Prefactor     .10012E-03    18.638       -.20763E-06** at limit **
  18  norm          37.497        27.667       -.46014E-05    .12187E-04
  19  Prefactor     32.076        74.142       -.65285E-05    .15919E-05
  20  Normalizat    1.5987        .26323        .17076E-05   -.62320E-04
  21  Prefactor     .60503        .16703        .19304E-06   -.26139E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.0427
  norm       = 0.0001
  Prefactor  = 41.3571
  Prefactor  = 2.45633
  norm       = 2.13188
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.711191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.83217
  Prefactor  = 0.0001
  norm       = 2.70146
  Prefactor  = 36.1067
  norm       = 29.3879
  norm       = 0.000100082
  Prefactor  = 0.000100118
  norm       = 37.4974
  Prefactor  = 32.0759
  Normalizat = 1.59868
  Prefactor  = 0.605033
 **********
 **   18 **HESSE 
 **********

 FCN=   4696.035     FROM HESSE     STATUS=OK           323 CALLS     2608 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.043        16.870        .47144E-03   -1.4858    
   2  norm          .10000E-03    14.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.357        34.227        .62331E-04   -1.4421    
   4  Prefactor     2.4563        19.564        .26095E-03   -1.5395    
   5  norm          2.1319        1.7070        .76765E-04   -1.5416    
   6  Prefactor     .10000E-03    73.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    30.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .71119        13.200        .25136E-02   -1.5539    
   9  Prefactor     .10000E-03    9.1156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3219        .12170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.8322        6.0459        .15350E-03   -1.5185    
  12  Prefactor     .10000E-03    21.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7015        3.1999        .12487E-03   -1.5379    
  14  Prefactor     36.107        25.633        .66689E-04   -1.4505    
  15  norm          29.388        15.411        .73906E-04   -1.4623    
  16  norm          .10008E-03    32.712        .35854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10012E-03    99.788        .56961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          37.497        27.490        .65442E-04   -1.4482    
  19  Prefactor     32.076        74.175        .70745E-04   -1.4575    
  20  Normalizat    1.5987        .31355        .25617E-03   -.75042    
  21  Prefactor     .60503        .19603        .25904E-03   -1.0737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13941e-09
Minuit parameter uncertainties:
  1  16.8747
  2  2.62461e-06
  3  34.2434
  4  13.8705
  5  1.70703
  6  1.71958e-05
  7  2.84793e-07
  8  6.12894
  9  2.06674e-06
  10  2.73945e-06
  11  6.04645
  12  2.45826e-05
  13  3.20011
  14  25.6405
  15  15.4129
  16  0.00327525
  17  0.00688665
  18  27.4996
  19  74.3891
  20  0.31394
  21  0.196252
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.067e-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:  6.050e-01  1.963e-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.599e+00  3.139e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13520/likelihoodResults_336528001_336787201_4FGL_J1351.0+0029_daily_bin375.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) = 4696.03582826
delta logL = -0.000520129362485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4696.03530885
delta logL = -7.1911199484e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11820E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4033       1.0000          .0000       10.000    
     3 'Normalizat'    1.5986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60508       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=   4696.035     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.262        .18142E-01** at limit **
   2  Index         1.7375        6.3764        .50000        .33879E-08
   3  Normalizat    1.5987        .90215E-02    .25616E-03    .63234E-03
   4  Prefactor     .60503        .59527E-02    .25904E-03    .62575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73753
  Normalizat = 1.59869
  Prefactor  = 0.605034
 **********
 **   18 **HESSE 
 **********

 FCN=   4696.035     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    229.74        .27188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7375        9.0747        .50000       -.71087    
   3  Normalizat    1.5987        .23612E-01    .51233E-04   -.75042    
   4  Prefactor     .60503        .15580E-01    .51809E-04   -1.0737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04777e-10
Minuit parameter uncertainties:
  1  0.000455903
  2  609.525
  3  0.0236121
  4  0.0155801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13520': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4696.03530565
delta logL = 2.4829623726e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  6.050e-01  1.558e-02  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.599e+00  2.361e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/13520/cmap_HighResolution_336528001_336787201_4FGL_J1351.0+0029_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-08 15:26:23.891546', job_id='13520', GAL2='0.61', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1631139983.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='375' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:26:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 13520: <4FGL_J1351.0+0029_daily_bin375> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin375> 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) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:20 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:20 2021
Terminated at Wed Sep  8 15:26:24 2021
Results reported at Wed Sep  8 15:26:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin375 207.757 0.4873 336528001 336787201 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 :                                   528.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            666 sec.

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

