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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin152
RA = 207.757, Dec = 0.4873
tmin = 278726401, tmax = 278985601
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='12007', job_status='RUN', time_executed='2021-09-08 15:14:50.917384', time_epoch_executed='1631139290.92' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12007/ft1_4FGL_J1351.0+0029_daily_bin152.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12007/ft2_4FGL_J1351.0+0029_daily_bin152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12007/ft1_4FGL_J1351.0+0029_daily_bin152.fits outfile=/scratch/kocevski/12007/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin152.fits ra=207.757 dec=0.4873 rad=12.0 tmin=278726401.0 tmax=278985601.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.82
user 3.61
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12007/ft1_filtered_4FGL_J1351.0+0029_daily_bin152.fits" evtable="EVENTS" scfile=/scratch/kocevski/12007/ft2_4FGL_J1351.0+0029_daily_bin152.fits sctable="SC_DATA" outfile=/scratch/kocevski/12007/ltcube_278726401_278985601_4FGL_J1351.0+0029_daily_bin152.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/12007/ft2_4FGL_J1351.0+0029_daily_bin152.fits
.....................!
real 16.56
user 16.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12007/ft1_filtered_4FGL_J1351.0+0029_daily_bin152.fits evtable="EVENTS" scfile=/scratch/kocevski/12007/ft2_4FGL_J1351.0+0029_daily_bin152.fits sctable="SC_DATA" expcube=/scratch/kocevski/12007/ltcube_278726401_278985601_4FGL_J1351.0+0029_daily_bin152.fits outfile=/scratch/kocevski/12007/expmap_278726401_278985601_4FGL_J1351.0+0029_daily_bin152.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/12007/ltcube_278726401_278985601_4FGL_J1351.0+0029_daily_bin152.fits
.....................!
real 191.95
user 186.97
sys 4.40

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/12007/ft1_filtered_4FGL_J1351.0+0029_daily_bin152.fits scfile=/scratch/kocevski/12007/ft2_4FGL_J1351.0+0029_daily_bin152.fits outfile=/scratch/kocevski/12007/cmap_278726401_278985601_4FGL_J1351.0+0029_daily_bin152.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1024       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4083       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0660       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7875       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    19.847       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.560       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.179       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3741       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6059       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.806       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82462       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1253       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=   7663.160     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2253 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1021        7.6629        .25848E-06    .10053E-03
   2  norm          5.4082        5.9392        .11184E-06    .10876E-03
   3  Prefactor     6.0641        10.721        .27935E-05   -.29356E-03
   4  Prefactor     .10000E-03    3.6607        .27050E-07** at limit **
   5  norm          6.7872        1.7071       -.17523E-07   -.29527E-04
   6  Prefactor     .10000E-03    52.876       -.17929E-06** at limit **
   7  norm          19.844        23.004       -.27356E-06   -.45841E-04
   8  Prefactor     .10000E-03    2.3578        .37604E-07** at limit **
   9  Prefactor     34.548        25.379       -.12566E-05   -.24037E-03
  10  Prefactor     .10000E-03    3.0001        .46095E-07** at limit **
  11  norm          .10000E-03    1.6980        .14927E-07** at limit **
  12  Prefactor     .10000E-03    5.0551       -.52841E-07** at limit **
  13  norm          .10000E-03    .85622       -.20008E-07** at limit **
  14  Prefactor     .10000E-03    32.283        .35692E-06** at limit **
  15  norm          21.179        11.558        .97383E-08   -.10579E-05
  16  norm          5.3730        5.2772       -.63108E-06   -.52352E-03
  17  Prefactor     1.6091        77.222        .26078E-05   -.11325E-05
  18  norm          .10000E-03    20.432       -.99548E-07** at limit **
  19  Prefactor     72.795        86.589       -.20889E-05   -.69836E-04
  20  Normalizat    .82472        .19571        .48837E-06   -.30444E-04
  21  Prefactor     1.1253        .13515       -.20909E-06    .10271E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.10211
  norm       = 5.40823
  Prefactor  = 6.06413
  Prefactor  = 0.0001
  norm       = 6.78723
  Prefactor  = 0.0001
  norm       = 19.8442
  Prefactor  = 0.0001
  Prefactor  = 34.5484
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.1786
  norm       = 5.37305
  Prefactor  = 1.60913
  norm       = 0.0001
  Prefactor  = 72.7948
  Normalizat = 0.824717
  Prefactor  = 1.12527
 **********
 **   18 **HESSE 
 **********

 FCN=   7663.160     FROM HESSE     STATUS=OK           319 CALLS     2572 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1021        7.6694        .15052E-03   -1.5175    
   2  norm          5.4082        5.9506        .17279E-03   -1.5243    
   3  Prefactor     6.0641        11.259        .81509E-03   -1.5215    
   4  Prefactor     .10000E-03    3.6670        .16357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7872        1.7094        .54429E-04   -1.5187    
   6  Prefactor     .10000E-03    53.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          19.844        23.042        .89904E-04   -1.4817    
   8  Prefactor     .10000E-03    2.4623        .26236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.548        26.173        .68167E-04   -1.4532    
  10  Prefactor     .10000E-03    3.0478        .14804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7048        .11139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3012        .15610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.179        11.566        .87035E-04   -1.4787    
  16  norm          5.3730        5.4734        .17335E-03   -1.5244    
  17  Prefactor     1.6091        77.939        .33439E-03   -1.5454    
  18  norm          .10000E-03    20.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     72.795        87.893        .47052E-04   -1.3999    
  20  Normalizat    .82472        .22958        .31830E-03   -.99158    
  21  Prefactor     1.1253        .15922        .19863E-03   -.88663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66576e-10
