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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin198
RA = 192.836, Dec = -2.0271
tmin = 290649601, tmax = 290908801
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='945222', job_status='RUN', time_executed='2021-09-06 06:57:45.576804', time_epoch_executed='1630936665.58' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945222

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945222/ft1_4FGL_J1251.3-0201_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945222/ft1_4FGL_J1251.3-0201_daily_bin198.fits outfile=/scratch/kocevski/945222/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin198.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=290649601.0 tmax=290908801.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.42
user 3.16
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.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/945222/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin198.fits evtable="EVENTS" outfile="/scratch/kocevski/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/945222/ltcube_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.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/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits
.....................!
real 12.18
user 11.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/945222/ltcube_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.fits outfile=/scratch/kocevski/945222/expmap_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.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/945222/ltcube_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.fits
.....................!
real 190.61
user 184.94
sys 5.15

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1251.3-0201 @ 192.836 -2.0271

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.fits scfile=/scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits outfile=/scratch/kocevski/945222/cmap_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.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=192.836 yref=-2.0271 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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.fits scfile=/scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits outfile=/scratch/kocevski/945222/cmap_HighResolution_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.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=192.836 yref=-2.0271 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945222/Model_4FGL_J1251.3-0201_daily_bin198.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/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.fits.....................!
real 59.58
user 57.95
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.fits', '/scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits', expMap='/scratch/kocevski/945222/expmap_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.fits', expCube='/scratch/kocevski/945222/ltcube_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/945222/Model_4FGL_J1251.3-0201_daily_bin198.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1251.3-0201'

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.916e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/945222/ft1_filtered_4FGL_J1251.3-0201_daily_bin198.fits
Spacecraft file(s): /scratch/kocevski/945222/ft2_4FGL_J1251.3-0201_daily_bin198.fits
Exposure map: /scratch/kocevski/945222/expmap_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.fits
Exposure cube: /scratch/kocevski/945222/ltcube_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/945222/Model_4FGL_J1251.3-0201_daily_bin198.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) = 7055.43325828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4619       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.714       1.0000         .10000E-03   10000.    
     6 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.210       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0536       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .95016E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.059       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.532       1.0000         .10000E-03   10000.    
    15 'norm      '    50.656       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.356       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1572       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.1923       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4423       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96664       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7055.403     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2730 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4591        17.667       -.21848E-06   -.31431E-04
   2  Prefactor     .10000E-03    14.594        .91023E-06** at limit **
   3  Prefactor     .10000E-03    6.6636        .30187E-06** at limit **
   4  norm          .10000E-03    1.3193       -.26373E-07** at limit **
   5  norm          10.712        5.1281        .61228E-07   -.11108E-03
   6  norm          .10000E-03    69.835        .64137E-06** at limit **
   7  Prefactor     .10000E-03    58.732        .23368E-05** at limit **
   8  norm          12.210        1.3295        .11745E-07    .52050E-03
   9  Prefactor     7.0524        8.4157       -.12584E-07   -.19993E-04
  10  Prefactor     .10000E-03    5.4254        .17114E-06** at limit **
  11  norm          .85517E-01    .84563       -.24370E-06    .10706E-03
  12  Prefactor     .10000E-03    4.0018       -.21476E-06** at limit **
  13  Prefactor     31.056        40.236        .78595E-06    .77948E-05
  14  Prefactor     30.425        49.674        .26567E-05    .29537E-06
  15  norm          50.644        36.653        .94623E-05    .25723E-05
  16  norm          1.1106        .33069        .25897E-07   -.38489E-03
  17  Prefactor     47.299        61.601       -.21277E-04   -.43291E-05
  18  norm          4.1594        10.023        .16667E-05   -.11046E-03
  19  norm          .10000E-03    10.008        .42668E-06** at limit **
  20  Prefactor     .10000E-03    19.522        .12424E-05** at limit **
  21  Prefactor     .10000E-03    7.2664        .23904E-07** at limit **
  22  norm          5.1921        1.9941        .37772E-07   -.57842E-04
  23  Normalizat    1.4422        .26050        .12530E-06   -.22735E-05
  24  Prefactor     .96674        .17824       -.62061E-06    .25920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.45915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7119
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2101
  Prefactor  = 7.05237
  Prefactor  = 0.0001
  norm       = 0.0855169
  Prefactor  = 0.0001
  Prefactor  = 31.0559
  Prefactor  = 30.4249
  norm       = 50.6439
  norm       = 1.11059
  Prefactor  = 47.2991
  norm       = 4.15939
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.19209
  Normalizat = 1.44219
  Prefactor  = 0.966745
 **********
 **   18 **HESSE 
 **********

 FCN=   7055.403     FROM HESSE     STATUS=OK           397 CALLS     3127 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4591        17.669        .15788E-03   -1.5200    
   2  Prefactor     .10000E-03    14.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3397        .94182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.712        5.1299        .12240E-03   -1.5053    
   6  norm          .10000E-03    70.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    58.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.210        1.3357        .28976E-04   -1.5009    
   9  Prefactor     7.0524        8.4131        .15105E-03   -1.5177    
  10  Prefactor     .10000E-03    5.4436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .85517E-01    8.6245        .14549E-02   -1.5650    
  12  Prefactor     .10000E-03    4.0111        .16409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.056        40.223        .71895E-04   -1.4593    
  14  Prefactor     30.425        49.922        .72511E-04   -1.4604    
  15  norm          50.644        36.655        .56347E-04   -1.4283    
  16  norm          1.1106        .33210        .24061E-04   -1.5497    
  17  Prefactor     47.299        61.480        .58268E-04   -1.4331    
  18  norm          4.1594        9.9809        .19768E-03   -1.5300    
  19  norm          .10000E-03    10.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.1921        1.9961        .70992E-04   -1.5252    
  23  Normalizat    1.4422        .30534        .34149E-03   -.79416    
  24  Prefactor     .96674        .20821        .28874E-03   -.93846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7226e-10
