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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin314
RA = 207.757, Dec = 0.4873
tmin = 320716801, tmax = 320976001
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='12242', job_status='RUN', time_executed='2021-09-08 15:15:23.125762', time_epoch_executed='1631139323.13' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12242

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12242/ft1_4FGL_J1351.0+0029_daily_bin314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12242/ft2_4FGL_J1351.0+0029_daily_bin314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12242/ft1_4FGL_J1351.0+0029_daily_bin314.fits outfile=/scratch/kocevski/12242/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin314.fits ra=207.757 dec=0.4873 rad=12.0 tmin=320716801.0 tmax=320976001.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.45
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12242/ft2_4FGL_J1351.0+0029_daily_bin314.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/12242/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin314.fits evtable="EVENTS" outfile="/scratch/kocevski/12242/ft1_filtered_4FGL_J1351.0+0029_daily_bin314.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.52
user 0.36
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12242/ft1_filtered_4FGL_J1351.0+0029_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/12242/ft2_4FGL_J1351.0+0029_daily_bin314.fits sctable="SC_DATA" expcube=/scratch/kocevski/12242/ltcube_320716801_320976001_4FGL_J1351.0+0029_daily_bin314.fits outfile=/scratch/kocevski/12242/expmap_320716801_320976001_4FGL_J1351.0+0029_daily_bin314.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/12242/ltcube_320716801_320976001_4FGL_J1351.0+0029_daily_bin314.fits
.....................!
real 190.99
user 186.32
sys 4.23

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12242/ft1_filtered_4FGL_J1351.0+0029_daily_bin314.fits scfile=/scratch/kocevski/12242/ft2_4FGL_J1351.0+0029_daily_bin314.fits outfile=/scratch/kocevski/12242/cmap_HighResolution_320716801_320976001_4FGL_J1351.0+0029_daily_bin314.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1632       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7109       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4890       1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.847       1.0000         .10000E-03   10000.    
     7 'norm      '    .63965       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.185       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7436       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.188       1.0000         .10000E-03   10000.    
    16 'norm      '    .53925       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85361       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1296       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=   7490.409     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2251 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8983        .18331E-07** at limit **
   2  norm          .10000E-03    3.7761       -.59928E-08** at limit **
   3  Prefactor     4.1641        9.3800        .26985E-05   -.15054E-03
   4  Prefactor     3.7101        9.4980        .38558E-05   -.15827E-03
   5  norm          1.4895        .97593       -.77180E-07   -.36264E-03
   6  Prefactor     53.805        76.905       -.39745E-04   -.37809E-05
   7  norm          .84122E-01    26.190       -.14896E-05    .40914E-04
   8  Prefactor     22.184        5.8855        .24614E-06   -.97700E-04
   9  Prefactor     .10000E-03    6.4211       -.64340E-07** at limit **
  10  Prefactor     .10000E-03    2.7780        .24395E-06** at limit **
  11  norm          5.7433        5.3205       -.20391E-06   -.46899E-05
  12  Prefactor     .10000E-03    7.6333       -.48293E-07** at limit **
  13  norm          3.5609        2.6043       -.12567E-07    .13143E-03
  14  Prefactor     .10000E-03    8.3593       -.44453E-07** at limit **
  15  norm          14.187        10.942       -.21523E-05    .16332E-04
  16  norm          .59158        6.7476       -.15906E-05   -.11951E-03
  17  Prefactor     .10000E-03    61.102        .37765E-04** at limit **
  18  norm          .10000E-03    42.686        .10729E-04** at limit **
  19  Prefactor     .10000E-03    54.550       -.47012E-04** at limit **
  20  Normalizat    .85345        .19629        .68044E-06   -.77332E-04
  21  Prefactor     1.1298        .13947        .56757E-06   -.76633E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.16411
  Prefactor  = 3.71011
  norm       = 1.48954
  Prefactor  = 53.8048
  norm       = 0.0841222
  Prefactor  = 22.1842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.74333
  Prefactor  = 0.0001
  norm       = 3.56094
  Prefactor  = 0.0001
  norm       = 14.1867
  norm       = 0.59158
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.853448
  Prefactor  = 1.12978
 **********
 **   18 **HESSE 
 **********

 FCN=   7490.409     FROM HESSE     STATUS=OK           325 CALLS     2576 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9019        .11645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.7778        .16425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1641        9.3608        .19754E-03   -1.5300    
   4  Prefactor     3.7101        9.4690        .20963E-03   -1.5323    
   5  norm          1.4895        .96591        .66511E-04   -1.5464    
   6  Prefactor     53.805        77.072        .54660E-04   -1.4240    
   7  norm          .84122E-01    31.423        .13127       -1.5650    
   8  Prefactor     22.184        5.8943        .85040E-04   -1.4766    
   9  Prefactor     .10000E-03    6.4327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7997        .14085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7433        5.3196        .16760E-03   -1.5229    
  12  Prefactor     .10000E-03    7.7364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5609        2.5701        .10773E-03   -1.5331    
  14  Prefactor     .10000E-03    8.3744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.187        10.949        .10633E-03   -1.4954    
  16  norm          .59158        25.967        .40694E-02   -1.5554    
  17  Prefactor     .10000E-03    62.002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    43.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .85345        .23115        .31557E-03   -.98116    
  21  Prefactor     1.1298        .16551        .20018E-03   -.88520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64863e-08
