/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin277
RA = 194.473, Dec = 32.4721
tmin = 311126401, tmax = 311385601
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='42668', job_status='RUN', time_executed='2021-09-06 11:57:00.265768', time_epoch_executed='1630954620.27' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42668/ft1_4FGL_J1257.8+3228_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42668/ft2_4FGL_J1257.8+3228_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42668/ft1_4FGL_J1257.8+3228_daily_bin277.fits outfile=/scratch/kocevski/42668/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin277.fits ra=194.473 dec=32.4721 rad=12.0 tmin=311126401.0 tmax=311385601.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.51
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42668/ft2_4FGL_J1257.8+3228_daily_bin277.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/42668/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin277.fits evtable="EVENTS" outfile="/scratch/kocevski/42668/ft1_filtered_4FGL_J1257.8+3228_daily_bin277.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.61
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42668/ft1_filtered_4FGL_J1257.8+3228_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/42668/ft2_4FGL_J1257.8+3228_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/42668/ltcube_311126401_311385601_4FGL_J1257.8+3228_daily_bin277.fits outfile=/scratch/kocevski/42668/expmap_311126401_311385601_4FGL_J1257.8+3228_daily_bin277.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/42668/ltcube_311126401_311385601_4FGL_J1257.8+3228_daily_bin277.fits
.....................!
real 190.61
user 185.87
sys 4.40

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/42668/ft1_filtered_4FGL_J1257.8+3228_daily_bin277.fits scfile=/scratch/kocevski/42668/ft2_4FGL_J1257.8+3228_daily_bin277.fits outfile=/scratch/kocevski/42668/cmap_311126401_311385601_4FGL_J1257.8+3228_daily_bin277.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42668/ft1_filtered_4FGL_J1257.8+3228_daily_bin277.fits scfile=/scratch/kocevski/42668/ft2_4FGL_J1257.8+3228_daily_bin277.fits outfile=/scratch/kocevski/42668/cmap_HighResolution_311126401_311385601_4FGL_J1257.8+3228_daily_bin277.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.625       1.0000         .10000E-03   10000.    
     2 'norm      '    12.623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9361       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8465       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.687       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    269.68       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81483       1.0000         .10000E-03   10000.    
    13 'norm      '    12.465       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.519       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-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      '    19.505       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.2892       1.0000         .10000E-03   10000.    
    22 'norm      '    10.765       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4605       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.0916       1.0000         .10000E-03   10000.    
    25 'norm      '    10.360       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3908       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.7599       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .31448       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .83656       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1044       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=   5982.577     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4397 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.624        32.665        .27688E-06   -.70573E-06
   2  norm          12.623        4.0758        .46895E-07   -.44824E-06
   3  Prefactor     4.7673        7.8867        .20487E-06   -.18497E-05
   4  Prefactor     1.4989        1.4655       -.56536E-08   -.12879E-05
   5  Prefactor     1.4456        1.8045        .43561E-07    .40739E-07
   6  Prefactor     4.9361        4.5942        .63393E-07   -.11353E-06
   7  norm          2.8464        3.0606       -.17933E-07   -.14739E-04
   8  Prefactor     29.686        14.054        .96716E-07   -.73958E-05
   9  Prefactor     .10000E-03    12.486       -.15344E-06** at limit **
  10  Prefactor     269.67        118.52        .33185E-06   -.47615E-05
  11  Prefactor     .39795        7.1408        .57091E-06   -.84092E-04
  12  Prefactor     .81560        6.4168        .62839E-06   -.55017E-05
  13  norm          12.465        6.8763        .28782E-07   -.21645E-04
  14  Prefactor     .10000E-03    49.791       -.68670E-06** at limit **
  15  Prefactor     10.520        28.415       -.98146E-07   -.91373E-05
  16  norm          .10000E-03    1.5992        .75846E-08** at limit **
  17  Prefactor     .10000E-03    10.846        .14595E-06** at limit **
  18  norm          .10000E-03    2.5639       -.27013E-08** at limit **
  19  norm          19.504        14.643        .47977E-07   -.35300E-05
  20  norm          .10000E-03    1.4143        .82581E-07** at limit **
  21  norm          5.2890        4.0284       -.42035E-07   -.22121E-04
  22  norm          10.766        25.136        .21814E-06   -.72812E-05
  23  Prefactor     2.4604        3.0575       -.18418E-06   -.10243E-04
  24  Prefactor     2.0923        20.747        .53249E-05   -.24519E-04
  25  norm          10.359        8.8743        .10097E-06   -.15609E-04
  26  Prefactor     .10000E-03    19.363        .23611E-06** at limit **
  27  Prefactor     .10000E-03    6.6575        .76798E-07** at limit **
  28  Prefactor     3.3895        20.029        .49466E-06   -.73202E-05
  29  Prefactor     5.6734        142.42        .24530E-04    .10237E-04
  30  Prefactor     .31301        3.3285        .63480E-06   -.24412E-03
  31  Normalizat    .83668        .17906       -.47375E-06   -.82223E-04
  32  Prefactor     1.1043        .21378       -.84562E-06   -.71588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6242
  norm       = 12.623
  Prefactor  = 4.76734
  Prefactor  = 1.49895
  Prefactor  = 1.44562
  Prefactor  = 4.93612
  norm       = 2.84644
  Prefactor  = 29.6863
  Prefactor  = 0.0001
  Prefactor  = 269.672
  Prefactor  = 0.397946
  Prefactor  = 0.815597
  norm       = 12.465
  Prefactor  = 0.0001
  Prefactor  = 10.5198
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.5041
  norm       = 0.0001
  norm       = 5.28895
  norm       = 10.7655
  Prefactor  = 2.46036
  Prefactor  = 2.09227
  norm       = 10.3591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38947
  Prefactor  = 5.67337
  Prefactor  = 0.313007
  Normalizat = 0.836675
  Prefactor  = 1.10427
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.577     FROM HESSE     STATUS=OK           675 CALLS     5072 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.624        32.650        .79134E-04   -1.4695    
   2  norm          12.623        4.0643        .83931E-04   -1.4997    
   3  Prefactor     4.7673        7.8730        .18427E-03   -1.5271    
   4  Prefactor     1.4989        1.4855        .88977E-04   -1.5463    
   5  Prefactor     1.4456        1.7796        .11061E-03   -1.5467    
   6  Prefactor     4.9361        4.5950        .15514E-03   -1.5264    
   7  norm          2.8464        3.0595        .13577E-03   -1.5371    
   8  Prefactor     29.686        14.030        .73534E-04   -1.4618    
   9  Prefactor     .10000E-03    12.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     269.67        118.53        .24693E-04   -1.2409    
  11  Prefactor     .39795        35.788        .38856E-02   -1.5582    
  12  Prefactor     .81560        6.3407        .37461E-03   -1.5527    
  13  norm          12.465        6.8633        .11346E-03   -1.5002    
  14  Prefactor     .10000E-03    49.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.520        28.295        .12354E-03   -1.5059    
  16  norm          .10000E-03    1.6107        .95459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5824        .12085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.504        14.646        .90690E-04   -1.4824    
  20  norm          .10000E-03    1.4186        .89532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.2890        4.0194        .13110E-03   -1.5248    
  22  norm          10.766        25.115        .12211E-03   -1.5052    
  23  Prefactor     2.4604        3.0504        .13328E-03   -1.5394    
  24  Prefactor     2.0923        21.021        .14272E-02   -1.5419    
  25  norm          10.359        8.8548        .12449E-03   -1.5064    
  26  Prefactor     .10000E-03    19.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.6664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.3895        19.972        .21972E-03   -1.5340    
  29  Prefactor     5.6734        142.92        .16735E-03   -1.5232    
  30  Prefactor     .31301        8.0053        .26768E-02   -1.5596    
  31  Normalizat    .83668        .20927        .26739E-03   -.98722    
  32  Prefactor     1.1043        .25299        .28396E-03   -.89330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9125e-08
