/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 3 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin284
RA = 194.473, Dec = 32.4721
tmin = 312940801, tmax = 313200001
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='42681', job_status='RUN', time_executed='2021-09-06 11:56:43.742150', time_epoch_executed='1630954603.74' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42681

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42681/ft1_4FGL_J1257.8+3228_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42681/ft2_4FGL_J1257.8+3228_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42681/ft1_4FGL_J1257.8+3228_daily_bin284.fits outfile=/scratch/kocevski/42681/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin284.fits ra=194.473 dec=32.4721 rad=12.0 tmin=312940801.0 tmax=313200001.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.31
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42681/ft1_filtered_4FGL_J1257.8+3228_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/42681/ft2_4FGL_J1257.8+3228_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/42681/ltcube_312940801_313200001_4FGL_J1257.8+3228_daily_bin284.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/42681/ft2_4FGL_J1257.8+3228_daily_bin284.fits
.....................!
real 12.48
user 11.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42681/ft1_filtered_4FGL_J1257.8+3228_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/42681/ft2_4FGL_J1257.8+3228_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/42681/ltcube_312940801_313200001_4FGL_J1257.8+3228_daily_bin284.fits outfile=/scratch/kocevski/42681/expmap_312940801_313200001_4FGL_J1257.8+3228_daily_bin284.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/42681/ltcube_312940801_313200001_4FGL_J1257.8+3228_daily_bin284.fits
.....................!
real 191.91
user 185.30
sys 5.16

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/42681/ft1_filtered_4FGL_J1257.8+3228_daily_bin284.fits scfile=/scratch/kocevski/42681/ft2_4FGL_J1257.8+3228_daily_bin284.fits outfile=/scratch/kocevski/42681/cmap_312940801_313200001_4FGL_J1257.8+3228_daily_bin284.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42681/ft1_filtered_4FGL_J1257.8+3228_daily_bin284.fits scfile=/scratch/kocevski/42681/ft2_4FGL_J1257.8+3228_daily_bin284.fits outfile=/scratch/kocevski/42681/cmap_HighResolution_312940801_313200001_4FGL_J1257.8+3228_daily_bin284.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.5591       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4478       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8030       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.933       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26346E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.469       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9960       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12966E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10408E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.1090       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2758       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
    25 'norm      '    5.4889       1.0000         .10000E-03   10000.    
    26 'Prefactor '    70.652       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.586       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2588       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .62890       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=   6059.472     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4292 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.691       -.43953E-06** at limit **
   2  norm          9.5594        3.6368       -.29695E-08   -.18686E-04
   3  Prefactor     .10000E-03    1.7774       -.16404E-08** at limit **
   4  Prefactor     3.4481        2.2219       -.74468E-07   -.74734E-05
   5  Prefactor     3.0463        2.2402       -.72736E-07   -.26471E-04
   6  Prefactor     .10000E-03    3.6049        .58882E-08** at limit **
   7  norm          10.743        6.6444        .44910E-07   -.13493E-04
   8  Prefactor     6.8039        10.760        .31523E-05   -.11300E-04
   9  Prefactor     10.934        10.749       -.70595E-06    .10099E-04
  10  Prefactor     .10001E-03    1341.5       -.21694E-04** at limit **
  11  Prefactor     11.467        8.5482        .17157E-06   -.12710E-04
  12  Prefactor     4.9961        4.3770        .83209E-07    .10351E-04
  13  norm          8.2666        5.4982       -.19253E-05    .11679E-03
  14  Prefactor     .10000E-03    24.852        .20695E-06** at limit **
  15  Prefactor     .10000E-03    22.599        .36475E-06** at limit **
  16  norm          .10000E-03    4.7266       -.22398E-06** at limit **
  17  Prefactor     .10000E-03    4.2087        .97210E-07** at limit **
  18  norm          .10000E-03    1.2329        .53750E-07** at limit **
  19  norm          .10000E-03    7.4148        .50756E-07** at limit **
  20  norm          .10000E-03    1.0495        .64879E-07** at limit **
  21  norm          .10000E-03    2.6906        .81068E-07** at limit **
  22  norm          9.1018        21.733        .33499E-06   -.15457E-04
  23  Prefactor     3.2761        3.0692        .21530E-06    .68411E-05
  24  Prefactor     12.929        12.391        .78455E-07   -.16309E-04
  25  norm          5.4915        7.4929        .37458E-06   -.17615E-05
  26  Prefactor     70.710        52.357        .92496E-06    .14525E-03
  27  Prefactor     .10000E-03    4.4470        .59104E-07** at limit **
  28  Prefactor     13.588        13.248        .19996E-06   -.96794E-05
  29  Prefactor     .10000E-03    44.330        .64529E-06** at limit **
  30  Prefactor     .10000E-03    2.6140        .94014E-07** at limit **
  31  Normalizat    1.2586        .17257       -.22937E-05    .58632E-04
  32  Prefactor     .62905        .20372        .94588E-07   -.52564E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.55942
  Prefactor  = 0.0001
  Prefactor  = 3.44808
  Prefactor  = 3.04634
  Prefactor  = 0.0001
  norm       = 10.7425
  Prefactor  = 6.80395
  Prefactor  = 10.9335
  Prefactor  = 0.000100011
  Prefactor  = 11.4671
  Prefactor  = 4.99608
  norm       = 8.26658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.10176
  Prefactor  = 3.27613
  Prefactor  = 12.9295
  norm       = 5.49147
  Prefactor  = 70.7104
  Prefactor  = 0.0001
  Prefactor  = 13.5878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25857
  Prefactor  = 0.629047
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.472     FROM HESSE     STATUS=OK           655 CALLS     4947 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.5594        3.6369        .85659E-04   -1.5090    
   3  Prefactor     .10000E-03    1.7800        .10135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4481        2.2242        .87778E-04   -1.5337    
   5  Prefactor     3.0463        2.2329        .94356E-04   -1.5359    
   6  Prefactor     .10000E-03    3.6121        .14425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.743        6.6347        .12226E-03   -1.5052    
   8  Prefactor     6.8039        10.782        .76916E-03   -1.5186    
   9  Prefactor     10.934        10.752        .60583E-03   -1.5047    
  10  Prefactor     .10001E-03    1340.3        .39930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.467        8.5445        .11829E-03   -1.5031    
  12  Prefactor     4.9961        4.3770        .14783E-03   -1.5261    
  13  norm          8.2666        5.5003        .13938E-03   -1.5133    
  14  Prefactor     .10000E-03    24.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.8878        .32961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2138        .15596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2348        .84412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.4387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0635        .77847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7526        .12467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.1018        21.670        .13280E-03   -1.5104    
  23  Prefactor     3.2761        3.0574        .11815E-03   -1.5346    
  24  Prefactor     12.929        12.374        .11140E-03   -1.4989    
  25  norm          5.4915        7.4718        .17150E-03   -1.5239    
  26  Prefactor     70.710        52.483        .23879E-03   -1.4024    
  27  Prefactor     .10000E-03    4.4531        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.588        13.253        .10867E-03   -1.4971    
  29  Prefactor     .10000E-03    44.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.6605        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2586        .19958        .21348E-03   -.84812    
  32  Prefactor     .62905        .23470        .35119E-03   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29848e-10
