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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1382
RA = 194.473, Dec = 32.4721
tmin = 597542401, tmax = 597801601
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='49629', job_status='RUN', time_executed='2021-09-06 12:16:26.533762', time_epoch_executed='1630955786.53' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49629/ft1_4FGL_J1257.8+3228_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49629/ft2_4FGL_J1257.8+3228_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49629/ft1_4FGL_J1257.8+3228_daily_bin1382.fits outfile=/scratch/kocevski/49629/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1382.fits ra=194.473 dec=32.4721 rad=12.0 tmin=597542401.0 tmax=597801601.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.23
user 3.30
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49629/ft1_filtered_4FGL_J1257.8+3228_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/49629/ft2_4FGL_J1257.8+3228_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/49629/ltcube_597542401_597801601_4FGL_J1257.8+3228_daily_bin1382.fits outfile=/scratch/kocevski/49629/expmap_597542401_597801601_4FGL_J1257.8+3228_daily_bin1382.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/49629/ltcube_597542401_597801601_4FGL_J1257.8+3228_daily_bin1382.fits
.....................!
real 192.05
user 185.41
sys 4.52

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1257.8+3228 @ 194.473 32.4721

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49629/ft1_filtered_4FGL_J1257.8+3228_daily_bin1382.fits scfile=/scratch/kocevski/49629/ft2_4FGL_J1257.8+3228_daily_bin1382.fits outfile=/scratch/kocevski/49629/cmap_597542401_597801601_4FGL_J1257.8+3228_daily_bin1382.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49629/ft1_filtered_4FGL_J1257.8+3228_daily_bin1382.fits scfile=/scratch/kocevski/49629/ft2_4FGL_J1257.8+3228_daily_bin1382.fits outfile=/scratch/kocevski/49629/cmap_HighResolution_597542401_597801601_4FGL_J1257.8+3228_daily_bin1382.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/49629/ft1_filtered_4FGL_J1257.8+3228_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/49629/ft2_4FGL_J1257.8+3228_daily_bin1382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49629/Model_4FGL_J1257.8+3228_daily_bin1382.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/49629/ft1_filtered_4FGL_J1257.8+3228_daily_bin1382.fits.....................!
real 50.78
user 49.12
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10825E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.9086       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .55610       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.7820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15435E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3031       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14981E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0093       1.0000         .10000E-03   10000.    
    13 'norm      '    .13781E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14710E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26290E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10414E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .89578       1.0000         .10000E-03   10000.    
    19 'norm      '    12.510       1.0000         .10000E-03   10000.    
    20 'norm      '    17.555       1.0000         .10000E-03   10000.    
    21 'norm      '    5.9951       1.0000         .10000E-03   10000.    
    22 'norm      '    26.299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2233       1.0000         .10000E-03   10000.    
    25 'norm      '    .11306E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .46994E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.098       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .32980E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .38459E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.4114       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0268       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96592       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=   6085.090     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     3722 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7780        .19748E-08** at limit **
   2  norm          9.9097        3.9151       -.60193E-07   -.19438E-05
   3  Prefactor     11.136        8.9515        .78945E-06   -.17387E-03
   4  Prefactor     .10000E-03    2.1372       -.14872E-06** at limit **
   5  Prefactor     .56456        2.0402        .94747E-06   -.15696E-03
   6  Prefactor     .10000E-03    2.9491       -.45701E-07** at limit **
   7  norm          5.7665        5.5386       -.12841E-06   -.16836E-03
   8  Prefactor     .10000E-03    10.028       -.16116E-06** at limit **
   9  Prefactor     1.3025        22.595        .20243E-05   -.45591E-04
  10  Prefactor     .10000E-03    21.680       -.59970E-06** at limit **
  11  Prefactor     .10000E-03    3.6653       -.33649E-07** at limit **
  12  Prefactor     2.0083        4.0310        .17115E-06   -.11828E-03
  13  norm          .10000E-03    2.6378        .15935E-07** at limit **
  14  Prefactor     .10000E-03    21.908       -.13117E-06** at limit **
  15  Prefactor     .10000E-03    38.273        .20209E-05** at limit **
  16  norm          .10000E-03    2.8032        .86307E-08** at limit **
  17  Prefactor     .10000E-03    4.8066        .10588E-07** at limit **
  18  norm          .89418        2.6088        .58947E-06   -.66931E-04
  19  norm          12.510        11.120        .19945E-07   -.88942E-07
  20  norm          17.568        6.9675        .96629E-07   -.16347E-03
  21  norm          6.0054        9.5582       -.57780E-07   -.46852E-04
  22  norm          26.372        17.518        .75570E-06    .12399E-03
  23  Prefactor     .10000E-03    1.7371       -.30022E-06** at limit **
  24  Prefactor     5.2568        13.837       -.91623E-06   -.99231E-04
  25  norm          .10000E-03    3.0936        .12403E-06** at limit **
  26  Prefactor     .10000E-03    34.932        .18370E-05** at limit **
  27  Prefactor     20.120        17.224        .13274E-06    .11745E-04
  28  Prefactor     .10000E-03    8.2146       -.82123E-06** at limit **
  29  Prefactor     .10000E-03    38.054        .24588E-05** at limit **
  30  Prefactor     7.4145        5.3839        .15110E-06   -.17683E-05
  31  Normalizat    1.0266        .17270       -.45229E-06   -.73239E-04
  32  Prefactor     .96598        .20808       -.22882E-06   -.53540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.90969
  Prefactor  = 11.1363
  Prefactor  = 0.0001
  Prefactor  = 0.56456
  Prefactor  = 0.0001
  norm       = 5.76651
  Prefactor  = 0.0001
  Prefactor  = 1.30249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.00828
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.894177
  norm       = 12.5105
  norm       = 17.5676
  norm       = 6.00543
  norm       = 26.3718
  Prefactor  = 0.0001
  Prefactor  = 5.25677
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.1197
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.41454
  Normalizat = 1.02659
  Prefactor  = 0.96598
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.090     FROM HESSE     STATUS=OK           661 CALLS     4383 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.9097        3.6300        .84904E-04   -1.5078    
   3  Prefactor     11.136        9.0531        .60035E-03   -1.5040    
   4  Prefactor     .10000E-03    3.7025        .20379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56456        2.0588        .19558E-03   -1.5558    
   6  Prefactor     .10000E-03    2.9601        .13069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7665        5.5136        .16703E-03   -1.5228    
   8  Prefactor     .10000E-03    10.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3025        22.838        .38686E-03   -1.5480    
  10  Prefactor     .10000E-03    21.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6889        .14584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0083        3.9782        .21204E-03   -1.5425    
  13  norm          .10000E-03    2.6859        .12361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.609        .42889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9327        .25495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8129        .16699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .89418        2.5209        .21054E-02   -1.5519    
  19  norm          12.510        11.122        .11325E-03   -1.5000    
  20  norm          17.568        6.9985        .94719E-04   -1.4869    
  21  norm          6.0054        9.6099        .16399E-03   -1.5218    
  22  norm          26.372        17.698        .78116E-04   -1.4680    
  23  Prefactor     .10000E-03    1.7836        .19918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.2568        14.024        .17588E-03   -1.5249    
  25  norm          .10000E-03    3.1115        .13396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    35.688        .21188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.120        17.231        .89341E-04   -1.4811    
  28  Prefactor     .10000E-03    8.3116        .21349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    38.871        .21282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     7.4145        5.3895        .14732E-03   -1.5163    
  31  Normalizat    1.0266        .20492        .23389E-03   -.92145    
  32  Prefactor     .96598        .24600        .29661E-03   -.93872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16184e-08
