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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1156
RA = 194.473, Dec = 32.4721
tmin = 538963201, tmax = 539222401
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='49269', job_status='RUN', time_executed='2021-09-06 12:18:05.759472', time_epoch_executed='1630955885.76' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49269/ft1_4FGL_J1257.8+3228_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49269/ft2_4FGL_J1257.8+3228_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49269/ft1_4FGL_J1257.8+3228_daily_bin1156.fits outfile=/scratch/kocevski/49269/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1156.fits ra=194.473 dec=32.4721 rad=12.0 tmin=538963201.0 tmax=539222401.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.58
user 4.32
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49269/ft1_filtered_4FGL_J1257.8+3228_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/49269/ft2_4FGL_J1257.8+3228_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/49269/ltcube_538963201_539222401_4FGL_J1257.8+3228_daily_bin1156.fits outfile=/scratch/kocevski/49269/expmap_538963201_539222401_4FGL_J1257.8+3228_daily_bin1156.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/49269/ltcube_538963201_539222401_4FGL_J1257.8+3228_daily_bin1156.fits
.....................!
real 189.72
user 185.46
sys 3.86

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/49269/ft1_filtered_4FGL_J1257.8+3228_daily_bin1156.fits scfile=/scratch/kocevski/49269/ft2_4FGL_J1257.8+3228_daily_bin1156.fits outfile=/scratch/kocevski/49269/cmap_538963201_539222401_4FGL_J1257.8+3228_daily_bin1156.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76759E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.182       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8875       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39848E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15737E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0846       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.618       1.0000         .10000E-03   10000.    
    18 'norm      '    5.7717       1.0000         .10000E-03   10000.    
    19 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10520E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0521       1.0000         .10000E-03   10000.    
    22 'norm      '    52.761       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1744       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .23202E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.381       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.888       1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.250       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1005       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .64808       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=   2656.323     FROM MIGRAD    STATUS=CONVERGED   1489 CALLS     4983 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    87.654        .12268    ** at limit **
   2  norm          4.2687        4.0954        .97117E-04    .62511E-04
   3  Prefactor     .10000E-03    9.2113        .15147E-02** at limit **
   4  Prefactor     11.180        5.0580        .73696E-04    .76978E-04
   5  Prefactor     .10000E-03    2.2446        .74738E-03** at limit **
   6  Prefactor     .10000E-03    2.1622        .74016E-03** at limit **
   7  norm          4.8874        4.5937        .10421E-03    .51819E-05
   8  Prefactor     6.4603        17.544        .15785E-03    .93990E-05
   9  Prefactor     .10000E-03    12.392        .17720E-02** at limit **
  10  Prefactor     .10000E-03    182.15        .21265E-02** at limit **
  11  Prefactor     .10000E-03    4.8095        .11029E-02** at limit **
  12  Prefactor     .10000E-03    5.4138        .11672E-02** at limit **
  13  norm          .10000E-03    12.784        .35169E-03** at limit **
  14  Prefactor     .10000E-03    62.125        .18142E-02** at limit **
  15  Prefactor     .10000E-03    19.080        .18142E-02** at limit **
  16  norm          4.0847        5.7670        .13977E-03    .13299E-04
  17  Prefactor     13.604        20.086        .10854E-03   -.68605E-05
  18  norm          5.7731        8.0906        .78533E-03    .29604E-04
  19  norm          .10000E-03    9.2407        .15299E-02** at limit **
  20  norm          .10000E-03    9.1210        .29712E-02** at limit **
  21  norm          2.0583        6.1651        .21485E-03    .17015E-03
  22  norm          52.730        39.389        .27609E-03   -.23636E-04
  23  Prefactor     4.1750        5.1642        .12071E-03    .11391E-03
  24  Prefactor     .10000E-03    12.450        .17744E-02** at limit **
  25  norm          .10000E-03    7.1307        .13399E-02** at limit **
  26  Prefactor     .10000E-03    62.948        .18142E-02** at limit **
  27  Prefactor     28.364        28.249        .75202E-04    .15420E-04
  28  Prefactor     18.881        19.917        .92157E-04    .87587E-05
  29  Prefactor     17.070        189.15        .96433E-04   -.25088E-04
  30  Prefactor     .10000E-03    4.0321        .10028E-02** at limit **
  31  Normalizat    1.1010        .30774        .21042E-03    .11565E-03
  32  Prefactor     .64781        .34955        .32348E-03    .10565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100043
  norm       = 4.26867
  Prefactor  = 0.0001
  Prefactor  = 11.1799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88745
  Prefactor  = 6.46033
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.08467
  Prefactor  = 13.6043
  norm       = 5.7731
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.05828
  norm       = 52.7298
  Prefactor  = 4.175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3641
  Prefactor  = 18.8815
  Prefactor  = 17.0702
  Prefactor  = 0.0001
  Normalizat = 1.10097
  Prefactor  = 0.647815
 **********
 **   18 **HESSE 
 **********

 FCN=   2656.323     FROM HESSE     STATUS=OK           637 CALLS     5620 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    86.202        .12398       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2687        4.0954        .38847E-05   -1.5295    
   3  Prefactor     .10000E-03    9.2156        .30295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.180        5.0580        .29479E-05   -1.5039    
   5  Prefactor     .10000E-03    2.2449        .14948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1622        .14803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8874        4.5937        .41684E-05   -1.5266    
   8  Prefactor     6.4603        17.543        .63139E-05   -1.5200    
   9  Prefactor     .10000E-03    12.392        .35439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    182.17        .42531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8096        .22058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4143        .23344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.785        .70338E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0847        5.7667        .55909E-05   -1.5304    
  17  Prefactor     13.604        20.081        .43417E-05   -1.4970    
  18  norm          5.7731        8.0876        .31413E-04   -1.5227    
  19  norm          .10000E-03    9.2409        .30598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.1430        .59423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0583        6.1583        .85940E-05   -1.5421    
  22  norm          52.730        39.388        .11043E-04   -1.4254    
  23  Prefactor     4.1750        5.1636        .48284E-05   -1.5299    
  24  Prefactor     .10000E-03    12.451        .35488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.1315        .26797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    62.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     28.364        28.250        .30081E-05   -1.4642    
  28  Prefactor     18.881        19.917        .36863E-05   -1.4839    
  29  Prefactor     17.070        189.16        .19287E-04   -1.4881    
  30  Prefactor     .10000E-03    4.0328        .20057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1010        .30799        .42084E-04   -.89721    
  32  Prefactor     .64781        .34988        .12939E-04   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27848e-10
