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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin154
RA = 194.473, Dec = 32.4721
tmin = 279244801, tmax = 279504001
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='42459', job_status='RUN', time_executed='2021-09-06 11:56:39.853837', time_epoch_executed='1630954599.85' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42459/ft1_4FGL_J1257.8+3228_daily_bin154.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42459/ft2_4FGL_J1257.8+3228_daily_bin154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42459/ft1_4FGL_J1257.8+3228_daily_bin154.fits outfile=/scratch/kocevski/42459/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin154.fits ra=194.473 dec=32.4721 rad=12.0 tmin=279244801.0 tmax=279504001.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.03
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42459/ft1_filtered_4FGL_J1257.8+3228_daily_bin154.fits" evtable="EVENTS" scfile=/scratch/kocevski/42459/ft2_4FGL_J1257.8+3228_daily_bin154.fits sctable="SC_DATA" outfile=/scratch/kocevski/42459/ltcube_279244801_279504001_4FGL_J1257.8+3228_daily_bin154.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/42459/ft2_4FGL_J1257.8+3228_daily_bin154.fits
.....................!
real 12.79
user 11.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42459/ft1_filtered_4FGL_J1257.8+3228_daily_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/42459/ft2_4FGL_J1257.8+3228_daily_bin154.fits sctable="SC_DATA" expcube=/scratch/kocevski/42459/ltcube_279244801_279504001_4FGL_J1257.8+3228_daily_bin154.fits outfile=/scratch/kocevski/42459/expmap_279244801_279504001_4FGL_J1257.8+3228_daily_bin154.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/42459/ltcube_279244801_279504001_4FGL_J1257.8+3228_daily_bin154.fits
.....................!
real 193.64
user 186.93
sys 5.07

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/42459/ft1_filtered_4FGL_J1257.8+3228_daily_bin154.fits scfile=/scratch/kocevski/42459/ft2_4FGL_J1257.8+3228_daily_bin154.fits outfile=/scratch/kocevski/42459/cmap_279244801_279504001_4FGL_J1257.8+3228_daily_bin154.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42459/ft1_filtered_4FGL_J1257.8+3228_daily_bin154.fits scfile=/scratch/kocevski/42459/ft2_4FGL_J1257.8+3228_daily_bin154.fits outfile=/scratch/kocevski/42459/cmap_HighResolution_279244801_279504001_4FGL_J1257.8+3228_daily_bin154.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.7757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8638       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2931       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9336       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8077       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80522       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.453       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.834       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.6837       1.0000         .10000E-03   10000.    
    22 'norm      '    10.940       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8150       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6983       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.963       1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.580       1.0000         .10000E-03   10000.    
    29 'Prefactor '    116.74       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.6089       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .76004       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=   6068.964     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4343 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.467        .62984E-06** at limit **
   2  norm          8.7757        3.9051       -.23868E-07   -.45367E-04
   3  Prefactor     .10000E-03    20.900        .51441E-06** at limit **
   4  Prefactor     .10000E-03    1.0736        .65838E-07** at limit **
   5  Prefactor     5.8636        2.9533        .57267E-08   -.11980E-03
   6  Prefactor     2.2936        4.3989        .31178E-05   -.16517E-04
   7  norm          1.9331        3.2399       -.43856E-06    .86661E-05
   8  Prefactor     7.8069        9.4983        .68335E-07   -.17282E-04
   9  Prefactor     .10000E-03    7.2942       -.21870E-06** at limit **
  10  Prefactor     .10000E-03    50.940       -.26556E-06** at limit **
  11  Prefactor     .78451        4.8635       -.26989E-06   -.47946E-04
  12  Prefactor     .10000E-03    2.7720        .56341E-07** at limit **
  13  norm          .10000E-03    2.9799        .10157E-06** at limit **
  14  Prefactor     76.446        68.440        .58762E-06   -.34372E-04
  15  Prefactor     .10000E-03    15.367        .24781E-06** at limit **
  16  norm          16.848        5.7782       -.57252E-07   -.92504E-04
  17  Prefactor     .10000E-03    12.011       -.10312E-06** at limit **
  18  norm          .10000E-03    1.4466        .55423E-09** at limit **
  19  norm          13.833        13.083        .92727E-08   -.53617E-05
  20  norm          .10000E-03    2.6670        .61610E-07** at limit **
  21  norm          8.6836        6.2766       -.72138E-08   -.52313E-04
  22  norm          10.939        11.019       -.12979E-06   -.53415E-05
  23  Prefactor     2.8144        3.0592        .15145E-07   -.20248E-03
  24  Prefactor     .10000E-03    7.4099        .16310E-06** at limit **
  25  norm          4.6976        7.6376        .19177E-05   -.27102E-04
  26  Prefactor     .10000E-03    23.052       -.33603E-06** at limit **
  27  Prefactor     24.958        21.165        .10111E-06   -.64166E-04
  28  Prefactor     21.578        22.560        .84209E-07   -.20767E-04
  29  Prefactor     116.71        80.160        .15100E-05   -.12926E-03
  30  Prefactor     1.6087        4.3985        .35378E-06   -.35076E-04
  31  Normalizat    1.3029        .18665        .90686E-06   -.74351E-04
  32  Prefactor     .75984        .21681       -.26583E-05   -.14896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.7757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.86357
  Prefactor  = 2.29364
  norm       = 1.93306
  Prefactor  = 7.80692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.784507
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 76.4457
  Prefactor  = 0.0001
  norm       = 16.8477
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.8333
  norm       = 0.0001
  norm       = 8.68357
  norm       = 10.9395
  Prefactor  = 2.81441
  Prefactor  = 0.0001
  norm       = 4.69759
  Prefactor  = 0.0001
  Prefactor  = 24.9577
  Prefactor  = 21.5785
  Prefactor  = 116.708
  Prefactor  = 1.60873
  Normalizat = 1.30295
  Prefactor  = 0.75984
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.964     FROM HESSE     STATUS=OK           661 CALLS     5004 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.7757        3.8998        .96713E-04   -1.5115    
   3  Prefactor     .10000E-03    21.750        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0786        .78686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8636        2.9511        .88854E-04   -1.5224    
   6  Prefactor     2.2936        4.4091        .10852E-02   -1.5405    
   7  norm          1.9331        3.2141        .17229E-03   -1.5430    
   8  Prefactor     7.8069        9.4908        .14351E-03   -1.5149    
   9  Prefactor     .10000E-03    7.2996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .78451        20.307        .32365E-02   -1.5531    
  12  Prefactor     .10000E-03    2.7916        .12666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0312        .13129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     76.446        68.473        .45924E-04   -1.3957    
  15  Prefactor     .10000E-03    15.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.848        5.7679        .97577E-04   -1.4887    
  17  Prefactor     .10000E-03    12.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4482        .91497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.833        13.083        .10769E-03   -1.4964    
  20  norm          .10000E-03    2.6901        .12377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.6836        6.2566        .13603E-03   -1.5119    
  22  norm          10.939        11.020        .12113E-03   -1.5046    
  23  Prefactor     2.8144        3.0486        .13566E-03   -1.5372    
  24  Prefactor     .10000E-03    7.4242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6976        7.6354        .92826E-03   -1.5274    
  26  Prefactor     .10000E-03    23.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.958        21.170        .80175E-04   -1.4708    
  28  Prefactor     21.578        22.555        .86222E-04   -1.4779    
  29  Prefactor     116.71        80.633        .18620E-03   -1.3543    
  30  Prefactor     1.6087        4.3758        .25976E-03   -1.5454    
  31  Normalizat    1.3029        .21880        .23776E-03   -.83478    
  32  Prefactor     .75984        .25260        .34893E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74374e-08
