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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1229
RA = 194.473, Dec = 32.4721
tmin = 557884801, tmax = 558144001
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='49387', job_status='RUN', time_executed='2021-09-06 12:15:57.162779', time_epoch_executed='1630955757.16' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49387/ft1_4FGL_J1257.8+3228_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49387/ft2_4FGL_J1257.8+3228_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49387/ft1_4FGL_J1257.8+3228_daily_bin1229.fits outfile=/scratch/kocevski/49387/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1229.fits ra=194.473 dec=32.4721 rad=12.0 tmin=557884801.0 tmax=558144001.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 4.57
user 3.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49387/ft1_filtered_4FGL_J1257.8+3228_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/49387/ft2_4FGL_J1257.8+3228_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/49387/ltcube_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.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/49387/ft2_4FGL_J1257.8+3228_daily_bin1229.fits
.....................!
real 15.02
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49387/ft1_filtered_4FGL_J1257.8+3228_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/49387/ft2_4FGL_J1257.8+3228_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/49387/ltcube_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.fits outfile=/scratch/kocevski/49387/expmap_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.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/49387/ltcube_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.fits
.....................!
real 198.90
user 185.74
sys 5.14

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/49387/ft1_filtered_4FGL_J1257.8+3228_daily_bin1229.fits scfile=/scratch/kocevski/49387/ft2_4FGL_J1257.8+3228_daily_bin1229.fits outfile=/scratch/kocevski/49387/cmap_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49387/ft1_filtered_4FGL_J1257.8+3228_daily_bin1229.fits scfile=/scratch/kocevski/49387/ft2_4FGL_J1257.8+3228_daily_bin1229.fits outfile=/scratch/kocevski/49387/cmap_HighResolution_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.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.59
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49387/ft1_filtered_4FGL_J1257.8+3228_daily_bin1229.fits', '/scratch/kocevski/49387/ft2_4FGL_J1257.8+3228_daily_bin1229.fits', expMap='/scratch/kocevski/49387/expmap_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.fits', expCube='/scratch/kocevski/49387/ltcube_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49387/Model_4FGL_J1257.8+3228_daily_bin1229.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/49387/ft1_filtered_4FGL_J1257.8+3228_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/49387/ft2_4FGL_J1257.8+3228_daily_bin1229.fits
Exposure map: /scratch/kocevski/49387/expmap_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.fits
Exposure cube: /scratch/kocevski/49387/ltcube_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49387/Model_4FGL_J1257.8+3228_daily_bin1229.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 143.481652924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 139.693287446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1752       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9568       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14179E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20466E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14621       1.0000         .10000E-03   10000.    
     7 'norm      '    .46475E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47919       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43207E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4720       1.0000         .10000E-03   10000.    
    13 'norm      '    .84622E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1484       1.0000         .10000E-03   10000.    
    16 'norm      '    41.764       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1112       1.0000         .10000E-03   10000.    
    18 'norm      '    .19741E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    8.1786       1.0000         .10000E-03   10000.    
    20 'norm      '    .42174E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .50346E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .11237E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19065       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .35731E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.2860       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .99672E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    369.26       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.0408       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.2679       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .11786       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .42343E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   139.6826     FROM MIGRAD    STATUS=CONVERGED    280 CALLS      586 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1752        1.0074         .0000         .0000    
   2  norm          .10000E-03    565.35        .91577E-07** at limit **
   3  Prefactor     1.9412        1.0378         .0000         .0000    
   4  Prefactor     .10000E-03    482.11        .93718E-05** at limit **
   5  Prefactor     .10000E-03    67.796       -.10752E-05** at limit **
   6  Prefactor     .10000E-03    52.896        .45197E-06** at limit **
   7  norm          .10000E-03    38.853       -.21348E-05** at limit **
   8  Prefactor     .10000E-03    258.87       -.37015E-05** at limit **
   9  Prefactor     2.2291        1.0277         .0000         .0000    
  10  Prefactor     .10001E-03    1456.1       -.34209E-04** at limit **
  11  Prefactor     .10000E-03    56.507        .20601E-05** at limit **
  12  Prefactor     1.4720        1.0740         .0000         .0000    
  13  norm          .10000E-03    186.38        .10728E-05** at limit **
  14  Prefactor     4.3085        1.0069         .0000         .0000    
  15  Prefactor     .10000E-03    1106.8        .14231E-04** at limit **
  16  norm          41.794        30.120        .19031E-05   -.64696E-05
  17  Prefactor     2.1112        1.0312         .0000         .0000    
  18  norm          .10000E-03    738.76        .10118E-04** at limit **
  19  norm          8.1786        1.0019         .0000         .0000    
  20  norm          .10000E-03    294.57       -.80960E-06** at limit **
  21  norm          .10000E-03    125.20        .78935E-06** at limit **
  22  norm          .10000E-03    53.591        .28825E-06** at limit **
  23  Prefactor     .10000E-03    132.53        .47475E-05** at limit **
  24  Prefactor     .10000E-03    250.39        .22030E-05** at limit **
  25  norm          .10000E-03    16.593        .36448E-06** at limit **
  26  Prefactor     .10141E-03    2117.5        .70427E-04** at limit **
  27  Prefactor     .10000E-03    520.05       -.19270E-04** at limit **
  28  Prefactor     367.74        38.327        .15514E-05   -.11818E-02
  29  Prefactor     .10002E-03    9159.6       -.70360E-04** at limit **
  30  Prefactor     5.6171        33.376        .75398E-05   -.38974E-06
  31  Normalizat    .11758        .57404       -.55142E-04   -.11791E-05
  32  Prefactor      .0000        .53309       -.79079E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17517
  norm       = 0.0001
  Prefactor  = 1.9412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22911
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.47196
  norm       = 0.0001
  Prefactor  = 4.30848
  Prefactor  = 0.0001
  norm       = 41.7944
  Prefactor  = 2.11118
  norm       = 0.0001
  norm       = 8.1786
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101407
  Prefactor  = 0.0001
  Prefactor  = 367.744
  Prefactor  = 0.000100016
  Prefactor  = 5.61706
  Normalizat = 0.117576
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   139.6826     FROM HESSE     STATUS=FAILED        11 CALLS      597 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     540.19        535.96         .0000       -1.5299    
   2  norm          .10000E-03    .87147E-01    .91577E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9412        1.0378         .0000       -1.5429    
   4  Prefactor     .10000E-03    .26303        .93718E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .20816       -.10752E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .23665        .45197E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .21404       -.21348E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .31279       -.37015E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2291        1.0277         .0000       -1.5409    
  10  Prefactor     .10001E-03    .44477E-01   -.34209E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .23515        .20601E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4720        1.0740         .0000       -1.5465    
  13  norm          .10000E-03    .27217        .10728E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3085        1.0069         .0000       -1.5293    
  15  Prefactor     .10000E-03    .12350        .14231E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          41.794        1.0004        .19031E-05   -1.4414    
  17  Prefactor     2.1112        1.0312         .0000       -1.5417    
  18  norm          .10000E-03    .20800        .10118E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.1786        1.0019         .0000       -1.5136    
  20  norm          .10000E-03    .21306       -.80960E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .23023        .78935E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .26739        .28825E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .24675        .47475E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .20580        .22030E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .24085        .36448E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10141E-03    .59172E-01    .70427E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .20579       -.19270E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     367.74        .99803        .15514E-05   -1.1849    
  29  Prefactor     .10002E-03    .31238E-01   -.70360E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.6171        1.0373        .75398E-05   -1.5234    
  31  Normalizat    .11758        .34241       -.55142E-04   -1.3629    
  32  Prefactor      .0000        .25748       -.79079E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.1761e-13
