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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1048
RA = 194.473, Dec = 32.4721
tmin = 510969601, tmax = 511228801
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='47759', job_status='RUN', time_executed='2021-09-06 12:11:10.004247', time_epoch_executed='1630955470.0' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47759/ft1_4FGL_J1257.8+3228_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47759/ft2_4FGL_J1257.8+3228_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47759/ft1_4FGL_J1257.8+3228_daily_bin1048.fits outfile=/scratch/kocevski/47759/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1048.fits ra=194.473 dec=32.4721 rad=12.0 tmin=510969601.0 tmax=511228801.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.47
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47759/ft1_filtered_4FGL_J1257.8+3228_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/47759/ft2_4FGL_J1257.8+3228_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/47759/ltcube_510969601_511228801_4FGL_J1257.8+3228_daily_bin1048.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/47759/ft2_4FGL_J1257.8+3228_daily_bin1048.fits
.....................!
real 11.60
user 11.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47759/ft1_filtered_4FGL_J1257.8+3228_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/47759/ft2_4FGL_J1257.8+3228_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/47759/ltcube_510969601_511228801_4FGL_J1257.8+3228_daily_bin1048.fits outfile=/scratch/kocevski/47759/expmap_510969601_511228801_4FGL_J1257.8+3228_daily_bin1048.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/47759/ltcube_510969601_511228801_4FGL_J1257.8+3228_daily_bin1048.fits
.....................!
real 189.72
user 184.98
sys 4.41

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/47759/ft1_filtered_4FGL_J1257.8+3228_daily_bin1048.fits scfile=/scratch/kocevski/47759/ft2_4FGL_J1257.8+3228_daily_bin1048.fits outfile=/scratch/kocevski/47759/cmap_510969601_511228801_4FGL_J1257.8+3228_daily_bin1048.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.57
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.184       1.0000         .10000E-03   10000.    
     2 'norm      '    11.982       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4513       1.0000         .10000E-03   10000.    
     7 'norm      '    9.6008       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12781E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .53119E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.598       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .89517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.951       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11221E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.197       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    27.679       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .67785       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2492       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=   5127.660     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4342 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.189        33.186        .40848E-05   -.44379E-05
   2  norm          11.983        3.7825        .83599E-06    .59402E-04
   3  Prefactor     .10000E-03    1.8431       -.25367E-06** at limit **
   4  Prefactor     .10000E-03    .96825       -.99874E-07** at limit **
   5  Prefactor     2.5817        2.3658       -.31272E-06   -.29124E-03
   6  Prefactor     3.4515        5.9417       -.22424E-06   -.36423E-03
   7  norm          9.6010        5.3227        .15831E-06   -.30453E-04
   8  Prefactor     17.876        11.906        .53174E-06   -.50188E-05
   9  Prefactor     .10000E-03    7.2166       -.20302E-05** at limit **
  10  Prefactor     .10000E-03    84.565       -.85904E-06** at limit **
  11  Prefactor     .10000E-03    2.0181        .39143E-07** at limit **
  12  Prefactor     .10000E-03    2.8513       -.68303E-06** at limit **
  13  norm          .10000E-03    2.0614        .18387E-06** at limit **
  14  Prefactor     54.605        52.638        .72175E-05    .64150E-05
  15  Prefactor     .10000E-03    4.7859       -.84346E-06** at limit **
  16  norm          .89671        3.9811       -.19372E-05   -.97059E-03
  17  Prefactor     .10000E-03    5.1020        .49110E-05** at limit **
  18  norm          .10000E-03    1.5643       -.57215E-08** at limit **
  19  norm          .10000E-03    4.6450       -.36176E-05** at limit **
  20  norm          .10000E-03    .84526       -.41250E-07** at limit **
  21  norm          .10000E-03    1.3759        .24363E-07** at limit **
  22  norm          22.951        19.714        .54533E-06    .22797E-04
  23  Prefactor     .10001E-03    2.0878       -.69848E-06** at limit **
  24  Prefactor     .10000E-03    20.145        .19769E-05** at limit **
  25  norm          .10000E-03    1.8288        .25026E-06** at limit **
  26  Prefactor     11.211        42.947        .26711E-04    .29653E-04
  27  Prefactor     .10000E-03    15.194       -.29546E-05** at limit **
  28  Prefactor     .10000E-03    8.2441        .54725E-05** at limit **
  29  Prefactor     27.690        64.915        .15928E-04    .77275E-06
  30  Prefactor     .10000E-03    2.8795       -.45892E-06** at limit **
  31  Normalizat    .67775        .17121       -.27395E-05    .22086E-03
  32  Prefactor     1.2492        .21373       -.13567E-06    .11216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.1887
  norm       = 11.9832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58165
  Prefactor  = 3.45146
  norm       = 9.60099
  Prefactor  = 17.876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 54.605
  Prefactor  = 0.0001
  norm       = 0.896706
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.9507
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 11.2106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6897
  Prefactor  = 0.000100003
  Normalizat = 0.677746
  Prefactor  = 1.2492
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.660     FROM HESSE     STATUS=OK           657 CALLS     4999 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.189        33.078        .76837E-04   -1.4665    
   2  norm          11.983        3.7685        .74328E-04   -1.5015    
   3  Prefactor     .10000E-03    1.8449        .94938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .98685        .68684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5817        2.3539        .98157E-04   -1.5387    
   6  Prefactor     3.4515        5.9225        .21271E-03   -1.5336    
   7  norm          9.6010        5.3083        .11365E-03   -1.5088    
   8  Prefactor     17.876        11.877        .94727E-04   -1.4862    
   9  Prefactor     .10000E-03    7.2198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    84.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0227        .99341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2835        .23482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.104        .19841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.605        52.457        .27142E-03   -1.4229    
  15  Prefactor     .10000E-03    4.7872        .15298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .89671        4.2291        .27409E-03   -1.5519    
  17  Prefactor     .10000E-03    5.0890        .15754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5765        .87445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6385        .15059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .84843        .64266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3765        .82028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.951        19.683        .83610E-04   -1.4749    
  23  Prefactor     .10001E-03    4.0197        .19555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8306        .94570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.211        42.231        .11973E-03   -1.5038    
  27  Prefactor     .10000E-03    15.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.2422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     27.690        64.435        .76147E-04   -1.4655    
  30  Prefactor     .10000E-03    7.3972        .23546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .67775        .20076        .25010E-03   -1.0478    
  32  Prefactor     1.2492        .25640        .24490E-03   -.84830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77412e-09
