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

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


Waiting 9 seconds before starting...
Proceeding.

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

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

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

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

number of points = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin251
RA = 194.473, Dec = 32.4721
tmin = 304387201, tmax = 304646401
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='42617', job_status='RUN', time_executed='2021-09-06 11:56:42.824473', time_epoch_executed='1630954602.82' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42617/ft1_4FGL_J1257.8+3228_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42617/ft2_4FGL_J1257.8+3228_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42617/ft1_4FGL_J1257.8+3228_daily_bin251.fits outfile=/scratch/kocevski/42617/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin251.fits ra=194.473 dec=32.4721 rad=12.0 tmin=304387201.0 tmax=304646401.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.39
user 3.97
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42617/ft2_4FGL_J1257.8+3228_daily_bin251.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/42617/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin251.fits evtable="EVENTS" outfile="/scratch/kocevski/42617/ft1_filtered_4FGL_J1257.8+3228_daily_bin251.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.55
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42617/ft1_filtered_4FGL_J1257.8+3228_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/42617/ft2_4FGL_J1257.8+3228_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/42617/ltcube_304387201_304646401_4FGL_J1257.8+3228_daily_bin251.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/42617/ft2_4FGL_J1257.8+3228_daily_bin251.fits
.....................!
real 12.08
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42617/ft1_filtered_4FGL_J1257.8+3228_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/42617/ft2_4FGL_J1257.8+3228_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/42617/ltcube_304387201_304646401_4FGL_J1257.8+3228_daily_bin251.fits outfile=/scratch/kocevski/42617/expmap_304387201_304646401_4FGL_J1257.8+3228_daily_bin251.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/42617/ltcube_304387201_304646401_4FGL_J1257.8+3228_daily_bin251.fits
.....................!
real 191.68
user 185.46
sys 5.64

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42617/ft1_filtered_4FGL_J1257.8+3228_daily_bin251.fits scfile=/scratch/kocevski/42617/ft2_4FGL_J1257.8+3228_daily_bin251.fits outfile=/scratch/kocevski/42617/cmap_HighResolution_304387201_304646401_4FGL_J1257.8+3228_daily_bin251.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.473 yref=32.4721 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.097       1.0000         .10000E-03   10000.    
     2 'norm      '    22.267       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7616       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19362E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0702       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0358       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.284       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2848       1.0000         .10000E-03   10000.    
    21 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6092       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.384       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.0104       1.0000         .10000E-03   10000.    
    29 'Prefactor '    23.737       1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.625       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1220       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80975       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=   5463.693     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4319 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.100        41.804        .31271E-06    .68815E-04
   2  norm          22.267        5.9240        .41495E-08   -.45531E-04
   3  Prefactor     .10000E-03    2.0171        .15287E-07** at limit **
   4  Prefactor     6.7614        3.4298       -.79734E-08   -.19174E-04
   5  Prefactor     1.5519        1.6039       -.40626E-07   -.14985E-03
   6  Prefactor     .10053E-03    7.5919        .13588E-05** at limit **
   7  norm          1.0651        4.0806        .30527E-05    .60744E-04
   8  Prefactor     .10000E-03    23.679       -.15499E-05** at limit **
   9  Prefactor     10.513        19.412        .14516E-06   -.61929E-05
  10  Prefactor     .10000E-03    20.719       -.85476E-06** at limit **
  11  Prefactor     .10000E-03    3.2346        .31039E-07** at limit **
  12  Prefactor     .10000E-03    2.9449       -.28832E-08** at limit **
  13  norm          3.0478        3.6956        .29022E-07   -.63328E-04
  14  Prefactor     .10000E-03    29.523        .12532E-05** at limit **
  15  Prefactor     .10000E-03    20.058       -.66045E-06** at limit **
  16  norm          4.0359        4.3869        .22891E-06    .44696E-04
  17  Prefactor     21.284        17.516       -.95277E-08   -.83231E-05
  18  norm          .10000E-03    3.2226       -.56264E-07** at limit **
  19  norm          .10000E-03    16.661        .14315E-05** at limit **
  20  norm          3.2858        2.8818       -.53569E-07   -.37953E-04
  21  norm          .10000E-03    4.6748       -.34031E-08** at limit **
  22  norm          .10000E-03    8.9549        .17450E-06** at limit **
  23  Prefactor     2.6091        3.9212        .32933E-06    .84606E-04
  24  Prefactor     .10000E-03    10.009       -.35337E-06** at limit **
  25  norm          11.385        7.6940        .50171E-07   -.27783E-05
  26  Prefactor     .10000E-03    64.110       -.10648E-05** at limit **
  27  Prefactor     .10000E-03    4.0709        .93963E-08** at limit **
  28  Prefactor     8.0109        18.703        .30626E-06    .16539E-05
  29  Prefactor     23.737        35.026       -.33892E-07   -.18619E-04
  30  Prefactor     18.625        6.5935        .24184E-07   -.15660E-04
  31  Normalizat    1.1219        .19392       -.63149E-06   -.96858E-04
  32  Prefactor     .80976        .22635        .35442E-07   -.93228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.1002
  norm       = 22.2669
  Prefactor  = 0.0001
  Prefactor  = 6.76144
  Prefactor  = 1.5519
  Prefactor  = 0.000100534
  norm       = 1.06507
  Prefactor  = 0.000100003
  Prefactor  = 10.5128
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04779
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 4.03592
  Prefactor  = 21.2841
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 3.28576
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.6091
  Prefactor  = 0.0001
  norm       = 11.3849
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 8.01088
  Prefactor  = 23.7367
  Prefactor  = 18.6249
  Normalizat = 1.12191
  Prefactor  = 0.80976
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.693     FROM HESSE     STATUS=OK           663 CALLS     4982 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.100        41.853        .48998E-04   -1.4068    
   2  norm          22.267        5.9309        .83087E-04   -1.4764    
   3  Prefactor     .10000E-03    2.0193        .10252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7614        3.4356        .88555E-04   -1.5188    
   5  Prefactor     1.5519        1.6024        .91644E-04   -1.5459    
   6  Prefactor     .10053E-03    44.994        .35318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0651        4.1102        .28078E-03   -1.5502    
   8  Prefactor     .10000E-03    24.787        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.513        19.397        .12356E-03   -1.5059    
  10  Prefactor     .10000E-03    20.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2470        .12982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9544        .12378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0478        3.6847        .15060E-03   -1.5359    
  14  Prefactor     .10000E-03    29.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0359        4.3781        .15379E-03   -1.5306    
  17  Prefactor     21.284        17.525        .86819E-04   -1.4785    
  18  norm          .10000E-03    3.2439        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2858        2.8717        .11175E-03   -1.5345    
  21  norm          .10000E-03    4.6990        .15570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.9824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.6091        3.8948        .16446E-03   -1.5385    
  24  Prefactor     .10000E-03    10.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.385        7.6947        .11873E-03   -1.5033    
  26  Prefactor     .10000E-03    64.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.0741        .14565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.0109        18.702        .14166E-03   -1.5142    
  29  Prefactor     23.737        35.033        .82216E-04   -1.4733    
  30  Prefactor     18.625        6.5955        .92807E-04   -1.4845    
  31  Normalizat    1.1219        .22511        .23224E-03   -.89051    
  32  Prefactor     .80976        .26134        .32792E-03   -.99370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19649e-08
