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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin207
RA = 207.757, Dec = 0.4873
tmin = 292982401, tmax = 293241601
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='12087', job_status='RUN', time_executed='2021-09-08 15:14:21.455890', time_epoch_executed='1631139261.46' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12087

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12087/ft1_4FGL_J1351.0+0029_daily_bin207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12087/ft2_4FGL_J1351.0+0029_daily_bin207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12087/ft1_4FGL_J1351.0+0029_daily_bin207.fits outfile=/scratch/kocevski/12087/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin207.fits ra=207.757 dec=0.4873 rad=12.0 tmin=292982401.0 tmax=293241601.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.65
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12087/ft2_4FGL_J1351.0+0029_daily_bin207.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/12087/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin207.fits evtable="EVENTS" outfile="/scratch/kocevski/12087/ft1_filtered_4FGL_J1351.0+0029_daily_bin207.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/12087/ft1_filtered_4FGL_J1351.0+0029_daily_bin207.fits" evtable="EVENTS" scfile=/scratch/kocevski/12087/ft2_4FGL_J1351.0+0029_daily_bin207.fits sctable="SC_DATA" outfile=/scratch/kocevski/12087/ltcube_292982401_293241601_4FGL_J1351.0+0029_daily_bin207.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/12087/ft2_4FGL_J1351.0+0029_daily_bin207.fits
.....................!
real 17.01
user 16.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12087/ft1_filtered_4FGL_J1351.0+0029_daily_bin207.fits evtable="EVENTS" scfile=/scratch/kocevski/12087/ft2_4FGL_J1351.0+0029_daily_bin207.fits sctable="SC_DATA" expcube=/scratch/kocevski/12087/ltcube_292982401_293241601_4FGL_J1351.0+0029_daily_bin207.fits outfile=/scratch/kocevski/12087/expmap_292982401_293241601_4FGL_J1351.0+0029_daily_bin207.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/12087/ltcube_292982401_293241601_4FGL_J1351.0+0029_daily_bin207.fits
.....................!
real 191.57
user 186.06
sys 5.01

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/12087/ft1_filtered_4FGL_J1351.0+0029_daily_bin207.fits scfile=/scratch/kocevski/12087/ft2_4FGL_J1351.0+0029_daily_bin207.fits outfile=/scratch/kocevski/12087/cmap_292982401_293241601_4FGL_J1351.0+0029_daily_bin207.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12087/ft1_filtered_4FGL_J1351.0+0029_daily_bin207.fits scfile=/scratch/kocevski/12087/ft2_4FGL_J1351.0+0029_daily_bin207.fits outfile=/scratch/kocevski/12087/cmap_HighResolution_292982401_293241601_4FGL_J1351.0+0029_daily_bin207.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.547       1.0000         .10000E-03   10000.    
     2 'norm      '    13.511       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9321       1.0000         .10000E-03   10000.    
     5 'norm      '    10.302       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41672E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6369       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10464E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6711       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    26.251       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.233       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2270       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82071       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=   7698.256     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     2277 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.551        9.9969        .90591E-04    .25099E-06
   2  norm          13.511        9.5160        .10897E-03    .10433E-06
   3  Prefactor     .10000E-03    4.9208        .18142E-02** at limit **
   4  Prefactor     6.9315        12.104        .15238E-03   -.22383E-05
   5  norm          10.302        2.0113        .51941E-04    .63474E-05
   6  Prefactor     .10000E-03    35.935        .18462    ** at limit **
   7  norm          16.594        18.608        .98326E-04    .34687E-06
   8  Prefactor     3.6364        4.8554        .10386E-02   -.45199E-04
   9  Prefactor     31.284        18.741        .71633E-04   -.25393E-05
  10  Prefactor     .10000E-03    1.4511        .10306E-02** at limit **
  11  norm          .10000E-03    9.5291        .31433E-02** at limit **
  12  Prefactor     2.6715        8.1085        .12468E-02    .27971E-03
  13  norm          1.6814        1.9443        .12644E-03   -.38663E-05
  14  Prefactor     .10000E-03    5.7310        .18142E-02** at limit **
  15  norm          26.235        13.369        .78187E-04   -.20356E-04
  16  norm          .10000E-03    2.6366        .13844E-02** at limit **
  17  Prefactor     .10000E-03    14.828        .18142E-02** at limit **
  18  norm          16.453        20.932        .98735E-04   -.15890E-04
  19  Prefactor     30.242        42.010        .72868E-04    .31203E-05
  20  Normalizat    1.2271        .23650        .27751E-03   -.20336E-03
  21  Prefactor     .82066        .15907        .23051E-03   -.13809E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.5508
  norm       = 13.5109
  Prefactor  = 0.0001
  Prefactor  = 6.93153
  norm       = 10.302
  Prefactor  = 0.0001
  norm       = 16.5936
  Prefactor  = 3.63643
  Prefactor  = 31.2838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.67146
  norm       = 1.68136
  Prefactor  = 0.0001
  norm       = 26.2354
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4528
  Prefactor  = 30.242
  Normalizat = 1.22713
  Prefactor  = 0.820664
 **********
 **   18 **HESSE 
 **********

 FCN=   7698.256     FROM HESSE     STATUS=OK           309 CALLS     2586 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.551        9.9969        .36236E-05   -1.4823    
   2  norm          13.511        9.5159        .43588E-05   -1.4973    
   3  Prefactor     .10000E-03    4.9213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9315        12.103        .60951E-05   -1.5181    
   5  norm          10.302        2.0113        .20776E-05   -1.5066    
   6  Prefactor     .10000E-03    35.903        .18479       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.594        18.609        .39330E-05   -1.4893    
   8  Prefactor     3.6364        4.8515        .41542E-04   -1.5327    
   9  Prefactor     31.284        18.740        .28653E-05   -1.4589    
  10  Prefactor     .10000E-03    1.4512        .20611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.5986        .62866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6715        8.1049        .24936E-03   -1.5381    
  13  norm          1.6814        1.9442        .50575E-05   -1.5449    
  14  Prefactor     .10000E-03    5.7312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          26.235        13.369        .31275E-05   -1.4683    
  16  norm          .10000E-03    2.6372        .27688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.453        20.934        .39494E-05   -1.4897    
  19  Prefactor     30.242        42.010        .14574E-04   -1.4608    
  20  Normalizat    1.2271        .23667        .11100E-04   -.85769    
  21  Prefactor     .82066        .15925        .92206E-05   -.98971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95879e-10
