/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 50 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 = 7620
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1228
RA = 193.467, Dec = 62.7052
tmin = 557625601, tmax = 557884801
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='974394', job_status='RUN', time_executed='2021-09-06 08:22:55.219170', time_epoch_executed='1630941775.22' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974394

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974394/ft1_4FGL_J1253.8+6242_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974394/ft2_4FGL_J1253.8+6242_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974394/ft1_4FGL_J1253.8+6242_daily_bin1228.fits outfile=/scratch/kocevski/974394/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1228.fits ra=193.467 dec=62.7052 rad=12.0 tmin=557625601.0 tmax=557884801.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.84
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974394/ft1_filtered_4FGL_J1253.8+6242_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/974394/ft2_4FGL_J1253.8+6242_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/974394/ltcube_557625601_557884801_4FGL_J1253.8+6242_daily_bin1228.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/974394/ft2_4FGL_J1253.8+6242_daily_bin1228.fits
.....................!
real 12.63
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974394/ft1_filtered_4FGL_J1253.8+6242_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/974394/ft2_4FGL_J1253.8+6242_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/974394/ltcube_557625601_557884801_4FGL_J1253.8+6242_daily_bin1228.fits outfile=/scratch/kocevski/974394/expmap_557625601_557884801_4FGL_J1253.8+6242_daily_bin1228.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/974394/ltcube_557625601_557884801_4FGL_J1253.8+6242_daily_bin1228.fits
.....................!
real 194.91
user 187.25
sys 4.65

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/974394/ft1_filtered_4FGL_J1253.8+6242_daily_bin1228.fits scfile=/scratch/kocevski/974394/ft2_4FGL_J1253.8+6242_daily_bin1228.fits outfile=/scratch/kocevski/974394/cmap_557625601_557884801_4FGL_J1253.8+6242_daily_bin1228.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974394/ft1_filtered_4FGL_J1253.8+6242_daily_bin1228.fits scfile=/scratch/kocevski/974394/ft2_4FGL_J1253.8+6242_daily_bin1228.fits outfile=/scratch/kocevski/974394/cmap_HighResolution_557625601_557884801_4FGL_J1253.8+6242_daily_bin1228.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8100       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.581       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .70394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7397       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7898       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5194       1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.620       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.639       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6712       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12651E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.573       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    85.885       1.0000         .10000E-03   10000.    
    27 'norm      '    3.9722       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    268.55       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .73685       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2334       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=   6059.004     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     4185 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.294        .10530E-05** at limit **
   2  Prefactor     .10000E-03    8.0056        .65452E-06** at limit **
   3  Prefactor     4.8101        3.2088        .20071E-06    .13178E-05
   4  norm          .10000E-03    6.1941        .15848E-06** at limit **
   5  norm          3.8495        6.7035       -.48957E-07   -.38560E-03
   6  Prefactor     .10000E-03    3.6911        .10673E-06** at limit **
   7  Prefactor     10.581        14.005        .22619E-06   -.23337E-05
   8  norm          1.4603        3.4430       -.30930E-06   -.94049E-03
   9  Prefactor     22.778        22.245        .60521E-06   -.19115E-04
  10  Prefactor     .10000E-03    27.602       -.93373E-05** at limit **
  11  norm          .70439        3.5263       -.30734E-06   -.38861E-03
  12  Prefactor     8.7393        6.6806        .20977E-06   -.56218E-04
  13  norm          2.7898        2.1875        .23765E-07   -.68250E-03
  14  norm          1.5195        2.0933        .84727E-07   -.47507E-03
  15  Prefactor     82.529        45.818       -.38748E-05   -.74277E-05
  16  Prefactor     .10000E-03    3.2085       -.16520E-07** at limit **
  17  Prefactor     56.250        59.356       -.80162E-05   -.59848E-04
  18  Prefactor     30.611        27.742       -.47952E-05   -.19373E-03
  19  Prefactor     .10000E-03    31.871        .58779E-05** at limit **
  20  Prefactor     49.625        58.079       -.16137E-04   -.28394E-04
  21  Prefactor     4.6708        4.2400        .14685E-05   -.45586E-03
  22  Prefactor     .10000E-03    35.078        .12553E-04** at limit **
  23  Prefactor     24.573        32.153       -.74921E-07   -.10082E-03
  24  Prefactor     .10000E-03    8.8459       -.16744E-06** at limit **
  25  Prefactor     .10000E-03    8.0352       -.62775E-06** at limit **
  26  norm          85.887        79.804        .25113E-05   -.22597E-05
  27  norm          3.9725        3.5979        .86500E-07   -.26275E-03
  28  Prefactor     .10000E-03    46.063       -.80936E-05** at limit **
  29  Prefactor     269.11        408.12        .34221E-03    .43115E-06
  30  Normalizat    .73704        .17241        .22817E-05   -.33411E-03
  31  Prefactor     1.2331        .19722       -.54919E-05    .17336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.8101
  norm       = 0.0001
  norm       = 3.84948
  Prefactor  = 0.0001
  Prefactor  = 10.5812
  norm       = 1.46035
  Prefactor  = 22.7777
  Prefactor  = 0.0001
  norm       = 0.704387
  Prefactor  = 8.7393
  norm       = 2.78981
  norm       = 1.51954
  Prefactor  = 82.5295
  Prefactor  = 0.0001
  Prefactor  = 56.2505
  Prefactor  = 30.6108
  Prefactor  = 0.000100001
  Prefactor  = 49.6253
  Prefactor  = 4.67078
  Prefactor  = 0.000100004
  Prefactor  = 24.5732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 85.8871
  norm       = 3.97253
  Prefactor  = 0.0001
  Prefactor  = 269.109
  Normalizat = 0.737044
  Prefactor  = 1.23314
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.004     FROM HESSE     STATUS=OK           620 CALLS     4805 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.0190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8101        3.2080        .11080E-03   -1.5269    
   4  norm          .10000E-03    6.1990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8495        6.6785        .20569E-03   -1.5316    
   6  Prefactor     .10000E-03    3.6931        .14597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.581        13.993        .12317E-03   -1.5057    
   8  norm          1.4603        3.4398        .20614E-03   -1.5466    
   9  Prefactor     22.778        22.252        .83929E-04   -1.4753    
  10  Prefactor     .10000E-03    27.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .70439        6.4272        .27148E-02   -1.5540    
  12  Prefactor     8.7393        6.6765        .13559E-03   -1.5117    
  13  norm          2.7898        2.1844        .48621E-03   -1.5374    
  14  norm          1.5195        2.0665        .12801E-03   -1.5461    
  15  Prefactor     82.529        45.832        .22107E-03   -1.3889    
  16  Prefactor     .10000E-03    3.2132        .13615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     56.250        59.348        .53482E-04   -1.4207    
  18  Prefactor     30.611        27.690        .72408E-04   -1.4601    
  19  Prefactor     .10000E-03    32.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.625        58.114        .56918E-04   -1.4298    
  21  Prefactor     4.6708        4.2167        .14070E-03   -1.5276    
  22  Prefactor     .10000E-03    36.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.573        32.143        .40404E-03   -1.4716    
  24  Prefactor     .10000E-03    8.9033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.3354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          85.887        79.825        .43349E-04   -1.3852    
  27  norm          3.9725        3.5891        .13478E-03   -1.5309    
  28  Prefactor     .10000E-03    46.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     269.11        407.09        .12372E-03   -1.2412    
  30  Normalizat    .73704        .20291        .25462E-03   -1.0245    
  31  Prefactor     1.2331        .23488        .24761E-03   -.85317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54058e-09
