/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 190 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin75
RA = 193.467, Dec = 62.7052
tmin = 258768001, tmax = 259027201
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='962008', job_status='RUN', time_executed='2021-09-06 07:49:21.938946', time_epoch_executed='1630939761.94' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962008

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962008/ft1_4FGL_J1253.8+6242_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962008/ft1_4FGL_J1253.8+6242_daily_bin75.fits outfile=/scratch/kocevski/962008/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin75.fits ra=193.467 dec=62.7052 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.11
user 0.93
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.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/962008/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/962008/ltcube_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.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/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits
.....................!
real 8.85
user 8.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/962008/ltcube_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.fits outfile=/scratch/kocevski/962008/expmap_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.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/962008/ltcube_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.fits
.....................!
real 191.25
user 186.10
sys 4.73

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

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits scfile=/scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits outfile=/scratch/kocevski/962008/cmap_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.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=193.467 yref=62.7052 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits scfile=/scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits outfile=/scratch/kocevski/962008/cmap_HighResolution_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.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=193.467 yref=62.7052 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/962008/Model_4FGL_J1253.8+6242_daily_bin75.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/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits......................!
real 39.07
user 35.49
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits', '/scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits', expMap='/scratch/kocevski/962008/expmap_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.fits', expCube='/scratch/kocevski/962008/ltcube_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/962008/Model_4FGL_J1253.8+6242_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/962008/ft1_filtered_4FGL_J1253.8+6242_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/962008/ft2_4FGL_J1253.8+6242_daily_bin75.fits
Exposure map: /scratch/kocevski/962008/expmap_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.fits
Exposure cube: /scratch/kocevski/962008/ltcube_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/962008/Model_4FGL_J1253.8+6242_daily_bin75.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) = 3329.55438015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.053       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8927       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46728       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30691E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4520       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.131       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3468       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4851       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.752       1.0000         .10000E-03   10000.    
    29 'Prefactor '    124.73       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0562       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .73935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3329.532     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4711 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.035        57.698        .21033E-06   -.95121E-05
   2  Prefactor     .10000E-03    23.694        .33602E-06** at limit **
   3  Prefactor     12.630        7.4613       -.16684E-06    .54143E-04
   4  norm          .10000E-03    7.5123       -.15148E-06** at limit **
   5  norm          .10000E-03    4.8573       -.33899E-06** at limit **
   6  Prefactor     2.8903        11.362       -.63977E-06    .28674E-05
   7  Prefactor     .10000E-03    106.69        .40983E-05** at limit **
   8  norm          5.0301        3.4436       -.29412E-07   -.13704E-04
   9  Prefactor     .36594        333.48       -.42126E-05    .18094E-06
  10  Prefactor     .10000E-03    31.589        .12053E-06** at limit **
  11  norm          .10000E-03    10.139        .14635E-06** at limit **
  12  Prefactor     .10000E-03    7.0954        .73500E-06** at limit **
  13  norm          6.4532        4.0292       -.30812E-06   -.97190E-04
  14  norm          .10000E-03    .93434        .11287E-06** at limit **
  15  Prefactor     19.137        41.576       -.36231E-07    .29764E-05
  16  Prefactor     6.3433        15.296       -.59809E-06   -.20266E-04
  17  Prefactor     .10000E-03    65.659        .40652E-06** at limit **
  18  Prefactor     .10000E-03    14.071        .83512E-07** at limit **
  19  Prefactor     .10000E-03    26.197        .71374E-06** at limit **
  20  Prefactor     .10000E-03    24.010        .24758E-06** at limit **
  21  Prefactor     9.4807        6.6657       -.87210E-07    .80458E-04
  22  Prefactor     .10000E-03    10.198        .23161E-06** at limit **
  23  Prefactor     .10000E-03    28.965        .36561E-06** at limit **
  24  Prefactor     .10000E-03    17.505       -.72390E-06** at limit **
  25  Prefactor     .10000E-03    8.8792        .45583E-06** at limit **
  26  norm          .10000E-03    35.708        .86468E-07** at limit **
  27  norm          .10000E-03    1.3241        .76066E-07** at limit **
  28  Prefactor     36.756        41.110        .10288E-06    .71421E-05
  29  Prefactor     124.55        812.01        .18259E-05   -.20865E-05
  30  Normalizat    1.0567        .21616        .74231E-07   -.76138E-04
  31  Prefactor     .73908        .24327       -.18454E-05    .11909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.0346
  Prefactor  = 0.0001
  Prefactor  = 12.6301
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.89032
  Prefactor  = 0.0001
  norm       = 5.03014
  Prefactor  = 0.365939
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 6.45323
  norm       = 0.0001
  Prefactor  = 19.1366
  Prefactor  = 6.3433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.48066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.7556
  Prefactor  = 124.554
  Normalizat = 1.05673
  Prefactor  = 0.739076
 **********
 **   18 **HESSE 
 **********

 FCN=   3329.532     FROM HESSE     STATUS=OK           618 CALLS     5329 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.035        58.012        .59732E-04   -1.4365    
   2  Prefactor     .10000E-03    23.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.630        7.4475        .11271E-03   -1.4997    
   4  norm          .10000E-03    7.5108        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8757        .12394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8903        11.398        .11947E-02   -1.5368    
   7  Prefactor     .10000E-03    109.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0301        3.4471        .84916E-04   -1.5259    
   9  Prefactor     .36594        331.16        .55021E-02   -1.5587    
  10  Prefactor     .10000E-03    31.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.556        .35892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.923        .28703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4532        3.9867        .84022E-04   -1.5200    
  14  norm          .10000E-03    .94162        .54483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.137        41.579        .91570E-04   -1.4833    
  16  Prefactor     6.3433        15.198        .15932E-03   -1.5204    
  17  Prefactor     .10000E-03    65.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.4807        6.6633        .11575E-03   -1.5092    
  22  Prefactor     .10000E-03    10.227        .18002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.9364        .16801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    35.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.3269        .64852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     36.756        41.112        .66109E-04   -1.4495    
  29  Prefactor     124.55        814.74        .18021E-03   -1.3471    
  30  Normalizat    1.0567        .25621        .20884E-03   -.91153    
  31  Prefactor     .73908        .28004        .28621E-03   -1.0201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07739e-10
