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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin223
RA = 207.757, Dec = 0.4873
tmin = 297129601, tmax = 297388801
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='12112', job_status='RUN', time_executed='2021-09-08 15:13:45.146764', time_epoch_executed='1631139225.15' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12112

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12112/ft1_4FGL_J1351.0+0029_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12112/ft2_4FGL_J1351.0+0029_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12112/ft1_4FGL_J1351.0+0029_daily_bin223.fits outfile=/scratch/kocevski/12112/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin223.fits ra=207.757 dec=0.4873 rad=12.0 tmin=297129601.0 tmax=297388801.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 2.98
user 2.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12112/ft2_4FGL_J1351.0+0029_daily_bin223.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/12112/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin223.fits evtable="EVENTS" outfile="/scratch/kocevski/12112/ft1_filtered_4FGL_J1351.0+0029_daily_bin223.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.48
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12112/ft1_filtered_4FGL_J1351.0+0029_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/12112/ft2_4FGL_J1351.0+0029_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/12112/ltcube_297129601_297388801_4FGL_J1351.0+0029_daily_bin223.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/12112/ft2_4FGL_J1351.0+0029_daily_bin223.fits
.....................!
real 13.29
user 12.95
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12112/ft1_filtered_4FGL_J1351.0+0029_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/12112/ft2_4FGL_J1351.0+0029_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/12112/ltcube_297129601_297388801_4FGL_J1351.0+0029_daily_bin223.fits outfile=/scratch/kocevski/12112/expmap_297129601_297388801_4FGL_J1351.0+0029_daily_bin223.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/12112/ltcube_297129601_297388801_4FGL_J1351.0+0029_daily_bin223.fits
.....................!
real 156.54
user 151.98
sys 4.04

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/12112/ft1_filtered_4FGL_J1351.0+0029_daily_bin223.fits scfile=/scratch/kocevski/12112/ft2_4FGL_J1351.0+0029_daily_bin223.fits outfile=/scratch/kocevski/12112/cmap_297129601_297388801_4FGL_J1351.0+0029_daily_bin223.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12112/ft1_filtered_4FGL_J1351.0+0029_daily_bin223.fits scfile=/scratch/kocevski/12112/ft2_4FGL_J1351.0+0029_daily_bin223.fits outfile=/scratch/kocevski/12112/cmap_HighResolution_297129601_297388801_4FGL_J1351.0+0029_daily_bin223.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.50
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29232       1.0000         .10000E-03   10000.    
     5 'norm      '    14.648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14133E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11145E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2992       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16802E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5406       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3088       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6233       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.714       1.0000         .10000E-03   10000.    
    15 'norm      '    24.036       1.0000         .10000E-03   10000.    
    16 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.722       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4409       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .67589       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8562.386     FROM MIGRAD    STATUS=FAILED       839 CALLS     2652 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9744        .15539E-02** at limit **
   2  norm          .10000E-03    10.714        .18142E-02** at limit **
   3  Prefactor     13.233        17.319        .11015E-03   -.72455E-04
   4  Prefactor     .30849        93.528        .45278E-02    .98695E-03
   5  norm          14.649        2.1358        .48843E-04   -.21647E-03
   6  Prefactor     .10002E-03    36.780        .18015    ** at limit **
   7  norm          .10000E-03    21.810        .18142E-02** at limit **
   8  Prefactor     5.2988        3.6177        .69389E-03   -.15598E-04
   9  Prefactor     .10016E-03    9.4281        .95334E-01** at limit **
  10  Prefactor     1.5414        3.8689        .27906E-03    .61843E-04
  11  norm          3.7360        3.6536        .17029E-03   -.17892E-04
  12  Prefactor     8.3154        12.031        .13908E-03   -.29918E-04
  13  norm          1.6231        1.9671        .13634E-03    .29686E-04
  14  Prefactor     11.717        17.687        .11704E-03   -.40601E-04
  15  norm          24.036        11.277        .81705E-04   -.27272E-04
  16  norm          .10000E-03    10.204        .33179E-02** at limit **
  17  Prefactor     33.742        21.970        .69006E-04   -.73478E-04
  18  norm          7.4016        14.537        .14741E-03   -.15270E-04
  19  Prefactor     .10000E-03    44.498        .18142E-02** at limit **
  20  Normalizat    1.4407        .23177        .26312E-03   -.29490E-03
  21  Prefactor     .67575        .14729        .25002E-03   -.33857E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8562.386     FROM SIMPLEX   STATUS=UNCHANGED   1047 CALLS     3699 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9744        .24744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.714        .36244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.233        17.319        .58378E-06   -1.4980    
   4  Prefactor     .30849        93.528        .68709E-06   -1.5597    
   5  norm          14.649        2.1358        .58139E-06   -1.4942    
   6  Prefactor     .10002E-03    36.780        .10366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.810        .79767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2988        3.6177        .61086E-06   -1.5248    
   9  Prefactor     .10016E-03    9.4281        .47111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5414        3.8689        .71403E-06   -1.5460    
  11  norm          3.7360        3.6536        .71926E-06   -1.5321    
  12  Prefactor     8.3154        12.031        .10010E-05   -1.5131    
  13  norm          1.6231        1.9671        .75040E-06   -1.5453    
  14  Prefactor     11.717        17.687        .10767E-05   -1.5023    
  15  norm          24.036        11.277        .62209E-06   -1.4727    
  16  norm          .10000E-03    10.204        .43809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.742        21.970        .57694E-06   -1.4546    
  18  norm          7.4016        14.537        .60315E-06   -1.5164    
  19  Prefactor     .10000E-03    44.498        .83102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4407        .23177        .31029E-06   -.79458    
  21  Prefactor     .67575        .14729        .40872E-06   -1.0449    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8562.386     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     4022 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9749        .31078E-03** at limit **
   2  norm          .10000E-03    10.721        .36285E-03** at limit **
   3  Prefactor     13.233        17.311        .44060E-05    .14450E-04
   4  Prefactor     .30855        94.875        .90555E-03    .49464E-05
   5  norm          14.649        2.1348        .19537E-05    .81465E-04
   6  Prefactor     .10002E-03    37.239        .17833    ** at limit **
   7  norm          .10000E-03    21.816        .36285E-03** at limit **
   8  Prefactor     5.2988        3.6171        .27756E-04    .17203E-04
   9  Prefactor     .10014E-03    9.4843        .94752E-01** at limit **
  10  Prefactor     1.5414        3.8682        .11162E-04   -.44814E-05
  11  norm          3.7360        3.6535        .68116E-05    .40056E-05
  12  Prefactor     8.3154        12.025        .55632E-05    .40054E-04
  13  norm          1.6231        1.9659        .54534E-05    .12508E-04
  14  Prefactor     11.717        17.687        .46818E-05    .13598E-04
  15  norm          24.036        11.277        .32682E-05    .55657E-05
  16  norm          .10000E-03    10.277        .66359E-03** at limit **
  17  Prefactor     33.742        21.966        .27602E-05    .13180E-04
  18  norm          7.4016        14.538        .58965E-05    .30848E-05
  19  Prefactor     .10000E-03    44.500        .36285E-03** at limit **
  20  Normalizat    1.4407        .23055        .52624E-04    .93673E-04
  21  Prefactor     .67575        .14729        .10001E-04    .98670E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.2333
  Prefactor  = 0.308554
  norm       = 14.649
  Prefactor  = 0.000100021
  norm       = 0.0001
  Prefactor  = 5.2988
  Prefactor  = 0.00010014
  Prefactor  = 1.54137
  norm       = 3.73597
  Prefactor  = 8.3154
  norm       = 1.62314
  Prefactor  = 11.7173
  norm       = 24.0364
  norm       = 0.0001
  Prefactor  = 33.7423
  norm       = 7.40163
  Prefactor  = 0.0001
  Normalizat = 1.44073
  Prefactor  = 0.675752
 **********
 **   18 **HESSE 
 **********

 FCN=   8562.386     FROM HESSE     STATUS=OK           315 CALLS     4337 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9749        .62156E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.721        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.233        17.331        .88119E-06   -1.4980    
   4  Prefactor     .30855        94.517        .36222E-04   -1.5597    
   5  norm          14.649        2.1342        .39075E-06   -1.4942    
   6  Prefactor     .10002E-03    37.158        .17864       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.816        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2988        3.6168        .11102E-05   -1.5248    
   9  Prefactor     .10014E-03    9.4764        .94829E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5414        3.8688        .22324E-05   -1.5460    
  11  norm          3.7360        3.6539        .13623E-05   -1.5321    
  12  Prefactor     8.3154        12.020        .11126E-05   -1.5131    
  13  norm          1.6231        1.9659        .10907E-05   -1.5453    
  14  Prefactor     11.717        17.748        .93636E-06   -1.5023    
  15  norm          24.036        11.292        .65364E-06   -1.4727    
  16  norm          .10000E-03    10.280        .13272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.742        21.984        .55205E-06   -1.4546    
  18  norm          7.4016        14.551        .11793E-05   -1.5164    
  19  Prefactor     .10000E-03    44.500        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4407        .23008        .10525E-04   -.79458    
  21  Prefactor     .67575        .14724        .20002E-05   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19887e-11