Minuit parameter uncertainties:
  1  4.89763e-05
  2  3.8999
  3  8.79256e-05
  4  3.39666e-06
  5  2.95114
  6  4.4097
  7  3.21441
  8  9.4926
  9  3.64951e-05
  10  0.000177867
  11  7.98526
  12  5.00106e-06
  13  8.83064e-06
  14  68.5439
  15  2.06999e-05
  16  5.7681
  17  3.92455e-05
  18  8.23435e-08
  19  13.0858
  20  6.76705e-06
  21  6.25707
  22  11.0216
  23  3.04881
  24  4.74054e-05
  25  7.63698
  26  2.89794e-05
  27  21.1762
  28  22.5643
  29  80.7092
  30  4.37667
  31  0.218953
  32  0.252986
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  8.831e-06  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.598e-01  2.530e-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.303e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 5.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/42459/likelihoodResults_279244801_279504001_4FGL_J1257.8+3228_daily_bin154.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6068.96520815
delta logL = -0.00156733537187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6068.70274397
delta logL = 0.260896849958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10673       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80085       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=   6068.703     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      340 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10685        .16290        .35231E-04    .58730E-04
   2  alpha         5.0000        3.9076        .99481E-01** at limit **
   3  Normalizat    1.2463        .22700        .24238E-03   -.67213E-04
   4  Prefactor     .80089        .25373        .34085E-03   -.13842E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.106852
  alpha      = 5
  Normalizat = 1.24631
  Prefactor  = 0.800893
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.703     FROM HESSE     STATUS=OK            25 CALLS      365 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10685        .16026        .14092E-05   -1.5643    
   2  alpha         5.0000        3.9102        .39792E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2463        .22717        .96954E-05   -.85184    
   4  Prefactor     .80089        .25395        .13634E-04   -.99695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82923e-11
Minuit parameter uncertainties:
  1  0.160259
  2  1.58013e-05
  3  0.227352
  4  0.25432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42459': 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) = 6068.70274352
delta logL = 0.260897297941

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.069e-01  1.603e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  1.580e-05  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:  8.009e-01  2.543e-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.246e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.473 32.472

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/42459/cmap_HighResolution_279244801_279504001_4FGL_J1257.8+3228_daily_bin154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-06 12:11:39.081706', job_id='42459', GAL2='0.80', fit_tolerance='1e-08', EG2='1.25', EG='1.30', time_epoch_completed='1630955499.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.61e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='154' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:11:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 42459: <4FGL_J1257.8+3228_daily_bin154> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin154 194.473 32.4721 279244801 279504001 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 :                                   886.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

