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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1401
RA = 194.473, Dec = 32.4721
tmin = 602467201, tmax = 602726401
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='49658', job_status='RUN', time_executed='2021-09-06 12:17:45.189256', time_epoch_executed='1630955865.19' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49658

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49658/ft1_4FGL_J1257.8+3228_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49658/ft1_4FGL_J1257.8+3228_daily_bin1401.fits outfile=/scratch/kocevski/49658/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1401.fits ra=194.473 dec=32.4721 rad=12.0 tmin=602467201.0 tmax=602726401.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.25
user 2.96
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.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/49658/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1401.fits evtable="EVENTS" outfile="/scratch/kocevski/49658/ft1_filtered_4FGL_J1257.8+3228_daily_bin1401.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.58
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49658/ft1_filtered_4FGL_J1257.8+3228_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/49658/ltcube_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.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/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.fits
.....................!
real 12.64
user 12.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49658/ft1_filtered_4FGL_J1257.8+3228_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/49658/ltcube_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.fits outfile=/scratch/kocevski/49658/expmap_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.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/49658/ltcube_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.fits
.....................!
real 191.60
user 187.00
sys 4.22

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/49658/ft1_filtered_4FGL_J1257.8+3228_daily_bin1401.fits scfile=/scratch/kocevski/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.fits outfile=/scratch/kocevski/49658/cmap_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49658/ft1_filtered_4FGL_J1257.8+3228_daily_bin1401.fits scfile=/scratch/kocevski/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.fits outfile=/scratch/kocevski/49658/cmap_HighResolution_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49658/ft1_filtered_4FGL_J1257.8+3228_daily_bin1401.fits', '/scratch/kocevski/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.fits', expMap='/scratch/kocevski/49658/expmap_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.fits', expCube='/scratch/kocevski/49658/ltcube_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49658/Model_4FGL_J1257.8+3228_daily_bin1401.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/49658/ft1_filtered_4FGL_J1257.8+3228_daily_bin1401.fits
Spacecraft file(s): /scratch/kocevski/49658/ft2_4FGL_J1257.8+3228_daily_bin1401.fits
Exposure map: /scratch/kocevski/49658/expmap_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.fits
Exposure cube: /scratch/kocevski/49658/ltcube_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49658/Model_4FGL_J1257.8+3228_daily_bin1401.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) = 2573.68568479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    398.05       1.0000         .10000E-03   10000.    
     2 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.506       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .23193E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23862E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    137.02       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3278       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.319       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4148       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5064       1.0000         .10000E-03   10000.    
    18 'norm      '    .11209E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    21.084       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5148       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.852       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.188       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11085E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    27.262       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3717       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1210       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .53050       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.

 FCN=   2573.670     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4358 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     398.02        203.48        .45983E-07    .49167E-04
   2  norm          .10000E-03    8.2941       -.11920E-06** at limit **
   3  Prefactor     .10000E-03    8.7751        .11877E-06** at limit **
   4  Prefactor     8.9499        7.0962       -.17493E-06   -.17951E-03
   5  Prefactor     18.505        7.2475       -.88376E-07    .17537E-04
   6  Prefactor     .10000E-03    4.5541       -.31203E-09** at limit **
   7  norm          .10001E-03    9.2008       -.18998E-05** at limit **
   8  Prefactor     .10000E-03    6.4891        .62486E-09** at limit **
   9  Prefactor     .10001E-03    183.65        .29550E-05** at limit **
  10  Prefactor     137.03        153.03       -.10644E-05    .11577E-04
  11  Prefactor     6.3281        6.2378        .35403E-08    .57557E-04
  12  Prefactor     .10000E-03    7.5544        .13018E-07** at limit **
  13  norm          .10000E-03    5.4295       -.10951E-06** at limit **
  14  Prefactor     .10001E-03    106.98       -.16523E-05** at limit **
  15  Prefactor     17.313        36.142        .78161E-06    .94497E-04
  16  norm          5.4152        4.3712       -.39046E-07    .53107E-04
  17  Prefactor     9.5118        19.528        .21947E-05    .18600E-03
  18  norm          .10008E-03    37.064       -.59966E-05** at limit **
  19  norm          .10000E-03    15.206        .41813E-06** at limit **
  20  norm          .10000E-03    8.8839       -.17648E-06** at limit **
  21  norm          21.090        12.969        .26305E-06    .25466E-03
  22  norm          .10000E-03    10.494        .12694E-06** at limit **
  23  Prefactor     1.5214        5.1611        .43180E-06   -.54838E-04
  24  Prefactor     .10000E-03    23.841       -.82410E-06** at limit **
  25  norm          14.853        9.7117       -.16887E-06    .23224E-04
  26  Prefactor     .10000E-03    36.005       -.12720E-05** at limit **
  27  Prefactor     12.179        18.921       -.96746E-06    .97777E-04
  28  Prefactor     .10473E-03    93.958       -.10415E-04** at limit **
  29  Prefactor     27.339        95.575       -.60748E-05   -.92413E-04
  30  Prefactor     1.3725        5.1517       -.11348E-05   -.21986E-03
  31  Normalizat    1.1205        .29010        .42286E-05    .37173E-03
  32  Prefactor     .53077        .33422       -.48354E-05    .19959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 398.018
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.94995
  Prefactor  = 18.5046
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 137.026
  Prefactor  = 6.3281
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 17.3131
  norm       = 5.41519
  Prefactor  = 9.51182
  norm       = 0.000100075
  norm       = 0.0001
  norm       = 0.0001
  norm       = 21.09
  norm       = 0.0001
  Prefactor  = 1.52137
  Prefactor  = 0.0001
  norm       = 14.8533
  Prefactor  = 0.000100002
  Prefactor  = 12.1786
  Prefactor  = 0.000104731
  Prefactor  = 27.3393
  Prefactor  = 1.37245
  Normalizat = 1.1205
  Prefactor  = 0.53077
 **********
 **   18 **HESSE 
 **********

 FCN=   2573.670     FROM HESSE     STATUS=OK           653 CALLS     5011 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     398.02        203.82        .10230E-03   -1.1691    
   2  norm          .10000E-03    8.3911        .28336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7780        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9499        7.0671        .11343E-03   -1.5110    
   5  Prefactor     18.505        7.2383        .80918E-04   -1.4847    
   6  Prefactor     .10000E-03    4.5588        .10573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    14.283        .25350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4903        .12623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    185.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     137.03        152.94        .34409E-04   -1.3361    
  11  Prefactor     6.3281        6.2423        .12271E-03   -1.5205    
  12  Prefactor     .10000E-03    7.5864        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.4441        .11524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    107.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.313        36.044        .96240E-04   -1.4876    
  16  norm          5.4152        4.3694        .92199E-04   -1.5243    
  17  Prefactor     9.5118        19.524        .12998E-03   -1.5091    
  18  norm          .10008E-03    44.062        .32418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.0221        .29189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          21.090        12.803        .87230E-04   -1.4789    
  22  norm          .10000E-03    10.499        .16053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.5214        5.1847        .19212E-03   -1.5461    
  24  Prefactor     .10000E-03    24.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.853        9.7153        .10393E-03   -1.4937    
  26  Prefactor     .10000E-03    36.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.179        18.467        .11474E-03   -1.5010    
  28  Prefactor     .10473E-03    321.39        .46368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     27.339        97.570        .76727E-04   -1.4662    
  30  Prefactor     1.3725        5.2026        .20854E-03   -1.5474    
  31  Normalizat    1.1205        .31380        .21428E-03   -.89096    
  32  Prefactor     .53077        .35335        .35702E-03   -1.1059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69642e-08
