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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1157
RA = 194.473, Dec = 32.4721
tmin = 539222401, tmax = 539481601
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='49271', job_status='RUN', time_executed='2021-09-06 12:17:37.697907', time_epoch_executed='1630955857.7' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49271

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49271/ft1_4FGL_J1257.8+3228_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49271/ft1_4FGL_J1257.8+3228_daily_bin1157.fits outfile=/scratch/kocevski/49271/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1157.fits ra=194.473 dec=32.4721 rad=12.0 tmin=539222401.0 tmax=539481601.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.58
user 5.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.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/49271/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.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.55
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/49271/ltcube_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.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/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits
.....................!
real 12.19
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/49271/ltcube_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.fits outfile=/scratch/kocevski/49271/expmap_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.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/49271/ltcube_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.fits
.....................!
real 190.84
user 186.28
sys 4.04

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

Setting source of interest to:
4FGL J1257.8+3228 @ 194.473 32.4721

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.fits scfile=/scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits outfile=/scratch/kocevski/49271/cmap_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.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=194.473 yref=32.4721 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.fits scfile=/scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits outfile=/scratch/kocevski/49271/cmap_HighResolution_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.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=194.473 yref=32.4721 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49271/Model_4FGL_J1257.8+3228_daily_bin1157.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/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.fits....................!
real 22.03
user 20.37
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.fits', '/scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits', expMap='/scratch/kocevski/49271/expmap_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.fits', expCube='/scratch/kocevski/49271/ltcube_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49271/Model_4FGL_J1257.8+3228_daily_bin1157.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.8+3228'

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.994e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/49271/ft1_filtered_4FGL_J1257.8+3228_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/49271/ft2_4FGL_J1257.8+3228_daily_bin1157.fits
Exposure map: /scratch/kocevski/49271/expmap_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.fits
Exposure cube: /scratch/kocevski/49271/ltcube_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49271/Model_4FGL_J1257.8+3228_daily_bin1157.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) = 1326.09512686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8683       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.475       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8627       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3558       1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    184.15       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36935E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    14.315       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.672       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9748       1.0000         .10000E-03   10000.    
    20 'norm      '    .24489E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.4098       1.0000         .10000E-03   10000.    
    22 'norm      '    49.578       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.5501       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    60.762       1.0000         .10000E-03   10000.    
    29 'Prefactor '    141.02       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8130       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .48506       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.9155       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+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=   1326.050     FROM MIGRAD    STATUS=CONVERGED   1483 CALLS     5007 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8992        1045.5        .30474E-03    .19026E-05
   2  norm          .10000E-03    4.8949        .78512E-03** at limit **
   3  Prefactor     31.477        31.144        .71420E-04    .32935E-04
   4  Prefactor     3.8633        6.0258        .10844E-03    .26183E-04
   5  Prefactor     .10000E-03    2.5217        .56452E-03** at limit **
   6  Prefactor     8.3592        18.045        .13869E-03    .11681E-04
   7  norm          .10000E-03    9.8403        .11135E-02** at limit **
   8  Prefactor     .10000E-03    19.350        .15642E-02** at limit **
   9  Prefactor     .10000E-03    31.845        .18142E-02** at limit **
  10  Prefactor     184.16        210.68        .14876E-03    .21189E-04
  11  Prefactor     .10000E-03    15.769        .14113E-02** at limit **
  12  Prefactor     .10000E-03    6.9550        .93795E-03** at limit **
  13  norm          .10000E-03    6.4667        .90367E-03** at limit **
  14  Prefactor     .10000E-03    70.074        .18142E-02** at limit **
  15  Prefactor     .10028E-03    172.93        .10596    ** at limit **
  16  norm          14.319        16.747        .10586E-03    .15035E-05
  17  Prefactor     .10000E-03    14.849        .13708E-02** at limit **
  18  norm          17.672        17.404        .95273E-04    .18314E-03
  19  norm          4.9784        54.276        .18031E-03    .25221E-05
  20  norm          .10000E-03    27.960        .25863E-02** at limit **
  21  norm          3.4195        21.214        .21908E-03   -.34016E-04
  22  norm          49.686        142.35        .56953E-04    .43915E-05
  23  Prefactor     .10000E-03    6.8455        .92690E-03** at limit **
  24  Prefactor     .10000E-03    28.367        .18142E-02** at limit **
  25  norm          2.5172        174.69        .25569E-03    .71695E-05
  26  Prefactor     .10000E-03    59.941        .18142E-02** at limit **
  27  Prefactor     .10000E-03    19.551        .15727E-02** at limit **
  28  Prefactor     60.801        72.983        .51473E-04    .31264E-04
  29  Prefactor     141.23        178.82        .16962E-03    .73412E-04
  30  Prefactor     3.8135        7.9720        .71032E-03    .80030E-04
  31  Normalizat    .48494        .61936        .38077E-03    .79331E-04
  32  Prefactor     1.9155        .73888        .26370E-03    .76758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89923
  norm       = 0.0001
  Prefactor  = 31.4773
  Prefactor  = 3.86333
  Prefactor  = 0.0001
  Prefactor  = 8.3592
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 184.163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100281
  norm       = 14.3186
  Prefactor  = 0.0001
  norm       = 17.6717
  norm       = 4.97842
  norm       = 0.000100001
  norm       = 3.41945
  norm       = 49.6859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.8012
  Prefactor  = 141.232
  Prefactor  = 3.81348
  Normalizat = 0.48494
  Prefactor  = 1.91545
 **********
 **   18 **HESSE 
 **********

 FCN=   1326.050     FROM HESSE     STATUS=OK           637 CALLS     5644 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8992        1044.8        .12190E-04   -1.5432    
   2  norm          .10000E-03    4.8949        .15702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.477        31.142        .14284E-04   -1.4585    
   4  Prefactor     3.8633        6.0258        .43376E-05   -1.5315    
   5  Prefactor     .10000E-03    2.5218        .11290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3592        18.045        .55474E-05   -1.5130    
   7  norm          .10000E-03    9.8406        .22271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.350        .31283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     184.16        210.67        .29751E-04   -1.2985    
  11  Prefactor     .10000E-03    15.769        .28227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9550        .18759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4668        .18073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    70.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10028E-03    163.95        .10935       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.319        16.745        .42344E-05   -1.4951    
  17  Prefactor     .10000E-03    14.849        .27415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.672        17.400        .38109E-05   -1.4867    
  19  norm          4.9784        54.267        .72123E-05   -1.5262    
  20  norm          .10000E-03    27.971        .51726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.4195        21.137        .87632E-05   -1.5338    
  22  norm          49.686        141.84        .22781E-05   -1.4297    
  23  Prefactor     .10000E-03    6.8458        .18538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.5172        173.32        .10228E-04   -1.5391    
  26  Prefactor     .10000E-03    59.941        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    19.551        .31454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     60.801        72.979        .10295E-04   -1.4147    
  29  Prefactor     141.23        178.80        .33924E-04   -1.3326    
  30  Prefactor     3.8135        7.9718        .14206E-03   -1.5317    
  31  Normalizat    .48494        .61914        .15231E-04   -1.1312    
  32  Prefactor     1.9155        .73908        .52741E-04   -.66481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99715e-10
