/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 48 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 = 7418
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1111
RA = 193.467, Dec = 62.7052
tmin = 527299201, tmax = 527558401
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='974250', job_status='RUN', time_executed='2021-09-06 08:22:31.672202', time_epoch_executed='1630941751.67' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974250/ft1_4FGL_J1253.8+6242_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974250/ft1_4FGL_J1253.8+6242_daily_bin1111.fits outfile=/scratch/kocevski/974250/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1111.fits ra=193.467 dec=62.7052 rad=12.0 tmin=527299201.0 tmax=527558401.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 5.68
user 4.63
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.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/974250/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1111.fits evtable="EVENTS" outfile="/scratch/kocevski/974250/ft1_filtered_4FGL_J1253.8+6242_daily_bin1111.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.89
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974250/ft1_filtered_4FGL_J1253.8+6242_daily_bin1111.fits" evtable="EVENTS" scfile=/scratch/kocevski/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.fits sctable="SC_DATA" outfile=/scratch/kocevski/974250/ltcube_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.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/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.fits
.....................!
real 12.58
user 11.92
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974250/ft1_filtered_4FGL_J1253.8+6242_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/974250/ltcube_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.fits outfile=/scratch/kocevski/974250/expmap_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.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/974250/ltcube_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.fits
.....................!
real 192.25
user 184.74
sys 5.11

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/974250/ft1_filtered_4FGL_J1253.8+6242_daily_bin1111.fits scfile=/scratch/kocevski/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.fits outfile=/scratch/kocevski/974250/cmap_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974250/ft1_filtered_4FGL_J1253.8+6242_daily_bin1111.fits scfile=/scratch/kocevski/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.fits outfile=/scratch/kocevski/974250/cmap_HighResolution_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.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.54
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/974250/ft1_filtered_4FGL_J1253.8+6242_daily_bin1111.fits', '/scratch/kocevski/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.fits', expMap='/scratch/kocevski/974250/expmap_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.fits', expCube='/scratch/kocevski/974250/ltcube_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/974250/Model_4FGL_J1253.8+6242_daily_bin1111.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/974250/ft1_filtered_4FGL_J1253.8+6242_daily_bin1111.fits
Spacecraft file(s): /scratch/kocevski/974250/ft2_4FGL_J1253.8+6242_daily_bin1111.fits
Exposure map: /scratch/kocevski/974250/expmap_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.fits
Exposure cube: /scratch/kocevski/974250/ltcube_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/974250/Model_4FGL_J1253.8+6242_daily_bin1111.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) = 5143.42845303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.194       1.0000         .10000E-03   10000.    
     5 'norm      '    .19639E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9035       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3818       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .99216       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9553       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8006       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.324       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1497       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69196E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.401       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6904       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1757       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.949       1.0000         .10000E-03   10000.    
    26 'norm      '    33.443       1.0000         .10000E-03   10000.    
    27 'norm      '    2.5654       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.6510       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93954       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5143.408     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     3455 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.644        1.2708       -.23395E-06    .56686E-03
   2  Prefactor     .10000E-03    3.8903        .15185E-05** at limit **
   3  Prefactor     .10000E-03    1.6147       -.10186E-06** at limit **
   4  norm          20.206        2.5602        .17593E-05    .50539E-03
   5  norm          .10000E-03    5.5443       -.11032E-05** at limit **
   6  Prefactor     6.7269        6.4257        .59008E-05    .30890E-03
   7  Prefactor     5.9076        1.7830        .14785E-06    .35365E-03
   8  norm          1.3821        1.9336        .21564E-07    .12492E-03
   9  Prefactor     .10000E-03    12.081       -.64532E-06** at limit **
  10  Prefactor     .10186E-03    69.727        .15154E-04** at limit **
  11  norm          .99179        3.5868        .30300E-06    .65259E-04
  12  Prefactor     7.9552        1.0799        .10242E-06   -.29745E-04
  13  norm          3.8006        2.5724        .33705E-09   -.45457E-04
  14  norm          3.1728        3.3029       -.27204E-06   -.17292E-03
  15  Prefactor     23.314        2.2005       -.19594E-05    .68115E-03
  16  Prefactor     .10000E-03    3.8615       -.31405E-05** at limit **
  17  Prefactor     4.0883        12.577       -.31609E-04    .20586E-02
  18  Prefactor     .11192E-03    67.105        .34243E-04** at limit **
  19  Prefactor     .10000E-03    9.5437        .11436E-05** at limit **
  20  Prefactor     35.398        1.3822       -.90566E-06    .63151E-03
  21  Prefactor     .10000E-03    1.4696        .66083E-07** at limit **
  22  Prefactor     5.6336        14.138       -.17262E-04   -.24372E-02
  23  Prefactor     8.1720        1.4885       -.21318E-05    .29332E-03
  24  Prefactor     .10000E-03    6.4501       -.61987E-06** at limit **
  25  Prefactor     22.949        12.118        .13003E-04    .50445E-02
  26  norm          33.442        1.0617       -.34501E-06    .23360E-03
  27  norm          2.5648        3.3100       -.50780E-06   -.14444E-02
  28  Prefactor     5.6384        2.8228       -.58840E-05    .49373E-03
  29  Prefactor     .10075E-03    156.58       -.78570E-04** at limit **
  30  Normalizat    .93953        .20226        .37484E-06   -.58483E-04
  31  Prefactor     1.0294        .24448       -.15871E-05   -.46189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6439
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 20.2063
  norm       = 0.0001
  Prefactor  = 6.72694
  Prefactor  = 5.90764
  norm       = 1.38208
  Prefactor  = 0.0001
  Prefactor  = 0.00010186
  norm       = 0.991793
  Prefactor  = 7.9552
  norm       = 3.80058
  norm       = 3.17276
  Prefactor  = 23.314
  Prefactor  = 0.000100004
  Prefactor  = 4.08829
  Prefactor  = 0.000111924
  Prefactor  = 0.0001
  Prefactor  = 35.3976
  Prefactor  = 0.0001
  Prefactor  = 5.63364
  Prefactor  = 8.17195
  Prefactor  = 0.0001
  Prefactor  = 22.9489
  norm       = 33.442
  norm       = 2.56482
  Prefactor  = 5.63835
  Prefactor  = 0.000100753
  Normalizat = 0.939533
  Prefactor  = 1.02935
 **********
 **   18 **HESSE 
 **********

 FCN=   5143.408     FROM HESSE     STATUS=OK           698 CALLS     4153 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.644        27.563        .18718E-02   -1.4637    
   2  Prefactor     .10000E-03    4.8290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.206        17.519        .22283E-02   -1.4809    
   5  norm          .10000E-03    2.6376        .39899E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7269        6.7854        .38709E-02   -1.5189    
   7  Prefactor     5.9076        14.683        .41319E-02   -1.5222    
   8  norm          1.3821        1.9658        .92550E-02   -1.5473    
   9  Prefactor     .10000E-03    12.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10186E-03    77.064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .99179        3.6418        .13138E-01   -1.5509    
  12  Prefactor     7.9552        6.7743        .35539E-02   -1.5144    
  13  norm          3.8006        2.7069        .51763E-02   -1.5318    
  14  norm          3.1728        3.3246        .56879E-02   -1.5352    
  15  Prefactor     23.314        39.260        .20735E-02   -1.4742    
  16  Prefactor     .10000E-03    4.7978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0883        126.36        .49466E-02   -1.5304    
  18  Prefactor     .11192E-03    136.89        .93592E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.398        54.364        .16839E-02   -1.4517    
  21  Prefactor     .10000E-03    1.4628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6336        15.793        .42097E-02   -1.5233    
  23  Prefactor     8.1720        64.391        .35054E-02   -1.5136    
  24  Prefactor     .10000E-03    6.3754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.949        12.775        .20904E-02   -1.4749    
  26  norm          33.442        63.279        .17323E-02   -1.4551    
  27  norm          2.5648        5.0976        .63717E-02   -1.5388    
  28  Prefactor     5.6384        89.235        .42246E-02   -1.5233    
  29  Prefactor     .10075E-03    214.99        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93953        .17754        .45405E-01   -.95085    
  31  Prefactor     1.0294        .20787        .59942E-01   -.91757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15279e-07