Minuit parameter uncertainties:
  1  7.67045
  2  5.95123
  3  11.2632
  4  7.05464e-07
  5  1.70938
  6  7.29965e-05
  7  23.0521
  8  1.63321e-06
  9  26.1814
  10  1.86564e-06
  11  3.69352e-07
  12  7.00878e-06
  13  1.21853e-05
  14  6.47772e-05
  15  11.5671
  16  5.47393
  17  22.428
  18  3.23988e-05
  19  88.0503
  20  0.229846
  21  0.159286
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.125e+00  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:  8.247e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.58e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.56e-05

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

Saving results to:
/scratch/kocevski/12007/likelihoodResults_278726401_278985601_4FGL_J1351.0+0029_daily_bin152.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7662.41010999
delta logL = 0.749908204465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7662.40420328
delta logL = 0.755814911749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.456       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1670       1.0000          .0000       10.000    
     3 'Normalizat'    .77144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1503       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=   7662.404     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      308 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.445        24.164        .10188E-03   -.55440E-03
   2  Index         3.1675        .83514        .46007E-02   -.19424E-03
   3  Normalizat    .77152        .22726        .32803E-03    .71603E-04
   4  Prefactor     1.1502        .15987        .19665E-03    .32337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.445
  Index      = 3.16754
  Normalizat = 0.77152
  Prefactor  = 1.1502
 **********
 **   18 **HESSE 
 **********

 FCN=   7662.404     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.445        19.034        .40750E-05   -1.4922    
   2  Index         3.1675        .65797        .18403E-03   -.37523    
   3  Normalizat    .77152        .22725        .13121E-04   -1.0113    
   4  Prefactor     1.1502        .15967        .39331E-04   -.87878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33084e-10
Minuit parameter uncertainties:
  1  19.0416
  2  0.660183
  3  0.227526
  4  0.159737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12007': 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) = 7662.40420258
delta logL = 0.755815613296

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.150e+00  1.597e-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:  7.715e-01  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.93
Ra Dec: 207.757 0.487
Photon Index (Free Index): 3.17 +/- 0.66
Photon Flux (Free Index): 1.05e-07 +/- 6.42e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.19e-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/12007/cmap_HighResolution_278726401_278985601_4FGL_J1351.0+0029_daily_bin152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='6.58e-08', energy_flux2='1.95e-05', photon_flux_error='4.98e-08', dlogl='7.56e-01', energy_flux='2.06e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-08 15:25:55.811357', photon_index_error2='0.66', photon_index2='3.17', ts='2.28', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.19e-05', EG='0.82', time_epoch_completed='1631139955.81', return_code='0', job_id='12007', GAL2='1.15', EG2='0.77', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.42e-08', ts2='3.93', photon_index='2.44' WHERE bin_id='152' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 12007: <4FGL_J1351.0+0029_daily_bin152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin152 207.757 0.4873 278726401 278985601 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 :                                   654.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             243.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            927 sec.

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