Minuit parameter uncertainties:
  1  1.06367e-06
  2  3.63004
  3  9.05425
  4  1.43739e-05
  5  2.05903
  6  1.85726e-06
  7  5.51406
  8  1.50451e-05
  9  10.9125
  10  5.7899e-05
  11  1.24194e-06
  12  3.97869
  13  3.33694e-06
  14  1.20062e-05
  15  0.000169359
  16  1.47068e-06
  17  4.95684e-07
  18  2.52124
  19  11.1238
  20  6.99887
  21  9.61236
  22  17.7018
  23  1.14278e-05
  24  14.0324
  25  1.05279e-07
  26  0.00027741
  27  17.2355
  28  4.89759e-05
  29  0.000318593
  30  5.38986
  31  0.205078
  32  0.246283
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  3.337e-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:  9.660e-01  2.463e-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.027e+00  2.051e-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.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49629/likelihoodResults_597542401_597801601_4FGL_J1257.8+3228_daily_bin1382.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) = 6085.09130431
delta logL = -0.00177216593875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6085.08953221
delta logL = -5.88561306358e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2197       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96599       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=   6085.090     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      224 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    639.88        .12360E-02** at limit **
   2  alpha         2.2281        2.6857        .16593       -.60073E-06
   3  Normalizat    1.0266        .16296        .23389E-03    .21727E-04
   4  Prefactor     .96598        .20188        .29660E-03    .19241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 2.22812
  Normalizat = 1.02659
  Prefactor  = 0.96598
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.090     FROM HESSE     STATUS=OK            23 CALLS      247 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6872        .24721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2281        2.7047        .66373E-02   -.10897    
   3  Normalizat    1.0266        .19636        .93555E-05   -.92145    
   4  Prefactor     .96598        .24322        .11864E-04   -.93872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94692e-09
Minuit parameter uncertainties:
  1  0.000224054
  2  194.228
  3  0.196496
  4  0.243492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49629': 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) = 6085.08953215
delta logL = 2.40470399149e-09

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.241e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.228e+00  1.942e+02  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:  9.660e-01  2.435e-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.027e+00  1.965e-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/49629/cmap_HighResolution_597542401_597801601_4FGL_J1257.8+3228_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-05', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2021-09-06 12:30:49.061630', job_id='49629', GAL2='0.97', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630956649.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.40e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1382' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:30:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 49629: <4FGL_J1257.8+3228_daily_bin1382> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1382> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:16:00 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:16:02 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:16:02 2021
Terminated at Mon Sep  6 12:30:50 2021
Results reported at Mon Sep  6 12:30:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1382 194.473 32.4721 597542401 597801601 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 :                                   849.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

