/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7550
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1030
RA = 194.473, Dec = 32.4721
tmin = 506304001, tmax = 506563201
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='47734', job_status='RUN', time_executed='2021-09-06 12:11:05.018090', time_epoch_executed='1630955465.02' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47734

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47734/ft1_4FGL_J1257.8+3228_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47734/ft2_4FGL_J1257.8+3228_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47734/ft1_4FGL_J1257.8+3228_daily_bin1030.fits outfile=/scratch/kocevski/47734/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1030.fits ra=194.473 dec=32.4721 rad=12.0 tmin=506304001.0 tmax=506563201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.53
user 3.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47734/ft1_filtered_4FGL_J1257.8+3228_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/47734/ft2_4FGL_J1257.8+3228_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/47734/ltcube_506304001_506563201_4FGL_J1257.8+3228_daily_bin1030.fits outfile=/scratch/kocevski/47734/expmap_506304001_506563201_4FGL_J1257.8+3228_daily_bin1030.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/47734/ltcube_506304001_506563201_4FGL_J1257.8+3228_daily_bin1030.fits
.....................!
real 190.26
user 185.37
sys 4.55

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/47734/ft1_filtered_4FGL_J1257.8+3228_daily_bin1030.fits scfile=/scratch/kocevski/47734/ft2_4FGL_J1257.8+3228_daily_bin1030.fits outfile=/scratch/kocevski/47734/cmap_506304001_506563201_4FGL_J1257.8+3228_daily_bin1030.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.50
user 0.37
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47734/ft1_filtered_4FGL_J1257.8+3228_daily_bin1030.fits scfile=/scratch/kocevski/47734/ft2_4FGL_J1257.8+3228_daily_bin1030.fits outfile=/scratch/kocevski/47734/cmap_HighResolution_506304001_506563201_4FGL_J1257.8+3228_daily_bin1030.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9182       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8429       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0748       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2618       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48188E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6607       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2990       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11882E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3139       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.5951       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.409       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.1968       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.8630       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0129       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .76223       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=   5150.700     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4303 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.187       -.15657E-06** at limit **
   2  norm          5.0291        2.9606        .21269E-07    .20081E-04
   3  Prefactor     3.9189        4.6840        .20900E-07   -.21720E-04
   4  Prefactor     1.8430        1.7592       -.19625E-07    .10612E-04
   5  Prefactor     2.0750        1.6804        .13816E-07   -.88416E-05
   6  Prefactor     .10000E-03    1.2265        .14075E-08** at limit **
   7  norm          3.6159        3.0482        .24206E-07   -.28599E-04
   8  Prefactor     7.2637        8.9744        .85703E-07   -.77840E-05
   9  Prefactor     .10000E-03    9.8938        .43947E-07** at limit **
  10  Prefactor     .10000E-03    15.716        .18840E-06** at limit **
  11  Prefactor     1.7664        4.5764        .60295E-06   -.12891E-04
  12  Prefactor     .10000E-03    3.7278        .21710E-06** at limit **
  13  norm          2.6608        2.5830        .30349E-07   -.49343E-04
  14  Prefactor     .10000E-03    90.897        .92579E-08** at limit **
  15  Prefactor     .10000E-03    5.6423        .87432E-08** at limit **
  16  norm          6.2988        4.1172       -.58603E-07   -.19747E-05
  17  Prefactor     .10000E-03    39.420        .10285E-05** at limit **
  18  norm          .10000E-03    2.0089        .99543E-08** at limit **
  19  norm          .10000E-03    9.7553        .87918E-07** at limit **
  20  norm          .10000E-03    .95372        .10538E-07** at limit **
  21  norm          .10000E-03    1.3080        .37417E-08** at limit **
  22  norm          .10000E-03    35.686       -.92043E-06** at limit **
  23  Prefactor     1.3153        2.8931        .34202E-06   -.41222E-04
  24  Prefactor     .10000E-03    13.688       -.21002E-06** at limit **
  25  norm          6.5936        6.6756        .16447E-05   -.21723E-03
  26  Prefactor     34.383        46.384       -.71945E-06   -.13534E-03
  27  Prefactor     .10000E-03    7.9756       -.37327E-07** at limit **
  28  Prefactor     6.2007        16.414        .71873E-07   -.99644E-05
  29  Prefactor     .10000E-03    18.396       -.12883E-06** at limit **
  30  Prefactor     4.8636        4.0209        .37301E-07   -.24525E-04
  31  Normalizat    1.0128        .16027        .21406E-07   -.82117E-04
  32  Prefactor     .76221        .19314       -.49946E-06   -.35012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.02908
  Prefactor  = 3.91888
  Prefactor  = 1.84301
  Prefactor  = 2.07495
  Prefactor  = 0.0001
  norm       = 3.61591
  Prefactor  = 7.26373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.76645
  Prefactor  = 0.000100003
  norm       = 2.66079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.29879
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.3153
  Prefactor  = 0.0001
  norm       = 6.59364
  Prefactor  = 34.3834
  Prefactor  = 0.0001
  Prefactor  = 6.20068
  Prefactor  = 0.0001
  Prefactor  = 4.86364
  Normalizat = 1.01275
  Prefactor  = 0.762206
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.700     FROM HESSE     STATUS=OK           657 CALLS     4960 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0291        2.9512        .88107E-04   -1.5259    
   3  Prefactor     3.9189        4.6805        .16485E-03   -1.5312    
   4  Prefactor     1.8430        1.7684        .87296E-04   -1.5436    
   5  Prefactor     2.0750        1.6750        .79855E-04   -1.5420    
   6  Prefactor     .10000E-03    1.2277        .77621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6159        3.0440        .11171E-03   -1.5328    
   8  Prefactor     7.2637        8.9602        .14885E-03   -1.5169    
   9  Prefactor     .10000E-03    9.9108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7664        4.5432        .23907E-03   -1.5442    
  12  Prefactor     .10000E-03    22.470        .26327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6608        2.5770        .11045E-03   -1.5382    
  14  Prefactor     .10000E-03    91.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6463        .16648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2988        4.1128        .11303E-03   -1.5206    
  17  Prefactor     .10000E-03    40.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0186        .99291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.7868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .96028        .68402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3084        .80157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    36.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3153        2.8400        .16423E-03   -1.5479    
  24  Prefactor     .10000E-03    13.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.5936        6.6852        .78131E-03   -1.5194    
  26  Prefactor     34.383        46.141        .68315E-04   -1.4535    
  27  Prefactor     .10000E-03    8.0008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.2007        16.414        .16127E-03   -1.5210    
  29  Prefactor     .10000E-03    18.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.8636        4.0192        .12668E-03   -1.5267    
  31  Normalizat    1.0128        .18872        .20551E-03   -.92604    
  32  Prefactor     .76221        .22731        .28701E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26807e-10