Minuit parameter uncertainties:
  1  90.7295
  2  3.43177e-06
  3  31.1579
  4  6.02672
  5  2.51933e-06
  6  18.0563
  7  5.66353e-06
  8  6.00001e-06
  9  1.22823e-05
  10  211.539
  11  7.40889e-06
  12  1.01793e-06
  13  1.74784e-06
  14  0.000127455
  15  0.01361
  16  16.7503
  17  4.14559e-05
  18  17.4045
  19  32.9111
  20  0.000284087
  21  17.0118
  22  142.823
  23  5.31073e-05
  24  9.71305e-05
  25  41.9015
  26  0.000156806
  27  2.03214e-05
  28  73.0868
  29  179.488
  30  7.974
  31  0.628241
  32  0.743495
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.748e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.915e+00  7.435e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  4.849e-01  6.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49271/likelihoodResults_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.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) = 1326.05074752
delta logL = -0.000629604962114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1326.05012035
delta logL = -2.43954400503e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2172       1.0000          .0000       5.0000    
     3 'Normalizat'    .48376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.9169       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+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=   1326.050     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      221 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10012E-03    999.56        .90394E-03** at limit **
   2  alpha         2.1628        3.4623        .50000        .92267E-06
   3  Normalizat    .48493        .17089        .38081E-03    .37526E-04
   4  Prefactor     1.9155        .21970        .26370E-03    .93139E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100119
  alpha      = 2.1628
  Normalizat = 0.484933
  Prefactor  = 1.91546
 **********
 **   18 **HESSE 
 **********

 FCN=   1326.050     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10012E-03    8.1720        .18079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1628        3.2625        .50000       -.13529    
   3  Normalizat    .48493        .53190        .15232E-04   -1.1312    
   4  Prefactor     1.9155        .68723        .52740E-04   -.66481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37564e-08
Minuit parameter uncertainties:
  1  0.00196901
  2  382.22
  3  0.53761
  4  0.690768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49271': 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) = 1326.05011789
delta logL = 2.12291979551e-08

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.001e-04  1.969e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.163e+00  3.822e+02  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.915e+00  6.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  4.849e-01  5.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.473 32.472

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/49271/cmap_HighResolution_539222401_539481601_4FGL_J1257.8+3228_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-05', job_status='DONE', photon_flux_upper_limit='1.76e-07', time_completed='2021-09-06 12:25:39.501730', job_id='49271', GAL2='1.92', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1630956339.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.92', dlogl='2.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1157' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:25:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 49271: <4FGL_J1257.8+3228_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1157> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:15:29 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:15:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:15:31 2021
Terminated at Mon Sep  6 12:25:40 2021
Results reported at Mon Sep  6 12:25:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1157 194.473 32.4721 539222401 539481601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.8+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   472.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            611 sec.

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

