/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packa/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 us/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 23 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.8+6242_weekly_bin742
RA = 193.467, Dec = 62.7052
tmin = 687744001, tmax = 688348801
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='913467', job_status='RUN', time_executed='2022-10-25 08:09:17.176158', time_epoch_executed='1666710557.18' WHERE source_name='4FGL J1253.8+6242' and cadence='weekly' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913467

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913467/ft1_4FGL_J1253.8+6242_weekly_bin742.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913467/ft2_4FGL_J1253.8+6242_weekly_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913467/ft1_4FGL_J1253.8+6242_weekly_bin742.fits outfile=/scratch/kocevski/913467/ft1_filteredMKT_4FGL_J1253.8+6242_weekly_bin742.fits ra=193.467 dec=62.7052 rad=12.0 tmin=687744001.0 tmax=688348801.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 8.96
user 8.63
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913467/ft2_4FGL_J1253.8+6242_weekly_bin742.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/913467/ft1_filteredMKT_4FGL_J1253.8+6242_weekly_bin742.fits evtable="EVENTS" outfile="/scratch/kocevski/913467/ft1_filtered_4FGL_J1253.8+6242_weekly_bin742.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.54
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 1530

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913467/ft1_filtered_4FGL_J1253.8+6242_weekly_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/913467/ft2_4FGL_J1253.8+6242_weekly_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/913467/ltcube_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.fits outfile=/scratch/kocevski/913467/expmap_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.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/913467/ltcube_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.fits
.....................!
real 192.69
user 187.32
sys 5.01

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/913467/ft1_filtered_4FGL_J1253.8+6242_weekly_bin742.fits scfile=/scratch/kocevski/913467/ft2_4FGL_J1253.8+6242_weekly_bin742.fits outfile=/scratch/kocevski/913467/cmap_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913467/ft1_filtered_4FGL_J1253.8+6242_weekly_bin742.fits scfile=/scratch/kocevski/913467/ft2_4FGL_J1253.8+6242_weekly_bin742.fits outfile=/scratch/kocevski/913467/cmap_HighResolution_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.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.57
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913467/ft1_filtered_4FGL_J1253.8+6242_weekly_bin742.fits', '/scratch/kocevski/913467/ft2_4FGL_J1253.8+6242_weekly_bin742.fits', expMap='/scratch/kocevski/913467/expmap_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.fits', expCube='/scratch/kocevski/913467/ltcube_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913467/Model_4FGL_J1253.8+6242_weekly_bin742.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  0.000e+00  1.000e+06 ( 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/913467/ft1_filtered_4FGL_J1253.8+6242_weekly_bin742.fits
Spacecraft file(s): /scratch/kocevski/913467/ft2_4FGL_J1253.8+6242_weekly_bin742.fits
Exposure map: /scratch/kocevski/913467/expmap_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.fits
Exposure cube: /scratch/kocevski/913467/ltcube_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913467/Model_4FGL_J1253.8+6242_weekly_bin742.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) = 16704.9362539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7377       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.4610       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
     4 'norm      '    .70832E-07   1.0000          .0000       .10000E+07
     5 'norm      '    1.7451       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.7191       1.0000          .0000       .10000E+07
     7 'Prefactor '    .87700E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .42276       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.6160       1.0000          .0000       .10000E+07
    10 'norm      '    2.2018       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.0289       1.0000          .0000       .10000E+07
    12 'norm      '    2.3263       1.0000          .0000       .10000E+07
    13 'norm      '    2.0149       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.592       1.0000          .0000       .10000E+07
    15 'Prefactor '    .76456E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .28491E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15496E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .87229E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .78315E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .34277E-04   1.0000          .0000       .10000E+07
    21 'norm      '    2.8756       1.0000          .0000       .10000E+07
    22 'Prefactor '    5.5738       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1100       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=   16703.89     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1526 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7313        1.6579       -.11466E-06    .16288E-01
   2  Prefactor     1.6393        5.6850        .12587E-06   -.24816E-01
   3  Prefactor      .0000        .98257       -.11630E-06** at limit **
   4  norm           .0000        2.4166       -.28466E-06** at limit **
   5  norm          1.7449        2.2952       -.15323E-06    .31302E-03
   6  Prefactor     4.7242        3.3789       -.12721E-06    .30342E-03
   7  Prefactor     .55511E-09    4.0994       -.10771E-06** at limit **
   8  norm          .42297        .71313        .62734E-07    .38147E-03
   9  Prefactor     3.4993        7.1939       -.15644E-05   -.22094E-01
  10  norm          2.2015        2.4166       -.22710E-07    .11777E-02
  11  Prefactor     6.0173        3.6868        .88237E-07    .10294E-02
  12  norm          2.3271        1.2412       -.11684E-06   -.11549E-02
  13  norm          2.0148        1.1707        .51573E-07    .28290E-02
  14  Prefactor     16.274        22.261       -.17153E-05    .14218E-01
  15  Prefactor      .0000        2.9534       -.14674E-06** at limit **
  16  Prefactor     .25591E-07    7.7570       -.42760E-06** at limit **
  17  Prefactor     .99920E-08    7.4910        .41103E-06** at limit **
  18  Prefactor     .21427E-07    8.0229       -.83600E-07** at limit **
  19  Prefactor      .0000        1.0038       -.29816E-07** at limit **
  20  Prefactor     .16598E-07    8.3290       -.68540E-06** at limit **
  21  norm          2.8754        2.0117       -.63862E-07    .62012E-03
  22  Prefactor     5.6105        1.8154       -.15991E-06   -.10625E-02
  23  Normalizat    1.0145        .11469       -.17588E-05   -.11314E-04
  24  Prefactor     1.1100        .14122       -.47450E-06   -.49457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.73126
  Prefactor  = 1.63928
  Prefactor  = 0
  norm       = 0
  norm       = 1.7449
  Prefactor  = 4.72424
  Prefactor  = 5.55112e-10
  norm       = 0.422973
  Prefactor  = 3.4993
  norm       = 2.20147
  Prefactor  = 6.01726
  norm       = 2.32706
  norm       = 2.01475
  Prefactor  = 16.2743
  Prefactor  = 0
  Prefactor  = 2.55906e-08
  Prefactor  = 9.99201e-09
  Prefactor  = 2.14273e-08
  Prefactor  = 0
  Prefactor  = 1.65978e-08
  norm       = 2.87543
  Prefactor  = 5.61051
  Normalizat = 1.01452
  Prefactor  = 1.11002
 **********
 **   18 **HESSE 
 **********

 FCN=   16703.89     FROM HESSE     STATUS=OK           451 CALLS     1977 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7313        9.2582        .32088E-03   -1.5646    
   2  Prefactor     1.6393        21.548        .88980E-03   -1.5682    
   3  Prefactor      .0000        .97893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        2.4174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7449        2.3268        .79364E-03   -1.5682    
   6  Prefactor     4.7242        3.3940        .46297E-03   -1.5664    
   7  Prefactor     .55511E-09    4.1019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .42297        .77877        .32320E-02   -1.5695    
   9  Prefactor     3.4993        7.6527        .53109E-03   -1.5671    
  10  norm          2.2015        2.4301        .69308E-03   -1.5678    
  11  Prefactor     6.0173        3.6994        .40869E-03   -1.5659    
  12  norm          2.3271        1.2461        .67216E-03   -1.5677    
  13  norm          2.0148        1.1757        .72892E-03   -1.5680    
  14  Prefactor     16.274        23.271        .24562E-03   -1.5627    
  15  Prefactor      .0000        2.9492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .25591E-07    15.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-08    7.6402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .21427E-07    15.384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        .99984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16598E-07    8.5399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8754        2.0167        .59913E-03   -1.5674    
  22  Prefactor     5.6105        17.929        .42530E-03   -1.5661    
  23  Normalizat    1.0145        .96629E-01    .44353E-01   -.92546    
  24  Prefactor     1.1100        .11825        .59781E-01   -.89147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58423e-08
