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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1050
RA = 194.473, Dec = 32.4721
tmin = 511488001, tmax = 511747201
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='47761', job_status='RUN', time_executed='2021-09-06 12:13:09.483796', time_epoch_executed='1630955589.48' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47761/ft1_4FGL_J1257.8+3228_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47761/ft2_4FGL_J1257.8+3228_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47761/ft1_4FGL_J1257.8+3228_daily_bin1050.fits outfile=/scratch/kocevski/47761/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1050.fits ra=194.473 dec=32.4721 rad=12.0 tmin=511488001.0 tmax=511747201.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.50
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47761/ft2_4FGL_J1257.8+3228_daily_bin1050.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/47761/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1050.fits evtable="EVENTS" outfile="/scratch/kocevski/47761/ft1_filtered_4FGL_J1257.8+3228_daily_bin1050.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.52
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47761/ft1_filtered_4FGL_J1257.8+3228_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/47761/ft2_4FGL_J1257.8+3228_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/47761/ltcube_511488001_511747201_4FGL_J1257.8+3228_daily_bin1050.fits outfile=/scratch/kocevski/47761/expmap_511488001_511747201_4FGL_J1257.8+3228_daily_bin1050.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/47761/ltcube_511488001_511747201_4FGL_J1257.8+3228_daily_bin1050.fits
.....................!
real 190.87
user 185.14
sys 4.52

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/47761/ft1_filtered_4FGL_J1257.8+3228_daily_bin1050.fits scfile=/scratch/kocevski/47761/ft2_4FGL_J1257.8+3228_daily_bin1050.fits outfile=/scratch/kocevski/47761/cmap_511488001_511747201_4FGL_J1257.8+3228_daily_bin1050.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.82
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47761/ft1_filtered_4FGL_J1257.8+3228_daily_bin1050.fits scfile=/scratch/kocevski/47761/ft2_4FGL_J1257.8+3228_daily_bin1050.fits outfile=/scratch/kocevski/47761/cmap_HighResolution_511488001_511747201_4FGL_J1257.8+3228_daily_bin1050.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 1.62
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.256       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94117       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .97708       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6660       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5488       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.3344       1.0000         .10000E-03   10000.    
    20 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.402       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0863       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.047       1.0000         .10000E-03   10000.    
    25 'norm      '    7.9330       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.633       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    93.431       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0069       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77629       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=   5933.442     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4334 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.822        .19191E-06** at limit **
   2  norm          17.256        4.3108       -.87716E-08   -.13446E-04
   3  Prefactor     3.4503        6.9390        .46226E-06   -.76217E-04
   4  Prefactor     .94217        1.6770        .15004E-06    .15694E-03
   5  Prefactor     1.5823        1.6856        .52489E-07   -.88897E-04
   6  Prefactor     .10000E-03    1.4629        .73914E-08** at limit **
   7  norm          11.596        4.6329        .80738E-08   -.27671E-04
   8  Prefactor     10.824        7.4995        .13019E-07   -.52583E-05
   9  Prefactor     .10000E-03    7.2638       -.61384E-08** at limit **
  10  Prefactor     34.541        67.409        .18419E-05    .38604E-04
  11  Prefactor     .97582        5.3504        .16722E-05   -.24735E-03
  12  Prefactor     1.6665        3.3732       -.13208E-06   -.37301E-03
  13  norm          6.5493        4.7988       -.59803E-07   -.10812E-03
  14  Prefactor     22.790        44.347        .68189E-06    .19810E-04
  15  Prefactor     .10000E-03    16.962       -.19431E-06** at limit **
  16  norm          .10000E-03    1.7861       -.38981E-07** at limit **
  17  Prefactor     .10000E-03    3.6752       -.12849E-06** at limit **
  18  norm          .10000E-03    1.3307       -.15149E-07** at limit **
  19  norm          8.3342        9.3847        .19162E-06   -.58517E-04
  20  norm          .10000E-03    1.9582        .53556E-08** at limit **
  21  norm          .10000E-03    3.1744        .13301E-07** at limit **
  22  norm          14.401        20.034       -.32847E-06   -.32324E-04
  23  Prefactor     6.0870        3.9106        .13389E-06    .91204E-04
  24  Prefactor     13.048        14.117        .25370E-07    .12964E-04
  25  norm          7.9341        7.1772        .10269E-05   -.48257E-03
  26  Prefactor     .10000E-03    48.003        .69096E-07** at limit **
  27  Prefactor     28.636        17.091        .19706E-06    .11194E-04
  28  Prefactor     .10000E-03    10.952        .69647E-07** at limit **
  29  Prefactor     93.445        66.128        .33564E-05    .22941E-03
  30  Prefactor     .10000E-03    3.6131        .13211E-06** at limit **
  31  Normalizat    1.0065        .16540       -.10374E-05    .73943E-05
  32  Prefactor     .77672        .19051        .18277E-06   -.68729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 17.2558
  Prefactor  = 3.45026
  Prefactor  = 0.942172
  Prefactor  = 1.58228
  Prefactor  = 0.0001
  norm       = 11.5957
  Prefactor  = 10.8237
  Prefactor  = 0.0001
  Prefactor  = 34.5407
  Prefactor  = 0.975823
  Prefactor  = 1.66649
  norm       = 6.54933
  Prefactor  = 22.79
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.33418
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.4007
  Prefactor  = 6.08705
  Prefactor  = 13.0484
  norm       = 7.93406
  Prefactor  = 0.0001
  Prefactor  = 28.6356
  Prefactor  = 0.0001
  Prefactor  = 93.4454
  Prefactor  = 0.0001
  Normalizat = 1.00654
  Prefactor  = 0.776722
 **********
 **   18 **HESSE 
 **********

 FCN=   5933.442     FROM HESSE     STATUS=OK           663 CALLS     4997 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.256        4.2556        .73844E-04   -1.4877    
   3  Prefactor     3.4503        6.9416        .21775E-03   -1.5336    
   4  Prefactor     .94217        1.3787        .12547E-02   -1.5514    
   5  Prefactor     1.5823        1.6670        .98284E-04   -1.5456    
   6  Prefactor     .10000E-03    1.4645        .90985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.596        4.6320        .10171E-03   -1.5027    
   8  Prefactor     10.824        7.4955        .12178E-03   -1.5050    
   9  Prefactor     .10000E-03    7.2744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.541        67.771        .68190E-04   -1.4532    
  11  Prefactor     .97582        5.6947        .35410E-03   -1.5510    
  12  Prefactor     1.6665        3.4165        .19952E-03   -1.5450    
  13  norm          6.5493        4.8034        .13325E-03   -1.5196    
  14  Prefactor     22.790        44.392        .83908E-04   -1.4753    
  15  Prefactor     .10000E-03    17.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8011        .10048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6794        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3329        .86759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.3342        9.3941        .69432E-03   -1.5131    
  20  norm          .10000E-03    2.0388        .21008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.2598        .26786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.401        20.029        .10554E-03   -1.4949    
  23  Prefactor     6.0870        3.9160        .10368E-03   -1.5214    
  24  Prefactor     13.048        14.135        .11089E-03   -1.4985    
  25  norm          7.9341        7.3877        .71179E-03   -1.5145    
  26  Prefactor     .10000E-03    48.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     28.636        17.121        .74871E-04   -1.4637    
  28  Prefactor     .10000E-03    10.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     93.445        70.155        .41578E-04   -1.3772    
  30  Prefactor     .10000E-03    3.7794        .28589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0065        .19226        .22334E-03   -.92812    
  32  Prefactor     .77672        .22164        .30524E-03   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26733e-10
