/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 77 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 = 7566
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin40
RA = 194.473, Dec = 32.4721
tmin = 249696001, tmax = 249955201
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='41042', job_status='RUN', time_executed='2021-09-06 11:53:49.093853', time_epoch_executed='1630954429.09' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41042

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41042/ft1_4FGL_J1257.8+3228_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41042/ft2_4FGL_J1257.8+3228_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41042/ft1_4FGL_J1257.8+3228_daily_bin40.fits outfile=/scratch/kocevski/41042/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin40.fits ra=194.473 dec=32.4721 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.63
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41042/ft1_filtered_4FGL_J1257.8+3228_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/41042/ft2_4FGL_J1257.8+3228_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/41042/ltcube_249696001_249955201_4FGL_J1257.8+3228_daily_bin40.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/41042/ft2_4FGL_J1257.8+3228_daily_bin40.fits
.....................!
real 12.59
user 12.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41042/ft1_filtered_4FGL_J1257.8+3228_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/41042/ft2_4FGL_J1257.8+3228_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/41042/ltcube_249696001_249955201_4FGL_J1257.8+3228_daily_bin40.fits outfile=/scratch/kocevski/41042/expmap_249696001_249955201_4FGL_J1257.8+3228_daily_bin40.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/41042/ltcube_249696001_249955201_4FGL_J1257.8+3228_daily_bin40.fits
.....................!
real 189.54
user 185.25
sys 3.93

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/41042/ft1_filtered_4FGL_J1257.8+3228_daily_bin40.fits scfile=/scratch/kocevski/41042/ft2_4FGL_J1257.8+3228_daily_bin40.fits outfile=/scratch/kocevski/41042/cmap_249696001_249955201_4FGL_J1257.8+3228_daily_bin40.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41042/ft1_filtered_4FGL_J1257.8+3228_daily_bin40.fits scfile=/scratch/kocevski/41042/ft2_4FGL_J1257.8+3228_daily_bin40.fits outfile=/scratch/kocevski/41042/cmap_HighResolution_249696001_249955201_4FGL_J1257.8+3228_daily_bin40.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.55
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10733E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9097       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3600       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.803       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.428       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2316       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.6527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7468       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1949       1.0000         .10000E-03   10000.    
    18 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.510       1.0000         .10000E-03   10000.    
    20 'norm      '    20.643       1.0000         .10000E-03   10000.    
    21 'norm      '    10.614       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .64594E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3088       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .75323       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75143       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2522       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=   5653.635     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     4389 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.588       -.17108E-05** at limit **
   2  norm          5.6052        3.1856       -.55008E-07    .84550E-05
   3  Prefactor     .10000E-03    4.5937        .49670E-06** at limit **
   4  Prefactor     4.9096        2.7801        .38825E-07   -.11601E-05
   5  Prefactor     7.3597        2.9026        .64050E-07    .32970E-05
   6  Prefactor     .10000E-03    1.4291        .19880E-07** at limit **
   7  norm          .10000E-03    1.1862        .28056E-07** at limit **
   8  Prefactor     11.802        10.928       -.55913E-06   -.11539E-03
   9  Prefactor     16.424        20.335        .13012E-06   -.22492E-04
  10  Prefactor     1.5159        813.16       -.49585E-04   -.20170E-04
  11  Prefactor     6.2300        7.0333        .13762E-06   -.35252E-04
  12  Prefactor     .10000E-03    2.4992       -.21252E-06** at limit **
  13  norm          7.6515        8.0562        .35208E-06    .18878E-03
  14  Prefactor     11.403        71.155        .20615E-06   -.55677E-05
  15  Prefactor     5.8078        73.021       -.93383E-05   -.17595E-03
  16  norm          .10000E-03    1.3188        .61163E-07** at limit **
  17  Prefactor     1.2035        45.274        .18311E-05   -.41287E-04
  18  norm          .10000E-03    8.9625       -.19832E-05** at limit **
  19  norm          12.508        16.111        .29041E-06   -.34955E-05
  20  norm          20.645        9.3403        .80205E-06   -.82904E-03
  21  norm          10.615        14.019       -.13493E-05   -.21650E-03
  22  norm          .10000E-03    7.7054       -.96591E-07** at limit **
  23  Prefactor     .57763E-01    2.1219        .13692E-05   -.14499E-02
  24  Prefactor     .10000E-03    5.6822        .61907E-07** at limit **
  25  norm          4.3075        5.7117        .45179E-05   -.16688E-03
  26  Prefactor     .10000E-03    31.076        .63732E-07** at limit **
  27  Prefactor     .10000E-03    4.8285        .79350E-07** at limit **
  28  Prefactor     .10000E-03    10.828        .13700E-06** at limit **
  29  Prefactor     .10000E-03    71.738        .20703E-05** at limit **
  30  Prefactor     .75181        4.8848        .25666E-05   -.11740E-03
  31  Normalizat    .75155        .18123        .65793E-07   -.36059E-03
  32  Prefactor     1.2523        .22177       -.16608E-05   -.19512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.60524
  Prefactor  = 0.0001
  Prefactor  = 4.9096
  Prefactor  = 7.35967
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8015
  Prefactor  = 16.4238
  Prefactor  = 1.51591
  Prefactor  = 6.22996
  Prefactor  = 0.0001
  norm       = 7.65149
  Prefactor  = 11.403
  Prefactor  = 5.80776
  norm       = 0.0001
  Prefactor  = 1.20353
  norm       = 0.0001
  norm       = 12.5081
  norm       = 20.6453
  norm       = 10.6149
  norm       = 0.0001
  Prefactor  = 0.0577632
  Prefactor  = 0.0001
  norm       = 4.3075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.751813
  Normalizat = 0.751548
  Prefactor  = 1.2523
 **********
 **   18 **HESSE 
 **********

 FCN=   5653.635     FROM HESSE     STATUS=OK           667 CALLS     5056 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6052        3.1906        .47123E-03   -1.5234    
   3  Prefactor     .10000E-03    14.496        .31240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9096        2.7830        .87977E-04   -1.5265    
   5  Prefactor     7.3597        2.9007        .75633E-04   -1.5165    
   6  Prefactor     .10000E-03    1.4305        .87786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1885        .79974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.802        10.928        .11661E-03   -1.5021    
   9  Prefactor     16.424        20.318        .98817E-04   -1.4897    
  10  Prefactor     1.5159        883.47        .31552E-02   -1.5462    
  11  Prefactor     6.2300        7.0357        .16081E-03   -1.5209    
  12  Prefactor     .10000E-03    2.5080        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.6515        8.1228        .14496E-03   -1.5155    
  14  Prefactor     11.403        70.944        .11861E-03   -1.5032    
  15  Prefactor     5.8078        75.538        .16755E-03   -1.5226    
  16  norm          .10000E-03    1.3268        .84308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2035        44.997        .41606E-03   -1.5489    
  18  norm          .10000E-03    9.1882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.508        16.092        .11325E-03   -1.5000    
  20  norm          20.645        9.6055        .88156E-04   -1.4799    
  21  norm          10.615        14.262        .12298E-03   -1.5056    
  22  norm          .10000E-03    7.7111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .57763E-01    67.768        .18976E-02   -1.5660    
  24  Prefactor     .10000E-03    5.6926        .17496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3075        5.8275        .97036E-03   -1.5293    
  26  Prefactor     .10000E-03    31.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.8342        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    71.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .75181        5.0887        .31635E-02   -1.5535    
  31  Normalizat    .75155        .21487        .26657E-03   -1.0189    
  32  Prefactor     1.2523        .26384        .26832E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0289e-07