Minuit parameter uncertainties:
  1  41.871
  2  5.9311
  3  6.93404e-07
  4  3.4357
  5  1.60244
  6  0.00981018
  7  4.11133
  8  0.000525865
  9  19.4089
  10  0.000386359
  11  5.64125e-06
  12  3.63406e-07
  13  3.68501
  14  0.000667106
  15  0.000265423
  16  4.3784
  17  17.5293
  18  8.03888e-06
  19  0.000519203
  20  2.87182
  21  1.10104e-07
  22  5.1466e-05
  23  3.89521
  24  0.000100403
  25  7.69536
  26  0.000821173
  27  2.13159e-06
  28  18.7158
  29  35.0636
  30  6.59574
  31  0.225303
  32  0.261739
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.048e+00  3.685e+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:  8.098e-01  2.617e-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.122e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 7.08e-06 +/- 8.56e-06

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

Saving results to:
/scratch/kocevski/42617/likelihoodResults_304387201_304646401_4FGL_J1257.8+3228_daily_bin251.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) = 5463.69293423
delta logL = 5.97357029619e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5463.69293403
delta logL = 7.97926077212e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0478       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2200       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80976       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=   5463.693     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      183 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0469        3.9639        .58100E-02    .25732E-03
   2  alpha         2.2205        1.0810        .41482E-01    .13663E-03
   3  Normalizat    1.1219        .18500        .37172E-01    .43155E-05
   4  Prefactor     .80978        .22560        .74095E-01    .15316E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.04687
  alpha      = 2.22052
  Normalizat = 1.12188
  Prefactor  = 0.809785
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.693     FROM HESSE     STATUS=OK            31 CALLS      214 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0469        3.7444        .15055E-03   -1.5359    
   2  alpha         2.2205        1.0297        .82965E-02   -.11202    
   3  Normalizat    1.1219        .21422        .23225E-03   -.89052    
   4  Prefactor     .80978        .26052        .32792E-03   -.99369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75681e-12
Minuit parameter uncertainties:
  1  3.7447
  2  1.06168
  3  0.214386
  4  0.260913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42617': 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) = 5463.69293389
delta logL = 9.33353476285e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.047e+00  3.745e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.221e+00  1.062e+00  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:  8.098e-01  2.609e-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.122e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.22 +/- 1.06
Photon Flux (Free Index): 1.79e-08 +/- 2.74e-08
Energy Flux (Free Index): 7.08e-06 +/- 8.89e-06

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/42617/cmap_HighResolution_304387201_304646401_4FGL_J1257.8+3228_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='7.08e-06', photon_flux_error='2.16e-08', dlogl='9.33e-07', energy_flux='7.08e-06', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-06 12:11:22.165295', photon_index_error2='1.06', photon_index2='2.22', ts='1.29', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='7.65e-08', energy_flux_error2='8.89e-06', EG='1.12', time_epoch_completed='1630955482.17', return_code='0', job_id='42617', GAL2='0.81', EG2='1.12', return_code2='0', energy_flux_error='8.56e-06', photon_flux_error2='2.74e-08', ts2='1.29', photon_index='2.22' WHERE bin_id='251' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 42617: <4FGL_J1257.8+3228_daily_bin251> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin251> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:56:01 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:56:02 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:56:02 2021
Terminated at Mon Sep  6 12:11:22 2021
Results reported at Mon Sep  6 12:11:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin251 194.473 32.4721 304387201 304646401 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 :                                   866.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