Minuit parameter uncertainties:
  1  4.57387e-05
  2  4.25572
  3  6.9432
  4  1.37877
  5  1.66701
  6  7.10889e-07
  7  4.63214
  8  7.49611
  9  5.36123e-06
  10  67.9229
  11  4.71509
  12  3.41688
  13  4.80369
  14  44.4564
  15  1.46499e-05
  16  2.82846e-07
  17  7.31408e-06
  18  1.83409e-07
  19  9.39581
  20  1.18804e-06
  21  1.83328e-06
  22  20.038
  23  3.91621
  24  14.1383
  25  7.3885
  26  1.67888e-05
  27  17.1235
  28  9.79516e-06
  29  70.2171
  30  9.27468e-06
  31  0.192388
  32  0.221895
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.549e+00  4.804e+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:  7.767e-01  2.219e-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.007e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.61
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.12e-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) = 5933.36981183
delta logL = 0.0723319040062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5933.36404936
delta logL = 0.0780943679965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1905       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5161       1.0000          .0000       5.0000    
     3 'Normalizat'    .98883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78863       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=   5933.364     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1894        92.428        .40337E-02    .20970E-03
   2  alpha         2.5175        3.2223        .30381        .54594E-04
   3  Normalizat    .98880        .10214        .46027E-01   -.21071E-04
   4  Prefactor     .78861        .82663E-01    .68504E-01   -.29002E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.18943
  alpha      = 2.51749
  Normalizat = 0.988804
  Prefactor  = 0.788605
 **********
 **   18 **HESSE 
 **********

 FCN=   5933.364     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1894        4.5596        .11691E-03   -1.5210    
   2  alpha         2.5175        .74494        .15268E-01    .69964E-02
   3  Normalizat    .98880        .18694        .22504E-03   -.93406    
   4  Prefactor     .78861        .22161        .30309E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12825e-11
Minuit parameter uncertainties:
  1  4.55983
  2  0.756434
  3  0.187065
  4  0.221861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47761': 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) = 5933.36404723
delta logL = 0.0780965017475

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.189e+00  4.560e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.517e+00  7.564e-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:  7.886e-01  2.219e-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:  9.888e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.52 +/- 0.76
Photon Flux (Free Index): 5.21e-08 +/- 4.62e-08
Energy Flux (Free Index): 1.52e-05 +/- 9.73e-06

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/47761/cmap_HighResolution_511488001_511747201_4FGL_J1257.8+3228_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='1.52e-05', photon_flux_error='2.81e-08', dlogl='7.81e-02', energy_flux='1.52e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-06 12:26:13.011626', photon_index_error2='0.76', photon_index2='2.52', ts='5.61', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='9.73e-06', EG='1.01', time_epoch_completed='1630956373.01', return_code='0', job_id='47761', GAL2='0.79', EG2='0.99', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.62e-08', ts2='5.75', photon_index='2.22' WHERE bin_id='1050' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 47761: <4FGL_J1257.8+3228_daily_bin1050> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1050 194.473 32.4721 511488001 511747201 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 :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

