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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1140
RA = 194.473, Dec = 32.4721
tmin = 534816001, tmax = 535075201
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='47877', job_status='RUN', time_executed='2021-09-06 12:14:09.726363', time_epoch_executed='1630955649.73' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47877/ft1_4FGL_J1257.8+3228_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47877/ft2_4FGL_J1257.8+3228_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47877/ft1_4FGL_J1257.8+3228_daily_bin1140.fits outfile=/scratch/kocevski/47877/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1140.fits ra=194.473 dec=32.4721 rad=12.0 tmin=534816001.0 tmax=535075201.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.76
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47877/ft1_filtered_4FGL_J1257.8+3228_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/47877/ft2_4FGL_J1257.8+3228_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/47877/ltcube_534816001_535075201_4FGL_J1257.8+3228_daily_bin1140.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/47877/ft2_4FGL_J1257.8+3228_daily_bin1140.fits
.....................!
real 11.66
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47877/ft1_filtered_4FGL_J1257.8+3228_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/47877/ft2_4FGL_J1257.8+3228_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/47877/ltcube_534816001_535075201_4FGL_J1257.8+3228_daily_bin1140.fits outfile=/scratch/kocevski/47877/expmap_534816001_535075201_4FGL_J1257.8+3228_daily_bin1140.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/47877/ltcube_534816001_535075201_4FGL_J1257.8+3228_daily_bin1140.fits
.....................!
real 190.65
user 185.98
sys 4.25

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/47877/ft1_filtered_4FGL_J1257.8+3228_daily_bin1140.fits scfile=/scratch/kocevski/47877/ft2_4FGL_J1257.8+3228_daily_bin1140.fits outfile=/scratch/kocevski/47877/cmap_534816001_535075201_4FGL_J1257.8+3228_daily_bin1140.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47877/ft1_filtered_4FGL_J1257.8+3228_daily_bin1140.fits scfile=/scratch/kocevski/47877/ft2_4FGL_J1257.8+3228_daily_bin1140.fits outfile=/scratch/kocevski/47877/cmap_HighResolution_534816001_535075201_4FGL_J1257.8+3228_daily_bin1140.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.627       1.0000         .10000E-03   10000.    
     2 'norm      '    13.334       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14771E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3342       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1367       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6497       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31101       1.0000         .10000E-03   10000.    
    13 'norm      '    9.1479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.171       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11800E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.0297       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5874       1.0000         .10000E-03   10000.    
    21 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10460E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2082       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0881       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=   5699.431     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4450 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.625        41.931       -.23485E-06   -.16749E-04
   2  norm          13.335        4.8797       -.14199E-06   -.68149E-03
   3  Prefactor     2.8427        7.2386        .45987E-05    .36052E-04
   4  Prefactor     .10000E-03    2.5197        .89599E-06** at limit **
   5  Prefactor     3.9217        2.5842       -.77119E-07   -.23648E-03
   6  Prefactor     1.3344        2.9134        .11698E-06   -.33191E-05
   7  norm          1.1368        2.5101        .32610E-07   -.62403E-04
   8  Prefactor     2.6497        7.3725        .49427E-05    .20818E-04
   9  Prefactor     .10000E-03    29.179        .64833E-06** at limit **
  10  Prefactor     .10000E-03    31.014        .29725E-06** at limit **
  11  Prefactor     .10000E-03    6.4315        .13639E-06** at limit **
  12  Prefactor     .31273        4.8560        .19847E-06   -.69982E-04
  13  norm          9.1462        5.1492        .11582E-06    .82485E-04
  14  Prefactor     37.121        56.811        .81313E-05   -.13031E-04
  15  Prefactor     .10000E-03    44.734       -.10927E-05** at limit **
  16  norm          .10000E-03    3.1513        .77327E-06** at limit **
  17  Prefactor     .10000E-03    5.6693        .27352E-06** at limit **
  18  norm          .10000E-03    3.5141       -.60890E-06** at limit **
  19  norm          8.0324        13.150       -.42710E-06   -.20751E-04
  20  norm          1.5872        1.8228        .12861E-06    .47201E-04
  21  norm          .10000E-03    3.1550        .48618E-06** at limit **
  22  norm          .10000E-03    18.897        .15308E-06** at limit **
  23  Prefactor     .10000E-03    .72282        .13266E-08** at limit **
  24  Prefactor     .10000E-03    13.524       -.25668E-06** at limit **
  25  norm          .10000E-03    3.9919        .25711E-07** at limit **
  26  Prefactor     .10000E-03    33.579       -.45166E-06** at limit **
  27  Prefactor     .10000E-03    8.0645        .65841E-07** at limit **
  28  Prefactor     .10000E-03    51.913        .82162E-06** at limit **
  29  Prefactor     .10000E-03    32.336       -.11646E-06** at limit **
  30  Prefactor     .10000E-03    1.7671        .80674E-08** at limit **
  31  Normalizat    1.2083        .18705       -.50698E-06   -.13492E-03
  32  Prefactor     1.0881        .23044       -.93419E-06   -.78965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.6247
  norm       = 13.3345
  Prefactor  = 2.84268
  Prefactor  = 0.0001
  Prefactor  = 3.92167
  Prefactor  = 1.33437
  norm       = 1.13678
  Prefactor  = 2.64974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.31273
  norm       = 9.1462
  Prefactor  = 37.1205
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 8.03243
  norm       = 1.58716
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20826
  Prefactor  = 1.08809
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.431     FROM HESSE     STATUS=OK           659 CALLS     5109 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.625        41.955        .58103E-04   -1.4327    
   2  norm          13.335        4.5735        .89144E-04   -1.4977    
   3  Prefactor     2.8427        7.2554        .12059E-02   -1.5371    
   4  Prefactor     .10000E-03    5.5007        .21411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9217        2.5775        .92562E-04   -1.5312    
   6  Prefactor     1.3344        2.8455        .18427E-03   -1.5477    
   7  norm          1.1368        1.9592        .17178E-02   -1.5495    
   8  Prefactor     2.6497        7.3798        .12522E-02   -1.5382    
   9  Prefactor     .10000E-03    29.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31273        15.973        .31838E-02   -1.5596    
  13  norm          9.1462        5.1484        .12372E-03   -1.5103    
  14  Prefactor     37.121        56.803        .65736E-04   -1.4489    
  15  Prefactor     .10000E-03    45.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.071        .25276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6779        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.707        .27233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.0324        13.145        .14149E-03   -1.5141    
  20  norm          1.5872        1.7227        .99784E-04   -1.5456    
  21  norm          .10000E-03    6.6738        .24482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    18.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .72438        .62671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.0063        .14730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    33.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.0798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    52.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    32.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.7757        .98002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2083        .22547        .23774E-03   -.86348    
  32  Prefactor     1.0881        .27858        .30769E-03   -.89848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47601e-08