Minuit parameter uncertainties:
  1  0.00383694
  2  4.09563
  3  3.56845e-06
  4  5.0582
  5  2.69759e-06
  6  1.9543e-07
  7  4.59401
  8  17.5566
  9  4.81793e-06
  10  0.000966596
  11  6.09753e-07
  12  1.44665e-05
  13  7.60645e-05
  14  6.74695e-05
  15  6.03498e-05
  16  5.76744
  17  20.0907
  18  8.08908
  19  3.82134e-06
  20  0.000115188
  21  6.16017
  22  39.4077
  23  5.1641
  24  1.02009e-06
  25  2.47882e-06
  26  4.682e-05
  27  28.2631
  28  19.924
  29  114.109
  30  3.47128e-07
  31  0.308491
  32  0.35107
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  7.606e-05  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:  6.478e-01  3.511e-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.101e+00  3.085e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49269/likelihoodResults_538963201_539222401_4FGL_J1257.8+3228_daily_bin1156.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) = 2656.32349905
delta logL = -0.00037350584762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2656.32312566
delta logL = -1.1373867892e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10833E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2589       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64774       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=   2656.323     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      267 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18674E-03    2.2596        .26179E-01** at limit **
   2  alpha         3.5996        2.5890        .16558        .39508E-05
   3  Normalizat    1.1010        .66155E-02    .21041E-03    .92752E-03
   4  Prefactor     .64781        .80184E-02    .32349E-03    .41530E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00018674
  alpha      = 3.59963
  Normalizat = 1.10097
  Prefactor  = 0.647814
 **********
 **   18 **HESSE 
 **********

 FCN=   2656.323     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18674E-03    13.740        .17713E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.5996        3.1948        .66234E-02    .45543    
   3  Normalizat    1.1010        .11543E-01    .42081E-04   -.89721    
   4  Prefactor     .64781        .13981E-01    .64699E-04   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20427e-08
Minuit parameter uncertainties:
  1  0.0690616
  2  364.065
  3  0.0115434
  4  0.0139814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49269': 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) = 2656.32311941
delta logL = 6.13099155089e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.867e-04  6.906e-02  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.600e+00  3.641e+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:  6.478e-01  1.398e-02  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.101e+00  1.154e-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/49269/cmap_HighResolution_538963201_539222401_4FGL_J1257.8+3228_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-06 12:28:37.929970', job_id='49269', GAL2='0.65', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630956517.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='6.13e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1156' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:28:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 49269: <4FGL_J1257.8+3228_daily_bin1156> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1156 194.473 32.4721 538963201 539222401 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 :                                   597.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