Minuit parameter uncertainties:
  1  33.0998
  2  3.76853
  3  2.71076e-07
  4  7.70859e-06
  5  2.35403
  6  5.92353
  7  5.30852
  8  11.8788
  9  7.4947e-06
  10  0.000142021
  11  5.59798e-06
  12  0.000345069
  13  0.000143726
  14  52.5019
  15  1.49616e-06
  16  3.89499
  17  3.174e-07
  18  2.75298e-06
  19  6.26203e-06
  20  5.55687e-08
  21  3.27149e-07
  22  19.689
  23  0.000325661
  24  0.000291095
  25  2.67805e-06
  26  42.3439
  27  5.55538e-05
  28  8.65176e-06
  29  64.5974
  30  0.000319847
  31  0.200978
  32  0.256657
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.437e-04  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.249e+00  2.567e-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:  6.777e-01  2.010e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47759/likelihoodResults_510969601_511228801_4FGL_J1257.8+3228_daily_bin1048.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) = 5127.66055444
delta logL = -0.000471499731248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5127.66008073
delta logL = 2.21007212531e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11614E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3353       1.0000          .0000       5.0000    
     3 'Normalizat'    .67775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2492       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=   5127.633     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      305 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17092        12.723        .21028E-01    .15836E-02
   2  alpha         3.5520        2.9361        .41265        .40276E-04
   3  Normalizat    .66848        .19769E-01    .41993E-01    .27911E-03
   4  Prefactor     1.2553        .25662E-01    .55277E-01    .13637E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.170923
  alpha      = 3.55199
  Normalizat = 0.668479
  Prefactor  = 1.25528
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.633     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      338 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17092        150.21        .10326E-02   -1.5625    
   2  alpha         3.5520        3.8196        .64459E-01    .43432    
   3  Normalizat    .66848        .93304E-01    .25179E-03   -1.0515    
   4  Prefactor     1.2553        .12386        .24441E-03   -.84647    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32198e-06
Minuit parameter uncertainties:
  1  10.1565
  2  35.049
  3  0.0933259
  4  0.123891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47759': 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): 102
logL (Free Index) = 5127.63305184
delta logL = 0.0270311058603

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.709e-01  1.016e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.552e+00  3.505e+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.255e+00  1.239e-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:  6.685e-01  9.333e-02  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/47759/cmap_HighResolution_510969601_511228801_4FGL_J1257.8+3228_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-05', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-06 12:24:38.046688', job_id='47759', GAL2='1.26', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1630956278.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.70e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1048' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:24:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 47759: <4FGL_J1257.8+3228_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1048 194.473 32.4721 510969601 511228801 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 :                                   802.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