Minuit parameter uncertainties:
  1  1.09382e-05
  2  9.20866e-06
  3  3.20813
  4  6.40391e-06
  5  6.67984
  6  7.15235e-06
  7  13.9978
  8  3.44031
  9  22.2596
  10  2.8427e-05
  11  4.25577
  12  6.67705
  13  2.18443
  14  2.0666
  15  45.8515
  16  8.22624e-06
  17  59.4108
  18  27.7018
  19  0.00042066
  20  58.1807
  21  4.21698
  22  0.000737101
  23  32.1661
  24  7.81175e-05
  25  6.79938e-05
  26  79.9248
  27  3.5893
  28  2.68862e-05
  29  411.507
  30  0.20312
  31  0.235077
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  8.253e+01  4.585e+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.233e+00  2.351e-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:  7.370e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.80
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 1.65e-05

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) = 6058.7059255
delta logL = 0.298213750189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6058.64246571
delta logL = 0.361673547445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    102.10       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6000       1.0000          .0000       10.000    
     3 'Normalizat'    .75833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2196       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=   6058.642     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      279 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     102.09        60.328        .19895E-03    .84573E-05
   2  Index         1.5998        .43555        .68900E-02    .56869E-04
   3  Normalizat    .75795        .18747        .25139E-03   -.17185E-04
   4  Prefactor     1.2201        .23002        .24878E-03    .21524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 102.085
  Index      = 1.59982
  Normalizat = 0.75795
  Prefactor  = 1.22012
 **********
 **   18 **HESSE 
 **********

 FCN=   6058.642     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     102.09        60.211        .79580E-05   -1.3684    
   2  Index         1.5998        .43459        .13780E-02   -.74781    
   3  Normalizat    .75795        .18763        .10056E-04   -1.0165    
   4  Prefactor     1.2201        .23026        .99511E-05   -.85714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39298e-12
Minuit parameter uncertainties:
  1  60.2472
  2  0.435617
  3  0.18779
  4  0.230453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974394': 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) = 6058.64246319
delta logL = 0.361676064173

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.021e+02  6.025e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.600e+00  4.356e-01  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.220e+00  2.305e-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:  7.580e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.53
Ra Dec: 193.467 62.705
Photon Index (Free Index): 1.60 +/- 0.44
Photon Flux (Free Index): 2.49e-08 +/- 2.15e-08
Energy Flux (Free Index): 5.63e-05 +/- 5.64e-05

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/974394/cmap_HighResolution_557625601_557884801_4FGL_J1253.8+6242_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='5.63e-05', photon_flux_error='2.31e-08', dlogl='3.62e-01', energy_flux='2.97e-05', photon_flux2='2.49e-08', job_status='DONE', time_completed='2021-09-06 08:37:28.930881', photon_index_error2='0.44', photon_index2='1.60', ts='14.80', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='5.64e-05', EG='0.74', time_epoch_completed='1630942648.93', return_code='0', job_id='974394', GAL2='1.22', EG2='0.76', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='2.15e-08', ts2='15.53', photon_index='1.99' WHERE bin_id='1228' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:37:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 974394: <4FGL_J1253.8+6242_daily_bin1228> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1228> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 08:20:57 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:20:58 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:58 2021
Terminated at Mon Sep  6 08:37:29 2021
Results reported at Mon Sep  6 08:37:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1228 193.467 62.7052 557625601 557884801 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 :                                   860.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