Minuit parameter uncertainties:
  1  0.000257319
  2  3.1907
  3  0.000133036
  4  2.7831
  5  2.90077
  6  7.23962e-07
  7  1.3587e-06
  8  10.9298
  9  20.327
  10  74.3181
  11  7.03659
  12  3.87484e-06
  13  8.124
  14  56.985
  15  41.9556
  16  3.85052e-07
  17  14.7293
  18  2.43813e-05
  19  16.0978
  20  9.60625
  21  14.2669
  22  2.09062e-05
  23  3.95809
  24  1.41345e-05
  25  5.82829
  26  3.20217e-05
  27  4.49693e-06
  28  7.50424e-06
  29  0.000243643
  30  3.91214
  31  0.215109
  32  0.264121
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  7.651e+00  8.124e+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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.252e+00  2.641e-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:  7.515e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.89e-05

TS (Fixed Index): 2.26
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/41042/likelihoodResults_249696001_249955201_4FGL_J1257.8+3228_daily_bin40.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) = 5653.22660107
delta logL = 0.408073247835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5653.21466447
delta logL = 0.420009853935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2070       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8938       1.0000          .0000       5.0000    
     3 'Normalizat'    .71466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2836       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=   5653.215     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2058        71.131        .44041E-02    .32310E-03
   2  alpha         2.8941        3.9334        .32313        .48604E-04
   3  Normalizat    .71501        .66879E-01    .61630E-01   -.23753E-05
   4  Prefactor     1.2831        .75986E-01    .60015E-01   -.24107E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.20578
  alpha      = 2.89414
  Normalizat = 0.715007
  Prefactor  = 1.28312
 **********
 **   18 **HESSE 
 **********

 FCN=   5653.215     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2058        6.2693        .10983E-03   -1.5252    
   2  alpha         2.8941        .87616        .12170E-01    .15832    
   3  Normalizat    .71501        .20959        .27263E-03   -1.0330    
   4  Prefactor     1.2831        .26209        .26540E-03   -.83810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20379e-12
Minuit parameter uncertainties:
  1  6.27012
  2  0.895679
  3  0.20982
  4  0.262362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41042': 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) = 5653.21466244
delta logL = 0.420011884605

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  5.206e+00  6.270e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.894e+00  8.957e-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.283e+00  2.624e-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:  7.150e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.89 +/- 0.90
Photon Flux (Free Index): 7.33e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.16e-05

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/41042/cmap_HighResolution_249696001_249955201_4FGL_J1257.8+3228_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-05', comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='1.65e-05', photon_flux_error='4.76e-08', dlogl='4.20e-01', energy_flux='1.78e-05', photon_flux2='7.33e-08', job_status='DONE', time_completed='2021-09-06 12:08:03.681358', photon_index_error2='0.90', photon_index2='2.89', ts='2.26', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.16e-05', EG='0.75', time_epoch_completed='1630955283.68', return_code='0', job_id='41042', GAL2='1.28', EG2='0.72', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='5.39e-08', ts2='3.17', photon_index='2.22' WHERE bin_id='40' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:08:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 41042: <4FGL_J1257.8+3228_daily_bin40> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin40> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 11:51:43 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:51:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:51:44 2021
Terminated at Mon Sep  6 12:08:04 2021
Results reported at Mon Sep  6 12:08:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin40 194.473 32.4721 249696001 249955201 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 :                                   852.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

