/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 43 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 = 6336
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1338
RA = 194.473, Dec = 32.4721
tmin = 586137601, tmax = 586396801
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='49565', job_status='RUN', time_executed='2021-09-06 12:17:45.390561', time_epoch_executed='1630955865.39' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49565

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49565/ft1_4FGL_J1257.8+3228_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49565/ft2_4FGL_J1257.8+3228_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49565/ft1_4FGL_J1257.8+3228_daily_bin1338.fits outfile=/scratch/kocevski/49565/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1338.fits ra=194.473 dec=32.4721 rad=12.0 tmin=586137601.0 tmax=586396801.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.52
user 4.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49565/ft1_filtered_4FGL_J1257.8+3228_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/49565/ft2_4FGL_J1257.8+3228_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/49565/ltcube_586137601_586396801_4FGL_J1257.8+3228_daily_bin1338.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/49565/ft2_4FGL_J1257.8+3228_daily_bin1338.fits
.....................!
real 10.23
user 9.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49565/ft1_filtered_4FGL_J1257.8+3228_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/49565/ft2_4FGL_J1257.8+3228_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/49565/ltcube_586137601_586396801_4FGL_J1257.8+3228_daily_bin1338.fits outfile=/scratch/kocevski/49565/expmap_586137601_586396801_4FGL_J1257.8+3228_daily_bin1338.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/49565/ltcube_586137601_586396801_4FGL_J1257.8+3228_daily_bin1338.fits
.....................!
real 192.89
user 185.82
sys 5.37

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/49565/ft1_filtered_4FGL_J1257.8+3228_daily_bin1338.fits scfile=/scratch/kocevski/49565/ft2_4FGL_J1257.8+3228_daily_bin1338.fits outfile=/scratch/kocevski/49565/cmap_586137601_586396801_4FGL_J1257.8+3228_daily_bin1338.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.473 yref=32.4721 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49565/ft1_filtered_4FGL_J1257.8+3228_daily_bin1338.fits scfile=/scratch/kocevski/49565/ft2_4FGL_J1257.8+3228_daily_bin1338.fits outfile=/scratch/kocevski/49565/cmap_HighResolution_586137601_586396801_4FGL_J1257.8+3228_daily_bin1338.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.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68113E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .17768E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2081       1.0000         .10000E-03   10000.    
     7 'norm      '    .11394E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11696E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2290       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2536       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.665       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0733       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14567E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4176       1.0000         .10000E-03   10000.    
    19 'norm      '    .11054E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    23.861       1.0000         .10000E-03   10000.    
    21 'norm      '    .15378E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    18.056       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .18732E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .26273E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .28646E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.1332       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10795E-02   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1256       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .61490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3953.965     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     2414 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.8544       -.30692E-05** at limit **
   2  norm          .10008E-03    10.919       -.55836E-05** at limit **
   3  Prefactor     3.3151        9.1732       -.25424E-04   -.17479E-02
   4  Prefactor     5.9684        3.3709       -.37618E-07    .20743E-03
   5  Prefactor     .10000E-03    1.0041       -.38758E-06** at limit **
   6  Prefactor     1.1999        5.8647        .28772E-05   -.30371E-04
   7  norm          .10000E-03    4.9348        .14490E-05** at limit **
   8  Prefactor     26.867        1.8254       -.13628E-05   -.11532E-02
   9  Prefactor     .10002E-03    12.746        .25363E-04** at limit **
  10  Prefactor     .10047E-03    478.17       -.58090E-04** at limit **
  11  Prefactor     .10000E-03    7.1385        .67224E-05** at limit **
  12  Prefactor     9.2566        1.0793       -.66860E-06   -.36477E-03
  13  norm          .10000E-03    2.5358       -.32729E-06** at limit **
  14  Prefactor     .10226E-03    30.123        .39652E-04** at limit **
  15  Prefactor     11.700        3.4836        .82994E-05   -.21665E-02
  16  norm          6.0428        4.0154        .18786E-05   -.51834E-03
  17  Prefactor     .10000E-03    6.4569       -.64216E-05** at limit **
  18  norm          2.4415        1.9280       -.61978E-05   -.22862E-02
  19  norm          .10000E-03    5.8413       -.10546E-05** at limit **
  20  norm          23.922        5.0518        .30170E-05    .75498E-02
  21  norm          .10063E-03    11.597        .17053E-04** at limit **
  22  norm          18.128        16.141       -.29416E-04    .33938E-02
  23  Prefactor     .10000E-03    1.2247       -.61161E-06** at limit **
  24  Prefactor     .10006E-03    6.3686       -.31818E-05** at limit **
  25  norm          .10000E-03    3.6806       -.18649E-05** at limit **
  26  Prefactor     .10009E-03    1.5619        .51469E-05** at limit **
  27  Prefactor     .10013E-03    2.6774       -.14493E-04** at limit **
  28  Prefactor     4.0143        6.4606        .24065E-04   -.27498E-02
  29  Prefactor     .10101E-03    30.937       -.27785E-04** at limit **
  30  Prefactor     .10051E-03    7.3058        .13034E-04** at limit **
  31  Normalizat    1.1253        .25724        .61591E-05    .23155E-04
  32  Prefactor     .61515        .29395       -.74208E-05   -.51667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 0.000100078
  Prefactor  = 3.31508
  Prefactor  = 5.96845
  Prefactor  = 0.0001
  Prefactor  = 1.19988
  norm       = 0.0001
  Prefactor  = 26.8672
  Prefactor  = 0.000100019
  Prefactor  = 0.000100475
  Prefactor  = 0.000100001
  Prefactor  = 9.25662
  norm       = 0.0001
  Prefactor  = 0.000102258
  Prefactor  = 11.7
  norm       = 6.04281
  Prefactor  = 0.000100001
  norm       = 2.44155
  norm       = 0.0001
  norm       = 23.922
  norm       = 0.00010063
  norm       = 18.1282
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  norm       = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.000100134
  Prefactor  = 4.0143
  Prefactor  = 0.00010101
  Prefactor  = 0.000100511
  Normalizat = 1.12529
  Prefactor  = 0.615147
 **********
 **   18 **HESSE 
 **********

 FCN=   3953.965     FROM HESSE     STATUS=OK           739 CALLS     3153 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    63.765        .10498E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10008E-03    2.7016        .57522E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3151        11.280        .56473E-02   -1.5344    
   4  Prefactor     5.9684        3.7687        .41099E-02   -1.5219    
   5  Prefactor     .10000E-03    .99864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1999        5.9773        .10299E-01   -1.5489    
   7  norm          .10000E-03    4.7812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.867        15.400        .19332E-02   -1.4671    
   9  Prefactor     .10002E-03    14.942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10047E-03    475.31        .10145E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2566        7.9994        .32937E-02   -1.5099    
  13  norm          .10000E-03    2.5352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10226E-03    52.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.700        32.165        .29323E-02   -1.5024    
  16  norm          6.0428        4.0237        .40730E-02   -1.5216    
  17  Prefactor     .10000E-03    6.4907        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4415        5.7219        .65814E-02   -1.5395    
  19  norm          .10000E-03    6.0418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          23.922        8.6539        .20501E-02   -1.4729    
  21  norm          .10063E-03    13.106        .64837E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.128        20.951        .23564E-02   -1.4856    
  23  Prefactor     .10000E-03    1.2229        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10006E-03    16.048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.6748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10009E-03    38.601        .10722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10013E-03    14.280        .10705E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.0143        62.606        .49568E-02   -1.5307    
  29  Prefactor     .10101E-03    46.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10051E-03    4.8595        .71780E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1253        .22314        .37044E-01   -.88944    
  32  Prefactor     .61515        .25196        .74600E-01   -1.0695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30152e-07