Minuit parameter uncertainties:
  1  1.37531e-06
  2  1.04856e-06
  3  9.36404
  4  9.47284
  5  0.965921
  6  77.2152
  7  3.25146
  8  5.8945
  9  4.9078e-06
  10  3.66949e-05
  11  5.32006
  12  1.40635e-05
  13  2.57016
  14  9.48066e-06
  15  10.9506
  16  7.84172
  17  0.000949979
  18  0.000336384
  19  9.1528e-06
  20  0.231415
  21  0.165587
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  4.908e-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:  1.130e+00  1.656e-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:  8.534e-01  2.314e-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: 5.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12242/likelihoodResults_320716801_320976001_4FGL_J1351.0+0029_daily_bin314.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) = 7490.40960056
delta logL = -0.000739924999834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7490.40886062
delta logL = 7.51970219426e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4189       1.0000          .0000       10.000    
     3 'Normalizat'    .85346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1298       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=   7490.409     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      245 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10313E-03    5.4845        .18142E-01** at limit **
   2  Index         2.2993        6.0748        .50000        .17866E-04
   3  Normalizat    .85345        .40946E-02    .31557E-03   -.81780E-05
   4  Prefactor     1.1298        .29655E-02    .20018E-03   -.16697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103131
  Index      = 2.29926
  Normalizat = 0.853448
  Prefactor  = 1.12978
 **********
 **   18 **HESSE 
 **********

 FCN=   7490.409     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10313E-03    100.67        .22376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2993        6.3801        .50000       -.57061    
   3  Normalizat    .85345        .17767E-01    .12623E-04   -.98116    
   4  Prefactor     1.1298        .12868E-01    .80072E-05   -.88520    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67217e-08
Minuit parameter uncertainties:
  1  0.0355641
  2  579.2
  3  0.0177674
  4  0.012868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12242': 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) = 7490.40886017
delta logL = 4.56607267552e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.031e-04  3.556e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.299e+00  5.792e+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:  1.130e+00  1.287e-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:  8.534e-01  1.777e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/12242/cmap_HighResolution_320716801_320976001_4FGL_J1351.0+0029_daily_bin314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-08 15:26:02.744239', job_id='12242', GAL2='1.13', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631139962.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='4.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='314' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:26:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 12242: <4FGL_J1351.0+0029_daily_bin314> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin314 207.757 0.4873 320716801 320976001 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 :                                   634.56 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            917 sec.

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