Minuit parameter uncertainties:
  1  5.83002e-05
  2  2.95124
  3  4.68092
  4  1.76841
  5  1.675
  6  3.17277e-08
  7  3.04417
  8  8.96185
  9  5.71689e-06
  10  7.14172e-05
  11  4.54413
  12  0.000549194
  13  2.57707
  14  7.62737e-05
  15  1.09488e-06
  16  4.11295
  17  0.000205646
  18  1.30615e-06
  19  1.80804e-05
  20  6.95679e-07
  21  3.02627e-07
  22  0.00031792
  23  2.84024
  24  6.13677e-06
  25  6.68591
  26  46.1887
  27  5.38717e-06
  28  16.426
  29  4.63115e-05
  30  4.01939
  31  0.188849
  32  0.227585
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.661e+00  2.577e+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:  7.622e-01  2.276e-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.013e+00  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.56e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 6.18e-06 +/- 5.99e-06

TS (Fixed Index): 2.33
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47734/likelihoodResults_506304001_506563201_4FGL_J1257.8+3228_daily_bin1030.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) = 5150.54993935
delta logL = 0.15055863313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5150.53933563
delta logL = 0.161162352287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0633       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7580       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75644       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=   5150.539     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0647        7.1659        .57944E-02    .31579E-04
   2  alpha         1.7583        1.4616        .43716       -.61911E-05
   3  Normalizat    1.0192        .15770        .43460E-01    .32869E-05
   4  Prefactor     .75647        .19398        .65090E-01    .16440E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06471
  alpha      = 1.75829
  Normalizat = 1.01925
  Prefactor  = 0.756466
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.539     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0647        2.9438        .11768E-03   -1.5358    
   2  alpha         1.7583        .75051        .18889E-01   -.30122    
   3  Normalizat    1.0192        .18357        .20490E-03   -.92388    
   4  Prefactor     .75647        .22610        .28795E-03   -1.0135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69987e-11
Minuit parameter uncertainties:
  1  2.94398
  2  0.763456
  3  0.183685
  4  0.226374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47734': 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) = 5150.53933542
delta logL = 0.161162562853

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.065e+00  2.944e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.758e+00  7.635e-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:  7.565e-01  2.264e-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.019e+00  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.76 +/- 0.76
Photon Flux (Free Index): 1.15e-08 +/- 1.30e-08
Energy Flux (Free Index): 9.69e-06 +/- 1.32e-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/47734/cmap_HighResolution_506304001_506563201_4FGL_J1257.8+3228_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', comment='SUCCESS', photon_flux='1.56e-08', energy_flux2='9.69e-06', photon_flux_error='1.51e-08', dlogl='1.61e-01', energy_flux='6.18e-06', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-06 12:24:31.689070', photon_index_error2='0.76', photon_index2='1.76', ts='2.33', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='5.77e-08', energy_flux_error2='1.32e-05', EG='1.01', time_epoch_completed='1630956271.69', return_code='0', job_id='47734', GAL2='0.76', EG2='1.02', return_code2='0', energy_flux_error='5.99e-06', photon_flux_error2='1.30e-08', ts2='2.65', photon_index='2.22' WHERE bin_id='1030' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:24:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 47734: <4FGL_J1257.8+3228_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1030> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:10:50 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:10:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:10:52 2021
Terminated at Mon Sep  6 12:24:32 2021
Results reported at Mon Sep  6 12:24:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1030 194.473 32.4721 506304001 506563201 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 :                                   801.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