Minuit parameter uncertainties:
  1  27.5756
  2  0.000275368
  3  8.65978e-06
  4  17.5235
  5  1.08385e-05
  6  6.78621
  7  14.692
  8  1.96585
  9  1.58707e-05
  10  0.0239775
  11  3.6426
  12  6.77492
  13  2.707
  14  3.32476
  15  39.3032
  16  0.0002851
  17  45.5632
  18  0.0809858
  19  1.51828e-05
  20  54.44
  21  4.51895e-06
  22  15.8051
  23  45.9461
  24  1.45945e-05
  25  12.7761
  26  63.4068
  27  5.09842
  28  44.9409
  29  0.0255446
  30  0.177655
  31  0.208035
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.331e+01  3.930e+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:  1.029e+00  2.080e-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:  9.395e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/974250/likelihoodResults_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.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) = 5143.39344947
delta logL = 0.014848215269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5143.36374389
delta logL = 0.0445537885253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7338       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5613       1.0000          .0000       10.000    
     3 'Normalizat'    .92877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0399       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5143.364     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7171        1058.3        .13563E-03    .19781E-04
   2  Index         2.5619        5.3358        .78413E-02    .28359E-04
   3  Normalizat    .92888        .19411        .22695E-03    .22768E-03
   4  Prefactor     1.0398        .23148        .26391E-03   -.25051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.7171
  Index      = 2.56189
  Normalizat = 0.928884
  Prefactor  = 1.03981
 **********
 **   18 **HESSE 
 **********

 FCN=   5143.364     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7171        64.964        .54253E-05   -1.5117    
   2  Index         2.5619        2.2967        .31365E-03   -.50936    
   3  Normalizat    .92888        .20263        .45389E-04   -.95452    
   4  Prefactor     1.0398        .24703        .52781E-04   -.91414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21385e-09
Minuit parameter uncertainties:
  1  47.6662
  2  2.41854
  3  0.202793
  4  0.247303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974250': 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) = 5143.36374358
delta logL = 0.0445540999108

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  8.717e+00  4.767e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.562e+00  2.419e+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:  1.040e+00  2.473e-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:  9.289e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
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/974250/cmap_HighResolution_527299201_527558401_4FGL_J1253.8+6242_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-06 08:37:14.722939', job_id='974250', GAL2='1.04', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1630942634.72', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.46e-02', ts2='0.54', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1111' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:37:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 974250: <4FGL_J1253.8+6242_daily_bin1111> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1111> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 08:20:46 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:20:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:20:47 2021
Terminated at Mon Sep  6 08:37:15 2021
Results reported at Mon Sep  6 08:37:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1111 193.467 62.7052 527299201 527558401 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 :                                   872.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

