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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin230
RA = 207.757, Dec = 0.4873
tmin = 298944001, tmax = 299203201
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='12120', job_status='RUN', time_executed='2021-09-08 15:14:43.532818', time_epoch_executed='1631139283.53' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12120

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12120/ft1_4FGL_J1351.0+0029_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12120/ft2_4FGL_J1351.0+0029_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12120/ft1_4FGL_J1351.0+0029_daily_bin230.fits outfile=/scratch/kocevski/12120/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin230.fits ra=207.757 dec=0.4873 rad=12.0 tmin=298944001.0 tmax=299203201.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.62
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12120/ft2_4FGL_J1351.0+0029_daily_bin230.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/12120/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin230.fits evtable="EVENTS" outfile="/scratch/kocevski/12120/ft1_filtered_4FGL_J1351.0+0029_daily_bin230.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.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12120/ft1_filtered_4FGL_J1351.0+0029_daily_bin230.fits" evtable="EVENTS" scfile=/scratch/kocevski/12120/ft2_4FGL_J1351.0+0029_daily_bin230.fits sctable="SC_DATA" outfile=/scratch/kocevski/12120/ltcube_298944001_299203201_4FGL_J1351.0+0029_daily_bin230.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/12120/ft2_4FGL_J1351.0+0029_daily_bin230.fits
.....................!
real 15.19
user 14.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12120/ft1_filtered_4FGL_J1351.0+0029_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/12120/ft2_4FGL_J1351.0+0029_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/12120/ltcube_298944001_299203201_4FGL_J1351.0+0029_daily_bin230.fits outfile=/scratch/kocevski/12120/expmap_298944001_299203201_4FGL_J1351.0+0029_daily_bin230.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/12120/ltcube_298944001_299203201_4FGL_J1351.0+0029_daily_bin230.fits
.....................!
real 192.21
user 185.85
sys 4.12

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

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11335E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.237       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    92.075       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6174       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6040       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .45941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.498       1.0000         .10000E-03   10000.    
    16 'norm      '    .10563E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.186       1.0000         .10000E-03   10000.    
    18 'norm      '    .12480E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2519       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82606       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=   6011.864     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     1882 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.772        .44108E-07** at limit **
   2  norm          13.240        13.235       -.41405E-07   -.24672E-04
   3  Prefactor     .10000E-03    5.5517        .29761E-08** at limit **
   4  Prefactor     .10000E-03    10.815        .69737E-06** at limit **
   5  norm          3.6672        1.8729        .58027E-07   -.95364E-04
   6  Prefactor     92.127        55.345        .45065E-05    .38209E-03
   7  norm          .10000E-03    9.9809       -.11717E-06** at limit **
   8  Prefactor     8.6178        4.5033        .19434E-07   -.95167E-04
   9  Prefactor     3.6017        18.561        .11055E-04   -.16378E-03
  10  Prefactor     .10000E-03    1.1161        .57459E-07** at limit **
  11  norm          .10000E-03    2.2365       -.33453E-08** at limit **
  12  Prefactor     .10000E-03    7.3376       -.25153E-06** at limit **
  13  norm          .45282        2.0114        .50325E-06   -.27245E-03
  14  Prefactor     .10000E-03    9.8900       -.23102E-06** at limit **
  15  norm          20.498        13.811        .85809E-07   -.35336E-05
  16  norm          .10000E-03    11.860       -.33137E-06** at limit **
  17  Prefactor     28.174        26.081       -.28629E-06   -.59452E-04
  18  norm          .10000E-03    85.092       -.23065E-05** at limit **
  19  Prefactor     .10000E-03    82.004        .20640E-05** at limit **
  20  Normalizat    1.2516        .21649       -.90423E-06   -.70975E-04
  21  Prefactor     .82623        .14611       -.46703E-06   -.10811E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 13.2399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.66721
  Prefactor  = 92.1274
  norm       = 0.0001
  Prefactor  = 8.61777
  Prefactor  = 3.60172
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.452824
  Prefactor  = 0.0001
  norm       = 20.4977
  norm       = 0.0001
  Prefactor  = 28.174
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.25161
  Prefactor  = 0.826229
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.864     FROM HESSE     STATUS=OK           315 CALLS     2197 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.240        13.238        .11009E-03   -1.4980    
   3  Prefactor     .10000E-03    5.5578        .17842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6672        1.8787        .71493E-04   -1.5325    
   6  Prefactor     92.127        58.499        .20940E-03   -1.3785    
   7  norm          .10000E-03    9.9836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6178        4.5131        .11371E-03   -1.5121    
   9  Prefactor     3.6017        19.383        .10642E-02   -1.5328    
  10  Prefactor     .10000E-03    1.1179        .79995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2414        .11324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .45282        3.6945        .20549E-02   -1.5573    
  14  Prefactor     .10000E-03    9.9128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.498        13.823        .88466E-04   -1.4802    
  16  norm          .10000E-03    12.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.174        26.131        .75461E-04   -1.4646    
  18  norm          .10000E-03    86.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    82.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2516        .26190        .26990E-03   -.85022    
  21  Prefactor     .82623        .17650        .22452E-03   -.98769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26911e-08
Minuit parameter uncertainties:
  1  4.19856e-05
  2  13.2409
  3  1.8198e-06
  4  5.38404e-05
  5  1.87877
  6  58.5358
  7  1.20283e-05
  8  4.51323
  9  16.719
  10  9.58845e-07
  11  6.22984e-07
  12  2.7097e-05
  13  2.58679
  14  1.70766e-05
  15  13.8249
  16  1.64755e-05
  17  26.1421
  18  0.000248245
  19  0.000646237
  20  0.262178
  21  0.176618
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.602e+00  1.672e+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.262e-01  1.766e-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.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 9.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12120/likelihoodResults_298944001_299203201_4FGL_J1351.0+0029_daily_bin230.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) = 6011.86273195
delta logL = 0.00128923721604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6011.86250046
delta logL = 0.00152073081063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9988       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3490       1.0000          .0000       10.000    
     3 'Normalizat'    1.2523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82605       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=   6011.862     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      273 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0026        22.985        .20168E-03   -.34385E-04
   2  Index         2.3441        1.6329        .84593E-02    .15413E-04
   3  Normalizat    1.2521        .25169        .26986E-03    .93591E-03
   4  Prefactor     .82592        .17491        .22456E-03    .11152E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0026
  Index      = 2.34409
  Normalizat = 1.25213
  Prefactor  = 0.825918
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.862     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0026        22.013        .80672E-05   -1.5308    
   2  Index         2.3441        1.6000        .33837E-03   -.55999    
   3  Normalizat    1.2521        .25193        .53971E-04   -.85007    
   4  Prefactor     .82592        .17505        .44912E-04   -.98780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27942e-09
Minuit parameter uncertainties:
  1  18.7837
  2  1.64068
  3  0.252174
  4  0.175169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12120': 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) = 6011.86249032
delta logL = 0.00153086992668

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.003e+00  1.878e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.344e+00  1.641e+00  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.259e-01  1.752e-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.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 207.757 0.487

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.43e-08', time_completed='2021-09-08 15:24:04.022379', job_id='12120', GAL2='0.83', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631139844.02', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.53e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='230' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:24:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 12120: <4FGL_J1351.0+0029_daily_bin230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin230 207.757 0.4873 298944001 299203201 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 :                                   545.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            808 sec.

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

