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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin809
RA = 194.473, Dec = 32.4721
tmin = 449020801, tmax = 449280001
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='46184', job_status='RUN', time_executed='2021-09-06 12:06:34.034238', time_epoch_executed='1630955194.03' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46184/ft1_4FGL_J1257.8+3228_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46184/ft2_4FGL_J1257.8+3228_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46184/ft1_4FGL_J1257.8+3228_daily_bin809.fits outfile=/scratch/kocevski/46184/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin809.fits ra=194.473 dec=32.4721 rad=12.0 tmin=449020801.0 tmax=449280001.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 5.57
user 5.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46184/ft1_filtered_4FGL_J1257.8+3228_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/46184/ft2_4FGL_J1257.8+3228_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/46184/ltcube_449020801_449280001_4FGL_J1257.8+3228_daily_bin809.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/46184/ft2_4FGL_J1257.8+3228_daily_bin809.fits
.....................!
real 12.53
user 12.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46184/ft1_filtered_4FGL_J1257.8+3228_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/46184/ft2_4FGL_J1257.8+3228_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/46184/ltcube_449020801_449280001_4FGL_J1257.8+3228_daily_bin809.fits outfile=/scratch/kocevski/46184/expmap_449020801_449280001_4FGL_J1257.8+3228_daily_bin809.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/46184/ltcube_449020801_449280001_4FGL_J1257.8+3228_daily_bin809.fits
.....................!
real 190.58
user 184.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/46184/ft1_filtered_4FGL_J1257.8+3228_daily_bin809.fits scfile=/scratch/kocevski/46184/ft2_4FGL_J1257.8+3228_daily_bin809.fits outfile=/scratch/kocevski/46184/cmap_449020801_449280001_4FGL_J1257.8+3228_daily_bin809.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/46184/ft1_filtered_4FGL_J1257.8+3228_daily_bin809.fits scfile=/scratch/kocevski/46184/ft2_4FGL_J1257.8+3228_daily_bin809.fits outfile=/scratch/kocevski/46184/cmap_HighResolution_449020801_449280001_4FGL_J1257.8+3228_daily_bin809.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.000       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .87101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    29.199       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10842E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.0314       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.337       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0635       1.0000         .10000E-03   10000.    
    20 'norm      '    14.955       1.0000         .10000E-03   10000.    
    21 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .18039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15698E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.6455       1.0000         .10000E-03   10000.    
    26 'Prefactor '    103.34       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.000       1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.310       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.0610       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1139       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79685       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=   4353.169     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4352 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.510       -.10048E-07** at limit **
   2  norm          12.000        4.5230       -.18042E-06   -.87458E-04
   3  Prefactor     .10000E-03    5.8900       -.18844E-06** at limit **
   4  Prefactor     .10000E-03    1.0656       -.75066E-07** at limit **
   5  Prefactor     .87135        2.4530        .16488E-06   -.10087E-03
   6  Prefactor     .10000E-03    4.4349       -.84763E-07** at limit **
   7  norm          29.196        8.5261       -.14134E-06   -.54836E-04
   8  Prefactor     8.2769        10.331       -.41111E-06   -.31676E-04
   9  Prefactor     25.264        30.309       -.10830E-06    .37441E-04
  10  Prefactor     .10000E-03    145.75        .10453E-04** at limit **
  11  Prefactor     .10000E-03    4.4339       -.26620E-07** at limit **
  12  Prefactor     .10000E-03    9.9958       -.87410E-06** at limit **
  13  norm          6.0313        5.3080       -.16125E-06   -.88014E-04
  14  Prefactor     .10000E-03    33.891        .39600E-06** at limit **
  15  Prefactor     .10000E-03    10.903       -.67788E-07** at limit **
  16  norm          .10000E-03    3.5006       -.31258E-06** at limit **
  17  Prefactor     .10000E-03    22.268       -.11083E-05** at limit **
  18  norm          15.328        8.6236        .16746E-05    .21319E-03
  19  norm          5.0645        16.033       -.17352E-06   -.90142E-05
  20  norm          14.949        6.3470        .10516E-05    .37392E-03
  21  norm          .10000E-03    10.456       -.18727E-05** at limit **
  22  norm          .10000E-03    241.78       -.34038E-04** at limit **
  23  Prefactor     .10000E-03    7.8080        .18742E-05** at limit **
  24  Prefactor     .10000E-03    9.6916        .53267E-06** at limit **
  25  norm          6.6456        6.6133       -.47713E-07    .44412E-04
  26  Prefactor     103.20        103.73        .22928E-05    .40839E-05
  27  Prefactor     22.999        22.982        .43768E-06    .11401E-04
  28  Prefactor     24.298        27.281       -.17778E-07    .69668E-05
  29  Prefactor     .10000E-03    81.917       -.32800E-05** at limit **
  30  Prefactor     7.0611        5.6540        .41118E-07    .89367E-05
  31  Normalizat    1.1139        .23093       -.29785E-05    .34482E-03
  32  Prefactor     .79675        .27003        .55776E-05   -.12871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.0002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.871353
  Prefactor  = 0.0001
  norm       = 29.1963
  Prefactor  = 8.27688
  Prefactor  = 25.2636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.03134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.3278
  norm       = 5.06446
  norm       = 14.9493
  norm       = 0.000100002
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.64565
  Prefactor  = 103.198
  Prefactor  = 22.999
  Prefactor  = 24.2976
  Prefactor  = 0.0001
  Prefactor  = 7.06115
  Normalizat = 1.11393
  Prefactor  = 0.796751
 **********
 **   18 **HESSE 
 **********

 FCN=   4353.169     FROM HESSE     STATUS=OK           657 CALLS     5009 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.000        4.4897        .81185E-04   -1.5015    
   3  Prefactor     .10000E-03    6.0035        .15638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0673        .66424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .87135        2.3783        .16085E-03   -1.5521    
   6  Prefactor     .10000E-03    4.4688        .13560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.196        8.5121        .74143E-04   -1.4627    
   8  Prefactor     8.2769        10.315        .13934E-03   -1.5132    
   9  Prefactor     25.264        30.260        .79677E-04   -1.4702    
  10  Prefactor     .10000E-03    145.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4723        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.0313        5.3107        .13736E-03   -1.5217    
  14  Prefactor     .10000E-03    33.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5955        .24102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.328        8.6230        .10227E-03   -1.4925    
  19  norm          5.0645        16.024        .17869E-03   -1.5258    
  20  norm          14.949        6.3545        .10280E-03   -1.4934    
  21  norm          .10000E-03    10.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    231.74        .48044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.8929        .35386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.6456        6.6026        .15566E-03   -1.5192    
  26  Prefactor     103.20        103.82        .19777E-03   -1.3673    
  27  Prefactor     22.999        22.967        .83522E-04   -1.4748    
  28  Prefactor     24.298        27.275        .81244E-04   -1.4722    
  29  Prefactor     .10000E-03    81.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     7.0611        5.6521        .13632E-03   -1.5176    
  31  Normalizat    1.1139        .26225        .24932E-03   -.89306    
  32  Prefactor     .79675        .30146        .33785E-03   -.99848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24287e-09