Minuit parameter uncertainties:
  1  204.192
  2  1.29485e-06
  3  1.52674e-05
  4  7.06781
  5  7.23865
  6  6.76914e-06
  7  0.0006712
  8  8.67624e-07
  9  0.00239152
  10  153.386
  11  6.24294
  12  1.27818e-05
  13  2.32549e-05
  14  0.00154341
  15  36.0895
  16  4.36962
  17  19.5368
  18  0.00363922
  19  0.000117336
  20  4.43253e-05
  21  12.8046
  22  2.87735e-05
  23  5.18619
  24  6.82227e-06
  25  9.71636
  26  0.000529767
  27  18.4755
  28  0.0784128
  29  98.1474
  30  5.20427
  31  0.314326
  32  0.354825
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.325e-05  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:  5.308e-01  3.548e-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:  1.121e+00  3.143e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49658/likelihoodResults_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.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) = 2573.67122944
delta logL = -0.000871057718996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2573.67035892
delta logL = -5.38314452569e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2133       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53114       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=   2573.670     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      239 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    608.77        .11540E-02** at limit **
   2  alpha         2.0575        3.7269        .50000       -.15052E-07
   3  Normalizat    1.1205        .75365E-01    .21428E-03   -.75073E-05
   4  Prefactor     .53077        .89396E-01    .35702E-03   -.17355E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05753
  Normalizat = 1.1205
  Prefactor  = 0.53077
 **********
 **   18 **HESSE 
 **********

 FCN=   2573.670     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.687        .23079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0575        2.9184        .50000       -.17792    
   3  Normalizat    1.1205        .29492        .85712E-05   -.89096    
   4  Prefactor     .53077        .34896        .14281E-04   -1.1059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72438e-11
Minuit parameter uncertainties:
  1  4.16945e-05
  2  299.71
  3  0.295352
  4  0.350389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49658': 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) = 2573.67035821
delta logL = 1.7249794837e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  4.169e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.058e+00  2.997e+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:  5.308e-01  3.504e-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:  1.121e+00  2.954e-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/49658/cmap_HighResolution_602467201_602726401_4FGL_J1257.8+3228_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-06 12:29:06.862797', job_id='49658', GAL2='0.53', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630956546.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='1.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1401' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:29:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 49658: <4FGL_J1257.8+3228_daily_bin1401> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1401> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:16:03 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:16:04 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:16:04 2021
Terminated at Mon Sep  6 12:29:07 2021
Results reported at Mon Sep  6 12:29:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1401 194.473 32.4721 602467201 602726401 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 :                                   572.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

