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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1404
RA = 193.467, Dec = 62.7052
tmin = 603244801, tmax = 603504001
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='974626', job_status='RUN', time_executed='2021-09-06 08:22:09.030345', time_epoch_executed='1630941729.03' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974626/ft1_4FGL_J1253.8+6242_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974626/ft2_4FGL_J1253.8+6242_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974626/ft1_4FGL_J1253.8+6242_daily_bin1404.fits outfile=/scratch/kocevski/974626/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1404.fits ra=193.467 dec=62.7052 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.42
user 2.06
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974626/ft2_4FGL_J1253.8+6242_daily_bin1404.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/974626/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1404.fits evtable="EVENTS" outfile="/scratch/kocevski/974626/ft1_filtered_4FGL_J1253.8+6242_daily_bin1404.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 1.28
user 0.26
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974626/ft1_filtered_4FGL_J1253.8+6242_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/974626/ft2_4FGL_J1253.8+6242_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/974626/ltcube_603244801_603504001_4FGL_J1253.8+6242_daily_bin1404.fits outfile=/scratch/kocevski/974626/expmap_603244801_603504001_4FGL_J1253.8+6242_daily_bin1404.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/974626/ltcube_603244801_603504001_4FGL_J1253.8+6242_daily_bin1404.fits
.....................!
real 151.03
user 143.64
sys 3.85

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/974626/ft1_filtered_4FGL_J1253.8+6242_daily_bin1404.fits scfile=/scratch/kocevski/974626/ft2_4FGL_J1253.8+6242_daily_bin1404.fits outfile=/scratch/kocevski/974626/cmap_603244801_603504001_4FGL_J1253.8+6242_daily_bin1404.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 1.05
user 0.30
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974626/ft1_filtered_4FGL_J1253.8+6242_daily_bin1404.fits scfile=/scratch/kocevski/974626/ft2_4FGL_J1253.8+6242_daily_bin1404.fits outfile=/scratch/kocevski/974626/cmap_HighResolution_603244801_603504001_4FGL_J1253.8+6242_daily_bin1404.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.73
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.111       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .29029       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.224       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3768       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.720       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.0985       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10105E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.791       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.270       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5095       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.0674       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.605       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11878E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5335       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .55699       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=   7310.502     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4162 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.101        39.698       -.36003E-05    .14280E-04
   2  Prefactor     .10000E-03    6.9223       -.27376E-05** at limit **
   3  Prefactor     .10000E-03    1.5238        .15257E-07** at limit **
   4  norm          .34039        8.2329       -.82854E-06   -.81266E-04
   5  norm          .10000E-03    3.8099        .16876E-07** at limit **
   6  Prefactor     .10000E-03    3.5788       -.87039E-07** at limit **
   7  Prefactor     14.222        20.099        .12884E-06    .86624E-06
   8  norm          2.3767        2.1124        .20520E-07    .37775E-04
   9  Prefactor     .10000E-03    6.8754       -.14617E-05** at limit **
  10  Prefactor     30.737        43.918        .10434E-04    .55452E-05
  11  norm          .10000E-03    .93036        .58364E-09** at limit **
  12  Prefactor     .10000E-03    5.9859       -.15858E-05** at limit **
  13  norm          .10000E-03    1.1068        .18044E-07** at limit **
  14  norm          7.0981        3.3771       -.46122E-06   -.35768E-02
  15  Prefactor     .10000E-03    10.084       -.24979E-05** at limit **
  16  Prefactor     .10000E-03    6.7635        .55156E-07** at limit **
  17  Prefactor     .10000E-03    13.746        .42912E-06** at limit **
  18  Prefactor     .10000E-03    6.5814        .51946E-05** at limit **
  19  Prefactor     .10011E-03    17.928        .47168E-05** at limit **
  20  Prefactor     27.768        62.372       -.29874E-04   -.11905E-03
  21  Prefactor     .10000E-03    1.1042        .23792E-08** at limit **
  22  Prefactor     .10000E-03    3.1955        .81333E-08** at limit **
  23  Prefactor     59.294        45.120        .13430E-04   -.34687E-04
  24  Prefactor     8.5096        6.5145       -.83573E-07   -.79962E-04
  25  Prefactor     .10000E-03    9.0420        .27094E-05** at limit **
  26  norm          .10000E-03    39.267       -.34865E-06** at limit **
  27  norm          6.0670        4.0974        .94377E-06   -.21974E-03
  28  Prefactor     11.605        18.892       -.76017E-06   -.56392E-05
  29  Prefactor     .10000E-03    1415.8       -.47401E-03** at limit **
  30  Normalizat    1.5336        .16542        .21559E-06   -.17916E-03
  31  Prefactor     .55688        .18422       -.70303E-06   -.76304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.1011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.340391
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2218
  norm       = 2.37673
  Prefactor  = 0.0001
  Prefactor  = 30.7367
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.09814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010011
  Prefactor  = 27.7679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.2942
  Prefactor  = 8.50965
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.06702
  Prefactor  = 11.605
  Prefactor  = 0.000100002
  Normalizat = 1.53359
  Prefactor  = 0.556884
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.502     FROM HESSE     STATUS=OK           612 CALLS     4774 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.101        39.738        .51327E-04   -1.4143    
   2  Prefactor     .10000E-03    6.9332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5325        .10306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .34039        66.125        .47611E-02   -1.5591    
   5  norm          .10000E-03    3.8678        .16282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5843        .15790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.222        20.075        .10620E-03   -1.4954    
   8  norm          2.3767        2.1189        .11375E-03   -1.5400    
   9  Prefactor     .10000E-03    6.8865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.737        43.918        .72289E-04   -1.4599    
  11  norm          .10000E-03    .93264        .80534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1459        .17554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.0981        3.3915        .52443E-03   -1.5175    
  15  Prefactor     .10000E-03    10.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10011E-03    181.57        .68555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.768        61.820        .75994E-04   -1.4654    
  21  Prefactor     .10000E-03    1.1124        .87618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2006        .14926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     59.294        45.219        .52113E-04   -1.4166    
  24  Prefactor     8.5096        6.5063        .13742E-03   -1.5124    
  25  Prefactor     .10000E-03    9.3045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    39.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.0670        4.0920        .13494E-03   -1.5215    
  28  Prefactor     11.605        18.885        .11760E-03   -1.5027    
  29  Prefactor     .10000E-03    1405.1        .20645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.5336        .19394        .20135E-03   -.76839    
  31  Prefactor     .55688        .21347        .35940E-03   -1.0943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77097e-08