Minuit parameter uncertainties:
  1  0.00123991
  2  0.000917764
  3  11.2874
  4  3.76888
  5  7.50005e-06
  6  5.35677
  7  2.03237e-05
  8  15.402
  9  0.00106196
  10  0.0302806
  11  0.000142275
  12  8.00031
  13  1.02665e-05
  14  0.0216969
  15  32.2122
  16  4.02387
  17  0.000140602
  18  5.72317
  19  9.9879e-05
  20  8.6543
  21  0.00575013
  22  20.9598
  23  1.00322e-05
  24  0.00189663
  25  1.05379e-05
  26  0.00367642
  27  0.00276919
  28  31.7452
  29  0.0137363
  30  0.00315212
  31  0.223323
  32  0.252427
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.027e-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.151e-01  2.524e-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.125e+00  2.233e-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: 6.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49565/likelihoodResults_586137601_586396801_4FGL_J1257.8+3228_daily_bin1338.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) = 3953.9663893
delta logL = -0.00184323274834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3953.96454611
delta logL = -3.90282366425e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2099       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61525       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=   3953.965     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      225 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.455        .98039E-03** at limit **
   2  alpha         1.9870        3.3800        .16603       -.66762E-08
   3  Normalizat    1.1253        .25218        .21925E-03    .10139E-03
   4  Prefactor     .61515        .28909        .33028E-03    .61184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98702
  Normalizat = 1.12529
  Prefactor  = 0.615149
 **********
 **   18 **HESSE 
 **********

 FCN=   3953.965     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6606        .19608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9870        3.0798        .66411E-02   -.20666    
   3  Normalizat    1.1253        .25241        .43851E-04   -.88944    
   4  Prefactor     .61515        .28936        .13211E-04   -1.0695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68803e-11
Minuit parameter uncertainties:
  1  3.51338e-05
  2  174.499
  3  0.252683
  4  0.290062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49565': 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) = 3953.96454521
delta logL = 8.6561203716e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  3.513e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.987e+00  1.745e+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.151e-01  2.901e-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.125e+00  2.527e-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/49565/cmap_HighResolution_586137601_586396801_4FGL_J1257.8+3228_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', job_status='DONE', photon_flux_upper_limit='6.86e-08', time_completed='2021-09-06 12:29:04.864423', job_id='49565', GAL2='0.62', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630956544.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='8.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1338' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:29:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 49565: <4FGL_J1257.8+3228_daily_bin1338> in cluster <slac> Done

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

Your job looked like:

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

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