Minuit parameter uncertainties:
  1  58.0847
  2  1.00433e-05
  3  7.44807
  4  6.47698e-06
  5  1.45197e-05
  6  11.4063
  7  0.000182242
  8  3.44726
  9  22.1375
  10  1.03349e-05
  11  1.87652e-05
  12  0.000621146
  13  3.98682
  14  2.74102e-07
  15  41.6421
  16  15.2073
  17  3.69858e-05
  18  8.52089e-06
  19  3.20144e-06
  20  1.01966e-05
  21  6.66381
  22  1.77273e-05
  23  2.73466e-05
  24  8.72737e-05
  25  3.34761e-06
  26  4.49116e-05
  27  1.2145e-07
  28  41.1441
  29  650.455
  30  0.256506
  31  0.280574
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.914e+01  4.164e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.391e-01  2.806e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.057e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/962008/likelihoodResults_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.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) = 3329.2538783
delta logL = 0.277629248459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3329.25160319
delta logL = 0.279904357596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2039       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2836       1.0000          .0000       10.000    
     3 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3329.252     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      340 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1835        140.12        .56589E-02    .20953E-03
   2  Index         3.2873        3.8751        .90108E-01    .12496E-03
   3  Normalizat    1.0176        .71360E-01    .43605E-01   -.97903E-04
   4  Prefactor     .76650        .75165E-01    .63617E-01   -.75286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18351
  Index      = 3.28735
  Normalizat = 1.0176
  Prefactor  = 0.766503
 **********
 **   18 **HESSE 
 **********

 FCN=   3329.252     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      371 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1835        254.85        .12676E-03   -1.5351    
   2  Index         3.2873        6.4221        .51659E-02   -.34961    
   3  Normalizat    1.0176        .26994        .21229E-03   -.92443    
   4  Prefactor     .76650        .28163        .28141E-03   -1.0098    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12914e-09
Minuit parameter uncertainties:
  1  57.2202
  2  7.72911
  3  0.270302
  4  0.282155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962008': 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) = 3329.25159474
delta logL = 0.279912804695

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  3.184e+00  5.722e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  3.287e+00  7.729e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.665e-01  2.822e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.018e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 193.467 62.705

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/962008/cmap_HighResolution_258768001_259027201_4FGL_J1253.8+6242_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-06 08:01:16.010505', job_id='962008', GAL2='0.77', fit_tolerance='1e-08', EG2='1.02', EG='1.06', time_epoch_completed='1630940476.01', return_code2='102', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.80e-01', ts2='0.88', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='75' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:01:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 962008: <4FGL_J1253.8+6242_daily_bin75> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin75> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:46:00 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:46:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:46:01 2021
Terminated at Mon Sep  6 08:01:16 2021
Results reported at Mon Sep  6 08:01:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin75 193.467 62.7052 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.8+6242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.48 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             266.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

