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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin507
RA = 194.473, Dec = 32.4721
tmin = 370742401, tmax = 371001601
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='44292', job_status='RUN', time_executed='2021-09-06 12:00:59.176810', time_epoch_executed='1630954859.18' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/44292

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/44292/ft1_4FGL_J1257.8+3228_daily_bin507.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/44292/ft2_4FGL_J1257.8+3228_daily_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/44292/ft1_4FGL_J1257.8+3228_daily_bin507.fits outfile=/scratch/kocevski/44292/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin507.fits ra=194.473 dec=32.4721 rad=12.0 tmin=370742401.0 tmax=371001601.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.34
user 5.09
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/44292/ft1_filtered_4FGL_J1257.8+3228_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/44292/ft2_4FGL_J1257.8+3228_daily_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/44292/ltcube_370742401_371001601_4FGL_J1257.8+3228_daily_bin507.fits outfile=/scratch/kocevski/44292/expmap_370742401_371001601_4FGL_J1257.8+3228_daily_bin507.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/44292/ltcube_370742401_371001601_4FGL_J1257.8+3228_daily_bin507.fits
.....................!
real 189.75
user 184.91
sys 4.45

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/44292/ft1_filtered_4FGL_J1257.8+3228_daily_bin507.fits scfile=/scratch/kocevski/44292/ft2_4FGL_J1257.8+3228_daily_bin507.fits outfile=/scratch/kocevski/44292/cmap_370742401_371001601_4FGL_J1257.8+3228_daily_bin507.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.60
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/44292/ft1_filtered_4FGL_J1257.8+3228_daily_bin507.fits scfile=/scratch/kocevski/44292/ft2_4FGL_J1257.8+3228_daily_bin507.fits outfile=/scratch/kocevski/44292/cmap_HighResolution_370742401_371001601_4FGL_J1257.8+3228_daily_bin507.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2462       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55194       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2782       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    29.285       1.0000         .10000E-03   10000.    
    20 'norm      '    9.7068       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.532       1.0000         .10000E-03   10000.    
    25 'norm      '    2.7711       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6709       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.4302       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2185       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92193       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=   5825.510     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4381 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.964        .38329E-06** at limit **
   2  norm          10.636        4.2337        .83861E-07   -.39483E-03
   3  Prefactor     .10010E-03    5.6091        .15361E-05** at limit **
   4  Prefactor     .10000E-03    1.5792        .16193E-06** at limit **
   5  Prefactor     3.7079        2.5087        .73068E-07   -.18032E-03
   6  Prefactor     4.2458        6.1142        .19136E-06   -.10602E-02
   7  norm          .10000E-03    2.0492       -.21175E-07** at limit **
   8  Prefactor     .10000E-03    6.7365        .44839E-06** at limit **
   9  Prefactor     .10000E-03    4.5242        .13206E-06** at limit **
  10  Prefactor     50.967        48.900        .67906E-05    .20150E-04
  11  Prefactor     4.7533        10.942        .81443E-06   -.50244E-03
  12  Prefactor     .55209        4.7371       -.12424E-06   -.25511E-03
  13  norm          .10000E-03    1.8200       -.38056E-07** at limit **
  14  Prefactor     .10000E-03    26.749       -.46235E-05** at limit **
  15  Prefactor     5.2820        28.088        .47793E-05   -.15805E-04
  16  norm          .10000E-03    1.6490        .47776E-08** at limit **
  17  Prefactor     .10000E-03    5.6524       -.16136E-05** at limit **
  18  norm          .10000E-03    6.0168        .21001E-05** at limit **
  19  norm          29.290        19.265        .11230E-05    .16119E-04
  20  norm          9.7079        6.3671       -.12126E-05   -.22801E-03
  21  norm          .10000E-03    3.3739        .18302E-07** at limit **
  22  norm          .10000E-03    6.6625        .10204E-05** at limit **
  23  Prefactor     .10000E-03    1.6132       -.16601E-06** at limit **
  24  Prefactor     11.545        23.267        .79716E-05    .22026E-04
  25  norm          2.7710        4.3576        .18408E-06   -.15613E-02
  26  Prefactor     .10000E-03    44.756       -.45543E-05** at limit **
  27  Prefactor     3.6770        37.548        .36062E-05   -.72956E-05
  28  Prefactor     .10000E-03    7.2823       -.31470E-05** at limit **
  29  Prefactor     .10000E-03    42.234        .24967E-05** at limit **
  30  Prefactor     1.4309        5.4177       -.42449E-07   -.18121E-03
  31  Normalizat    1.2182        .19082       -.20371E-05   -.14287E-03
  32  Prefactor     .92220        .21935       -.14207E-06   -.23929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.6361
  Prefactor  = 0.000100095
  Prefactor  = 0.000100002
  Prefactor  = 3.70788
  Prefactor  = 4.24581
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.9674
  Prefactor  = 4.75327
  Prefactor  = 0.552092
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.28203
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 29.2895
  norm       = 9.70788
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5447
  norm       = 2.77102
  Prefactor  = 0.0001
  Prefactor  = 3.677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4309
  Normalizat = 1.21819
  Prefactor  = 0.922197
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.510     FROM HESSE     STATUS=OK           655 CALLS     5036 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.636        3.9277        .87494E-04   -1.5056    
   3  Prefactor     .10010E-03    32.841        .34435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1552        .17116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7079        2.4989        .94193E-04   -1.5323    
   6  Prefactor     4.2458        6.7973        .97770E-03   -1.5296    
   7  norm          .10000E-03    2.0566        .10661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5246        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.967        48.863        .56179E-04   -1.4279    
  11  Prefactor     4.7533        11.633        .92268E-03   -1.5272    
  12  Prefactor     .55209        4.8671        .32516E-03   -1.5559    
  13  norm          .10000E-03    1.8240        .10048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2820        27.737        .17495E-03   -1.5248    
  16  norm          .10000E-03    1.6568        .95689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6588        .17718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2150        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          29.290        19.279        .74036E-04   -1.4625    
  20  norm          9.7079        6.3436        .12862E-03   -1.5085    
  21  norm          .10000E-03    3.3769        .13674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.6659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.6242        .94585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.545        23.221        .11797E-03   -1.5028    
  25  norm          2.7710        6.5438        .12224E-02   -1.5375    
  26  Prefactor     .10000E-03    44.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6770        37.023        .21082E-03   -1.5324    
  28  Prefactor     .10000E-03    7.2911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    42.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.4309        5.4370        .32828E-03   -1.5469    
  31  Normalizat    1.2182        .22889        .23616E-03   -.86043    
  32  Prefactor     .92220        .26506        .31609E-03   -.95370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94777e-09