Minuit parameter uncertainties:
  1  1.78937e-05
  2  3.63699
  3  2.47445e-06
  4  2.22425
  5  2.23299
  6  1.89143e-06
  7  6.63516
  8  10.7855
  9  10.7538
  10  0.00785456
  11  8.54542
  12  4.37729
  13  5.50067
  14  0.00010026
  15  0.000202939
  16  2.77007e-05
  17  1.53829e-05
  18  3.14893e-06
  19  1.37413e-05
  20  8.03406e-06
  21  1.38063e-05
  22  21.6883
  23  3.05755
  24  12.3767
  25  7.47304
  26  52.5169
  27  8.69829e-06
  28  13.2562
  29  0.000217773
  30  8.70455e-06
  31  0.199702
  32  0.235063
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  8.267e+00  5.501e+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:  6.290e-01  2.351e-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.259e+00  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/42681/likelihoodResults_312940801_313200001_4FGL_J1257.8+3228_daily_bin284.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): 0
logL (Free Index) = 6058.11044592
delta logL = 1.36161207389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6058.10367594
delta logL = 1.36838205254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7947       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68412       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=   6058.104     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      243 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7942        38.702        .45933E-02    .27866E-03
   2  alpha         3.1873        4.0386        .22984        .59528E-04
   3  Normalizat    1.1842        .75524E-01    .35291E-01    .30506E-05
   4  Prefactor     .68413        .84553E-01    .76252E-01    .24385E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.7942
  alpha      = 3.18732
  Normalizat = 1.18421
  Prefactor  = 0.684131
 **********
 **   18 **HESSE 
 **********

 FCN=   6058.104     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7942        4.5687        .76831E-04   -1.5270    
   2  alpha         3.1873        .66306        .95401E-02    .27852    
   3  Normalizat    1.1842        .20091        .21868E-03   -.87092    
   4  Prefactor     .68413        .23626        .33757E-03   -1.0415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41687e-09
Minuit parameter uncertainties:
  1  4.56902
  2  0.671774
  3  0.201037
  4  0.236605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42681': 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) = 6058.10367592
delta logL = 1.36838207256

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  4.794e+00  4.569e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.187e+00  6.718e-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:  6.841e-01  2.366e-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.184e+00  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 194.473 32.472
Photon Index (Free Index): 3.19 +/- 0.67
Photon Flux (Free Index): 1.04e-07 +/- 5.41e-08
Energy Flux (Free Index): 2.03e-05 +/- 9.96e-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/42681/cmap_HighResolution_312940801_313200001_4FGL_J1257.8+3228_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-05', comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='2.03e-05', photon_flux_error='3.22e-08', dlogl='1.37e+00', energy_flux='1.92e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-06 12:11:48.411766', photon_index_error2='0.67', photon_index2='3.19', ts='3.74', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='9.96e-06', EG='1.26', time_epoch_completed='1630955508.41', return_code='0', job_id='42681', GAL2='0.68', EG2='1.18', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='5.41e-08', ts2='6.59', photon_index='2.22' WHERE bin_id='284' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:11:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 42681: <4FGL_J1257.8+3228_daily_bin284> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin284> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:56:05 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:56:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:56:06 2021
Terminated at Mon Sep  6 12:11:49 2021
Results reported at Mon Sep  6 12:11:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin284 194.473 32.4721 312940801 313200001 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 :                                   890.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