Minuit parameter uncertainties:
  1  17.6833
  2  3.30175e-07
  3  5.74297e-07
  4  5.81926e-07
  5  5.13014
  6  1.63616e-05
  7  2.26275e-06
  8  1.33574
  9  8.41448
  10  1.22427e-06
  11  1.71685
  12  1.54321e-05
  13  40.258
  14  49.991
  15  36.6713
  16  0.3321
  17  61.5623
  18  9.98486
  19  4.6634e-06
  20  3.72129e-05
  21  6.76172e-06
  22  1.99617
  23  0.30573
  24  0.208387
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.064e+01  3.667e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.667e-01  2.084e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.442e+00  3.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.46
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 2.17e-05

TS (Fixed Index): 3.46
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945222/likelihoodResults_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.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) = 7053.78552509
delta logL = 1.6177695144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7053.78550012
delta logL = 1.61779447784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.077       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2846       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7053.785     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      304 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.131        161.71        .22925E-02    .37764E-04
   2  alpha         3.2830        3.9704        .23431        .80401E-04
   3  Normalizat    1.3271        .12286        .79551E-01    .11772E-04
   4  Prefactor     1.0146        .72536E-01    .63828E-01    .98928E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1313
  alpha      = 3.28304
  Normalizat = 1.32714
  Prefactor  = 1.01465
 **********
 **   18 **HESSE 
 **********

 FCN=   7053.785     FROM HESSE     STATUS=OK            33 CALLS      337 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.131        33.023        .91700E-04   -1.4833    
   2  alpha         3.2830        1.0519        .92509E-02    .31858    
   3  Normalizat    1.3271        .30593        .35211E-03   -.82760    
   4  Prefactor     1.0146        .21273        .28229E-03   -.92243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39405e-11
Minuit parameter uncertainties:
  1  33.0542
  2  1.08974
  3  0.30635
  4  0.212911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945222': 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) = 7053.78549747
delta logL = 1.6177971308

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.913e+01  3.305e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  3.283e+00  1.090e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.015e+00  2.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.327e+00  3.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.77
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 3.28 +/- 1.09
Photon Flux (Free Index): 1.50e-07 +/- 1.02e-07
Energy Flux (Free Index): 3.10e-05 +/- 1.56e-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/945222/cmap_HighResolution_290649601_290908801_4FGL_J1251.3-0201_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-05', comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='3.10e-05', photon_flux_error='3.15e-08', dlogl='1.62e+00', energy_flux='3.00e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-06 07:10:26.397720', photon_index_error2='1.09', photon_index2='3.28', ts='3.46', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.56e-05', EG='1.44', time_epoch_completed='1630937426.4', return_code='0', job_id='945222', GAL2='1.01', EG2='1.33', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='1.02e-07', ts2='6.77', photon_index='1.95' WHERE bin_id='198' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:10:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 945222: <4FGL_J1251.3-0201_daily_bin198> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin198> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:55:36 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:55:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:55:37 2021
Terminated at Mon Sep  6 07:10:26 2021
Results reported at Mon Sep  6 07:10:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin198 192.836 -2.0271 290649601 290908801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1251.3-0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