Minuit parameter uncertainties:
  1  1.25939e-05
  2  3.9278
  3  0.00353714
  4  0.000296792
  5  2.49899
  6  6.7985
  7  2.58109e-06
  8  6.43958e-06
  9  1.02779e-06
  10  48.901
  11  11.6382
  12  3.27853
  13  5.17636e-06
  14  5.46299e-05
  15  24.2255
  16  2.42941e-06
  17  1.01833e-05
  18  2.97424e-05
  19  19.2831
  20  6.34401
  21  4.00772e-06
  22  9.04341e-06
  23  2.3469e-05
  24  23.2393
  25  6.54547
  26  0.000228681
  27  23.3537
  28  2.38646e-05
  29  4.55419e-05
  30  5.43889
  31  0.229081
  32  0.26543
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  5.176e-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.222e-01  2.654e-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.218e+00  2.291e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/44292/likelihoodResults_370742401_371001601_4FGL_J1257.8+3228_daily_bin507.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) = 5825.51234545
delta logL = -0.00256157023432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5825.50978389
delta logL = -1.53395376401e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2169       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92220       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=   5825.510     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      240 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9228        .10050E-02** at limit **
   2  alpha         2.1152        3.3073        .16596        .13838E-07
   3  Normalizat    1.2182        .21717        .23616E-03    .36393E-04
   4  Prefactor     .92220        .25777        .31609E-03    .32514E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.11516
  Normalizat = 1.21818
  Prefactor  = 0.922201
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.510     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8327        .20099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1152        2.7889        .66384E-02   -.15455    
   3  Normalizat    1.2182        .21742        .94465E-05   -.86043    
   4  Prefactor     .92220        .25806        .12644E-04   -.95370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22701e-12
Minuit parameter uncertainties:
  1  2.73442e-06
  2  201.197
  3  0.217578
  4  0.2584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/44292': 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) = 5825.50978375
delta logL = 1.29202817334e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.734e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.115e+00  2.012e+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.222e-01  2.584e-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.218e+00  2.176e-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/44292/cmap_HighResolution_370742401_371001601_4FGL_J1257.8+3228_daily_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2021-09-06 12:15:33.118765', job_id='44292', GAL2='0.92', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630955733.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='507' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:15:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 44292: <4FGL_J1257.8+3228_daily_bin507> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin507 194.473 32.4721 370742401 371001601 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 :                                   867.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            896 sec.

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