Minuit parameter uncertainties:
  1  1.00736
  2  3.29313e-07
  3  1.03776
  4  2.61756e-06
  5  7.83951e-08
  6  8.60194e-08
  7  3.37073e-07
  8  1.65249e-07
  9  1.02767
  10  3.09475e-05
  11  7.86042e-07
  12  1.07403
  13  3.82411e-07
  14  1.0069
  15  4.50087e-07
  16  1.00043
  17  1.03123
  18  2.19759e-06
  19  1.00188
  20  5.13699e-08
  21  1.26312e-07
  22  5.296e-08
  23  7.83492e-07
  24  1.21294e-06
  25  4.7687e-08
  26  0.000577054
  27  1.07146e-06
  28  0.99803
  29  4.47114e-05
  30  1.03732
  31  0.349037
  32  1.55602e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 139.682601732

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  3.824e-07  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:  0.000e+00  1.556e-08  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.176e-01  3.490e-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: 6.49e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49387/likelihoodResults_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.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) = 139.682627039
delta logL = -2.53065746847e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 139.682602161
delta logL = -4.2850359705e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3672       1.0000          .0000       5.0000    
     3 'Normalizat'    .11757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30634E-09   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=   139.6826     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      280 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    8783.7        .10138E-01** at limit **
   2  alpha         1.7944        3.1165        .17930        .66378E-08
   3  Normalizat    .11757        .14506        .46798E-03   -.77200E-05
   4  Prefactor     .16653E-14    .65809E-01    .52429E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100083
  alpha      = 1.79441
  Normalizat = 0.117575
  Prefactor  = 1.66533e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   139.6826     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10008E-03    206.77        .16568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7944        2.6757        .71720E-02   -.28612    
   3  Normalizat    .11757        .40641        .18719E-04   -1.3629    
   4  Prefactor     .16653E-14    .53361        .10486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2531e-10
Minuit parameter uncertainties:
  1  0.00832277
  2  2025.1
  3  0.417742
  4  6.13608e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49387': 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) = 139.68260171
delta logL = 2.28776855238e-08

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.001e-04  8.323e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.794e+00  2.025e+03  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.665e-15  6.136e-08  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.176e-01  4.177e-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/49387/cmap_HighResolution_557884801_558144001_4FGL_J1257.8+3228_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='6.49e-06', time_completed='2021-09-06 12:21:40.126173', job_id='49387', GAL2='0.00', fit_tolerance='1e-08', EG2='0.12', EG='0.12', time_epoch_completed='1630956100.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='2.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1229' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:21:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 49387: <4FGL_J1257.8+3228_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1229> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:15:38 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:15:39 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:39 2021
Terminated at Mon Sep  6 12:21:40 2021
Results reported at Mon Sep  6 12:21:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1229 194.473 32.4721 557884801 558144001 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 :                                   326.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             474.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   361 sec.
    Turnaround time :                            362 sec.

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