Minuit parameter uncertainties:
  1  9.99775
  2  9.51697
  3  1.35154e-06
  4  12.1077
  5  2.01128
  6  0.000222358
  7  18.6159
  8  4.85197
  9  18.743
  10  4.21767e-07
  11  4.2511e-05
  12  8.10823
  13  1.94423
  14  7.84528e-06
  15  13.3708
  16  3.33468e-06
  17  1.29913e-05
  18  20.9432
  19  42.0514
  20  0.236879
  21  0.159339
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.128e+01  1.874e+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:  8.207e-01  1.593e-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.227e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.14
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.12e-05

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) = 7697.7966916
delta logL = 0.459280324738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7697.79506062
delta logL = 0.46091130137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.425       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9879       1.0000          .0000       10.000    
     3 'Normalizat'    1.2511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80781       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=   7697.795     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      266 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.496        686.83        .14872E-02    .30718E-04
   2  Index         1.9893        5.9276        .19672        .39865E-04
   3  Normalizat    1.2516        .14262        .62207E-01   -.88323E-05
   4  Prefactor     .80743        .76158E-01    .43819E-01   -.58712E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.4956
  Index      = 1.98926
  Normalizat = 1.25158
  Prefactor  = 0.80743
 **********
 **   18 **HESSE 
 **********

 FCN=   7697.795     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.496        27.309        .29744E-03   -1.4358    
   2  Index         1.9893        .42567        .71669E-02   -.64619    
   3  Normalizat    1.2516        .22685        .27515E-03   -.85023    
   4  Prefactor     .80743        .15766        .23205E-03   -.99455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45755e-12
Minuit parameter uncertainties:
  1  27.3166
  2  0.426482
  3  0.227034
  4  0.157752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12087': 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) = 7697.79504578
delta logL = 0.460926144014

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.550e+01  2.732e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.989e+00  4.265e-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:  8.074e-01  1.578e-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.252e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.05
Ra Dec: 207.757 0.487
Photon Index (Free Index): 1.99 +/- 0.43
Photon Flux (Free Index): 4.48e-08 +/- 3.13e-08
Energy Flux (Free Index): 3.18e-05 +/- 2.82e-05

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/12087/cmap_HighResolution_292982401_293241601_4FGL_J1351.0+0029_daily_bin207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='3.18e-05', photon_flux_error='3.57e-08', dlogl='4.61e-01', energy_flux='1.86e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-09-08 15:24:16.870847', photon_index_error2='0.43', photon_index2='1.99', ts='5.14', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='1.23', time_epoch_completed='1631139856.87', return_code='0', job_id='12087', GAL2='0.81', EG2='1.25', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.13e-08', ts2='6.05', photon_index='2.44' WHERE bin_id='207' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:24:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 12087: <4FGL_J1351.0+0029_daily_bin207> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin207 207.757 0.4873 292982401 293241601 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 :                                   593.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            823 sec.

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