Minuit parameter uncertainties:
  1  1.10055e-05
  2  4.48985
  3  2.1106e-05
  4  8.3685e-08
  5  2.37854
  6  2.92379e-06
  7  8.51241
  8  10.3174
  9  30.2788
  10  0.000143225
  11  1.76762e-05
  12  9.9261e-05
  13  5.31115
  14  2.89483e-06
  15  3.78939e-05
  16  1.81801e-05
  17  0.000187576
  18  8.62369
  19  16.0375
  20  6.35482
  21  0.0002979
  22  0.00205962
  23  9.45607e-05
  24  1.87384e-05
  25  6.60333
  26  104.005
  27  22.9759
  28  27.2885
  29  8.57492e-05
  30  5.65253
  31  0.262558
  32  0.302088
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.031e+00  5.311e+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.968e-01  3.021e-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.114e+00  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.23e-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) = 4352.95156447
delta logL = 0.217623145753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4352.94914449
delta logL = 0.220043124107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7111       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7125       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78875       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=   4352.949     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7111        5.4614        .42020E-02   -.17245E-02
   2  alpha         1.7125        .62572        .42651       -.11483E-04
   3  Normalizat    1.1281        .21524        .56080E-01    .43644E-05
   4  Prefactor     .78874        .25147        .76688E-01    .14944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.71105
  alpha      = 1.71253
  Normalizat = 1.12811
  Prefactor  = 0.788744
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.949     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7111        5.5785        .13925E-03   -1.5230    
   2  alpha         1.7125        .73716        .16220E-01   -.32045    
   3  Normalizat    1.1281        .25612        .24798E-03   -.88854    
   4  Prefactor     .78874        .29898        .33946E-03   -1.0014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27668e-09
Minuit parameter uncertainties:
  1  5.57905
  2  0.749562
  3  0.256405
  4  0.299597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46184': 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) = 4352.94914449
delta logL = 0.22004312803

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  5.711e+00  5.579e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.713e+00  7.496e-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.887e-01  2.996e-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.128e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.71 +/- 0.75
Photon Flux (Free Index): 2.08e-08 +/- 2.63e-08
Energy Flux (Free Index): 1.92e-05 +/- 2.20e-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/46184/cmap_HighResolution_449020801_449280001_4FGL_J1257.8+3228_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='1.92e-05', photon_flux_error='3.11e-08', dlogl='2.20e-01', energy_flux='1.40e-05', photon_flux2='2.08e-08', job_status='DONE', time_completed='2021-09-06 12:17:37.336330', photon_index_error2='0.75', photon_index2='1.71', ts='4.63', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='1.11', time_epoch_completed='1630955857.34', return_code='0', job_id='46184', GAL2='0.79', EG2='1.13', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.63e-08', ts2='5.08', photon_index='2.22' WHERE bin_id='809' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:17:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 46184: <4FGL_J1257.8+3228_daily_bin809> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin809> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 12:06:12 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:06:14 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:06:14 2021
Terminated at Mon Sep  6 12:17:38 2021
Results reported at Mon Sep  6 12:17:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin809 194.473 32.4721 449020801 449280001 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 :                                   658.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            686 sec.

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