Minuit parameter uncertainties:
  1  2.46731e-07
  2  5.98439e-06
  3  17.3372
  4  10.8162
  5  2.13422
  6  0.00174838
  7  7.88917e-06
  8  3.61695
  9  0.00230189
  10  3.86943
  11  3.65412
  12  12.0233
  13  1.96598
  14  17.7559
  15  11.293
  16  2.95104e-05
  17  21.9894
  18  14.5581
  19  3.23662e-06
  20  0.23025
  21  0.147327
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.001e-04  2.302e-03  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.758e-01  1.473e-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.441e+00  2.303e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12112/likelihoodResults_297129601_297388801_4FGL_J1351.0+0029_daily_bin223.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) = 8562.38587683
delta logL = -2.54035294347e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8562.38587683
delta logL = -2.53987636825e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96339E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4368       1.0000          .0000       10.000    
     3 'Normalizat'    1.4407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67576       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=   8562.386     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      234 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .42065        .90715E-01** at limit **
   2  Index         2.4072        5.6040        .50000        .36057E-06
   3  Normalizat    1.4407        .93807E-03    .59498E-01   -.61613E-04
   4  Prefactor     .67575        .63938E-03    .42078E-01   -.43008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40723
  Normalizat = 1.44073
  Prefactor  = 0.675752
 **********
 **   18 **HESSE 
 **********

 FCN=   8562.386     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      277 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .36744        .97036E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4072        5.2209        .50000       -.54516    
   3  Normalizat    1.4407        .90721E-03    .26312E-03   -.79458    
   4  Prefactor     .67575        .61840E-03    .25002E-03   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.19162e-12
Minuit parameter uncertainties:
  1  1.00223e-05
  2  27.3196
  3  0.000907213
  4  0.000618395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12112': 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) = 8562.38585142
delta logL = 6.13727024756e-09

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.002e-05  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.407e+00  2.732e+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:  6.758e-01  6.184e-04  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.441e+00  9.072e-04  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/12112/cmap_HighResolution_297129601_297388801_4FGL_J1351.0+0029_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-08 15:25:26.784880', job_id='12112', GAL2='0.68', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1631139926.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='6.14e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='223' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:25:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 12112: <4FGL_J1351.0+0029_daily_bin223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin223 207.757 0.4873 297129601 297388801 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 :                                   697.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            892 sec.

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