Minuit parameter uncertainties:
  1  9.25821
  2  11.8866
  3  1.1817e-06
  4  6.40193e-06
  5  2.3268
  6  3.39402
  7  9.50159e-05
  8  0.77877
  9  7.65276
  10  2.43013
  11  3.69939
  12  1.24608
  13  1.17567
  14  23.2711
  15  1.41446e-05
  16  0.00126308
  17  0.00055322
  18  0.00114854
  19  3.52824e-06
  20  0.000753401
  21  2.01674
  22  17.9287
  23  0.0966453
  24  0.118275
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.627e+01  2.327e+01  0.000e+00  1.000e+06 ( 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.110e+00  1.183e-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.015e+00  9.665e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913467/likelihoodResults_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.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) = 16703.8599962
delta logL = 0.0267220209535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16703.8550475
delta logL = 0.0316706723715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.935       1.0000          .0000       .10000E+07
     2 'Index     '    2.1709       1.0000          .0000       10.000    
     3 'Normalizat'    1.0118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1116       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=   16703.86     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      274 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.949        26.206        .10722E-04    .16116E-03
   2  Index         2.1700        .83985        .12085E-01    .43780E-04
   3  Normalizat    1.0118        .11437        .22312E-03   -.20443E-03
   4  Prefactor     1.1116        .14126        .26421E-03    .15180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9492
  Index      = 2.17001
  Normalizat = 1.01177
  Prefactor  = 1.11161
 **********
 **   18 **HESSE 
 **********

 FCN=   16703.86     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.949        23.056        .42890E-06   -1.5633    
   2  Index         2.1700        .74041        .48341E-03   -.60164    
   3  Normalizat    1.0118        .11427        .89248E-05   -.92637    
   4  Prefactor     1.1116        .14120        .10568E-04   -.89096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0398e-10
Minuit parameter uncertainties:
  1  23.056
  2  0.744448
  3  0.114302
  4  0.141249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913467': 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) = 16703.8550468
delta logL = 0.0316713327047

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.395e+01  2.306e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  2.170e+00  7.444e-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.112e+00  1.412e-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.012e+00  1.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/913467/cmap_HighResolution_687744001_688348801_4FGL_J1253.8+6242_weekly_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2022-10-25 08:30:00.039854', job_id='913467', GAL2='1.11', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1666711800.04', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.17e-02', ts2='0.68', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='742' AND source_name='4FGL J1253.8+6242' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 25 08:30:00 PDT 2022

='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 25 00:35:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 913431: <4FGL_J1253.8+6242_weekly_bin742> in cluster <slac> Done

Job <4FGL_J1253.8+6242_weekly_bin742> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Oct 25 00:06:58 2022
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 25 00:07:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 25 00:07:15 2022
Terminated at Tue Oct 25 00:35:52 2022
Results reported at Tue Oct 25 00:35:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_weekly_bin742 193.467 62.7052 687744001 688348801 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 :                                   1272.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             252.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1716 sec.
    Turnaround time :                            1734 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 913467: <4FGL_J1253.8+6242_weekly_bin742> in cluster <slac> Done

Job <4FGL_J1253.8+6242_weekly_bin742> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Oct 25 00:07:00 2022
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 25 00:07:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 25 00:07:18 2022
Terminated at Tue Oct 25 08:30:00 2022
Results reported at Tue Oct 25 08:30:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_weekly_bin742 193.467 62.7052 687744001 688348801 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 :                                   1250.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             61.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   30162 sec.
    Turnaround time :                            30180 sec.

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