Minuit parameter uncertainties:
  1  32.6723
  2  4.0644
  3  7.87473
  4  1.48551
  5  1.77962
  6  4.59529
  7  3.05967
  8  14.032
  9  1.13057e-07
  10  118.634
  11  7.55134
  12  4.54854
  13  6.86376
  14  1.86394e-05
  15  28.3307
  16  4.29419e-07
  17  2.52692e-06
  18  2.58197e-06
  19  14.6487
  20  1.2118e-06
  21  4.01957
  22  25.1397
  23  3.05056
  24  13.2696
  25  8.8559
  26  6.1889e-06
  27  1.79962e-07
  28  16.4635
  29  57.103
  30  3.16586
  31  0.209477
  32  0.253261
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.247e+01  6.864e+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.104e+00  2.533e-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:  8.367e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.66
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 7.30e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 1.59e-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) = 5982.57317839
delta logL = 0.00387325360043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5982.57239628
delta logL = 0.00465536699721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.707       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1735       1.0000          .0000       5.0000    
     3 'Normalizat'    .83922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1021       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=   5982.572     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.707        6.8412        .11237E-03   -.23765E-03
   2  alpha         2.1735        .47177        .11890E-01   -.34993E-04
   3  Normalizat    .83944        .20533        .26700E-03    .24483E-04
   4  Prefactor     1.1019        .24640        .28422E-03    .27440E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7068
  alpha      = 2.1735
  Normalizat = 0.839438
  Prefactor  = 1.10193
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.572     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.707        6.7705        .44949E-05   -1.4995    
   2  alpha         2.1735        .46674        .47562E-03   -.13097    
   3  Normalizat    .83944        .20546        .10680E-04   -.98622    
   4  Prefactor     1.1019        .24659        .11369E-04   -.89405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2916e-11
Minuit parameter uncertainties:
  1  6.77086
  2  0.469543
  3  0.205655
  4  0.246841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42668': 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) = 5982.57239556
delta logL = 0.00465608476952

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.271e+01  6.771e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.174e+00  4.695e-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.102e+00  2.468e-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:  8.394e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.74
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.17 +/- 0.47
Photon Flux (Free Index): 7.07e-08 +/- 4.26e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.71e-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/42668/cmap_HighResolution_311126401_311385601_4FGL_J1257.8+3228_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.30e-08', energy_flux2='2.97e-05', photon_flux_error='4.02e-08', dlogl='4.66e-03', energy_flux='2.90e-05', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-09-06 12:09:50.299384', photon_index_error2='0.47', photon_index2='2.17', ts='9.66', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.84', time_epoch_completed='1630955390.3', return_code='0', job_id='42668', GAL2='1.10', EG2='0.84', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.26e-08', ts2='9.74', photon_index='2.22' WHERE bin_id='277' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:09:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 42668: <4FGL_J1257.8+3228_daily_bin277> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin277> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:56:04 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:56:05 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:05 2021
Terminated at Mon Sep  6 12:09:51 2021
Results reported at Mon Sep  6 12:09:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin277 194.473 32.4721 311126401 311385601 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 :                                   763.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