Minuit parameter uncertainties:
  1  41.9807
  2  4.57357
  3  7.25762
  4  9.67926e-05
  5  2.57759
  6  2.84581
  7  1.95928
  8  7.38232
  9  1.8588e-05
  10  1.22641e-07
  11  1.43633e-06
  12  4.47057
  13  5.14861
  14  56.8864
  15  0.000100558
  16  0.000486456
  17  2.28471e-06
  18  0.000270676
  19  13.1498
  20  1.72275
  21  5.56369e-05
  22  6.48329e-06
  23  2.30921e-07
  24  1.96725e-05
  25  2.0266e-06
  26  1.44703e-05
  27  2.42641e-06
  28  1.46689e-05
  29  3.72922e-06
  30  1.04631e-06
  31  0.225651
  32  0.278956
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  9.146e+00  5.149e+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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.088e+00  2.790e-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.208e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.44
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.20e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5699.31478754
delta logL = 0.116632806938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5699.30924101
delta logL = 0.12217933692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9122       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5733       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1113       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.

 FCN=   5699.309     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9170        76.583        .35637E-02    .67097E-04
   2  alpha         2.5729        3.6818        .34211        .36889E-04
   3  Normalizat    1.1798        .10549        .54303E-01    .58825E-05
   4  Prefactor     1.1113        .93024E-01    .68915E-01    .65402E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.91701
  alpha      = 2.57289
  Normalizat = 1.17981
  Prefactor  = 1.1113
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.309     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9170        5.7030        .10663E-03   -1.5145    
   2  alpha         2.5729        .73585        .12150E-01    .29161E-01
   3  Normalizat    1.1798        .23162        .24011E-03   -.87229    
   4  Prefactor     1.1113        .28026        .30489E-03   -.89106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.734e-09
Minuit parameter uncertainties:
  1  5.70337
  2  0.74692
  3  0.231825
  4  0.280633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47877': 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) = 5699.3092406
delta logL = 0.12217973959

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  7.917e+00  5.703e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.573e+00  7.469e-01  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.111e+00  2.806e-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.180e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.68
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.57 +/- 0.75
Photon Flux (Free Index): 7.17e-08 +/- 5.13e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.07e-05

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/47877/cmap_HighResolution_534816001_535075201_4FGL_J1257.8+3228_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='1.99e-05', photon_flux_error='3.01e-08', dlogl='1.22e-01', energy_flux='2.12e-05', photon_flux2='7.17e-08', job_status='DONE', time_completed='2021-09-06 12:26:53.338372', photon_index_error2='0.75', photon_index2='2.57', ts='8.44', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.21', time_epoch_completed='1630956413.34', return_code='0', job_id='47877', GAL2='1.11', EG2='1.18', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.13e-08', ts2='8.68', photon_index='2.22' WHERE bin_id='1140' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:26:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 47877: <4FGL_J1257.8+3228_daily_bin1140> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1140> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:11:01 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:11:02 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:11:02 2021
Terminated at Mon Sep  6 12:26:54 2021
Results reported at Mon Sep  6 12:26:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1140 194.473 32.4721 534816001 535075201 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 :                                   757.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