Minuit parameter uncertainties:
  1  39.7556
  2  1.65747e-06
  3  4.69562e-07
  4  9.49782
  5  2.44801e-07
  6  7.52811e-06
  7  20.0846
  8  2.11896
  9  6.1095e-06
  10  43.9638
  11  6.20735e-08
  12  1.74989e-05
  13  1.22804e-06
  14  3.39164
  15  3.14708e-06
  16  5.41629e-06
  17  6.81172e-07
  18  6.26587e-07
  19  0.00896943
  20  61.9631
  21  4.04026e-07
  22  5.76639e-07
  23  45.2455
  24  6.50684
  25  2.19996e-05
  26  1.4352e-05
  27  4.09218
  28  18.8947
  29  0.00300614
  30  0.194037
  31  0.21378
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  3.147e-06  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:  5.569e-01  2.138e-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.534e+00  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/974626/likelihoodResults_603244801_603504001_4FGL_J1253.8+6242_daily_bin1404.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): 102
logL (Free Index) = 7310.50234516
delta logL = -0.000466028248411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7310.50188258
delta logL = -3.44633917848e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13088E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9609       1.0000          .0000       10.000    
     3 'Normalizat'    1.5339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55646       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=   7310.502     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10122E-03    77.970        .18142E-02** at limit **
   2  Index         1.9094        5.1083        .50000        .16075E-04
   3  Normalizat    1.5336        .10463E-01    .20135E-03    .94291E-05
   4  Prefactor     .55688        .11894E-01    .35940E-03    .46183E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101224
  Index      = 1.90939
  Normalizat = 1.53359
  Prefactor  = 0.556884
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.502     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10122E-03    337.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9094        6.8578        .50000       -.66635    
   3  Normalizat    1.5336        .22444E-01    .80541E-05   -.76839    
   4  Prefactor     .55688        .25513E-01    .14376E-04   -1.0943    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38411e-08
Minuit parameter uncertainties:
  1  0.0408633
  2  479.436
  3  0.0224444
  4  0.0255132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974626': 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) = 7310.50187885
delta logL = 2.8950671549e-07

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.012e-04  4.086e-02  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.909e+00  4.794e+02  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:  5.569e-01  2.551e-02  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.534e+00  2.244e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/974626/cmap_HighResolution_603244801_603504001_4FGL_J1253.8+6242_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-03', job_status='DONE', photon_flux_upper_limit='2.80e-08', time_completed='2021-09-06 08:37:14.882074', job_id='974626', GAL2='0.56', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630942634.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1404' 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 <scs@bullet0168>
Subject: Job 974626: <4FGL_J1253.8+6242_daily_bin1404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1404 193.467 62.7052 603244801 603504001 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 :                                   887.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             277.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            965 sec.

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

