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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1015
RA = 194.473, Dec = 32.4721
tmin = 502416001, tmax = 502675201
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='47712', job_status='RUN', time_executed='2021-09-06 12:11:14.433952', time_epoch_executed='1630955474.43' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47712/ft1_4FGL_J1257.8+3228_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47712/ft2_4FGL_J1257.8+3228_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47712/ft1_4FGL_J1257.8+3228_daily_bin1015.fits outfile=/scratch/kocevski/47712/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1015.fits ra=194.473 dec=32.4721 rad=12.0 tmin=502416001.0 tmax=502675201.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47712/ft2_4FGL_J1257.8+3228_daily_bin1015.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/47712/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/47712/ft1_filtered_4FGL_J1257.8+3228_daily_bin1015.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47712/ft1_filtered_4FGL_J1257.8+3228_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/47712/ft2_4FGL_J1257.8+3228_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/47712/ltcube_502416001_502675201_4FGL_J1257.8+3228_daily_bin1015.fits outfile=/scratch/kocevski/47712/expmap_502416001_502675201_4FGL_J1257.8+3228_daily_bin1015.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/47712/ltcube_502416001_502675201_4FGL_J1257.8+3228_daily_bin1015.fits
.....................!
real 189.99
user 185.41
sys 4.17

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/47712/ft1_filtered_4FGL_J1257.8+3228_daily_bin1015.fits scfile=/scratch/kocevski/47712/ft2_4FGL_J1257.8+3228_daily_bin1015.fits outfile=/scratch/kocevski/47712/cmap_502416001_502675201_4FGL_J1257.8+3228_daily_bin1015.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47712/ft1_filtered_4FGL_J1257.8+3228_daily_bin1015.fits scfile=/scratch/kocevski/47712/ft2_4FGL_J1257.8+3228_daily_bin1015.fits outfile=/scratch/kocevski/47712/cmap_HighResolution_502416001_502675201_4FGL_J1257.8+3228_daily_bin1015.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/47712/ft1_filtered_4FGL_J1257.8+3228_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/47712/ft2_4FGL_J1257.8+3228_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/47712/Model_4FGL_J1257.8+3228_daily_bin1015.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/47712/ft1_filtered_4FGL_J1257.8+3228_daily_bin1015.fits.....................!
real 50.21
user 48.85
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.518       1.0000         .10000E-03   10000.    
     2 'norm      '    11.817       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .67077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7819       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4030       1.0000         .10000E-03   10000.    
    16 'norm      '    .27666E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.2397       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2045       1.0000         .10000E-03   10000.    
    21 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.523       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9820       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.8772       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.1342       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2645       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73962       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=   5944.313     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4378 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.554        38.265       -.26809E-05   -.25412E-03
   2  norm          11.817        3.8408       -.35001E-07   -.10255E-03
   3  Prefactor     .10000E-03    7.2993       -.21234E-06** at limit **
   4  Prefactor     1.6764        2.0295        .14716E-08   -.52480E-04
   5  Prefactor     .67090        1.7250        .45357E-06   -.73462E-05
   6  Prefactor     .10000E-03    2.2858       -.13936E-06** at limit **
   7  norm          3.7822        3.3299       -.11638E-06   -.10584E-03
   8  Prefactor     11.853        10.735        .82115E-06   -.68416E-04
   9  Prefactor     .10000E-03    7.4294       -.31061E-07** at limit **
  10  Prefactor     .10000E-03    17.865        .15467E-05** at limit **
  11  Prefactor     .25917        4.7061        .55433E-07   -.87079E-04
  12  Prefactor     .10000E-03    5.2411        .37357E-06** at limit **
  13  norm          1.3817        4.1847        .11277E-05   -.65151E-04
  14  Prefactor     .10000E-03    22.171       -.10429E-05** at limit **
  15  Prefactor     6.3958        22.152        .10944E-05    .86719E-04
  16  norm          .10039E-03    2.0655        .89340E-06** at limit **
  17  Prefactor     .10000E-03    6.6287        .25933E-06** at limit **
  18  norm          .10000E-03    2.2541        .18984E-06** at limit **
  19  norm          4.2400        7.9953        .35252E-05   -.68547E-04
  20  norm          2.2031        3.1137       -.68180E-09   -.11363E-03
  21  norm          .10000E-03    2.9279       -.89906E-07** at limit **
  22  norm          15.520        14.715        .22400E-06   -.12499E-04
  23  Prefactor     2.9826        3.0543        .11836E-06   -.84070E-04
  24  Prefactor     .10000E-03    10.172        .33459E-06** at limit **
  25  norm          .10000E-03    2.3381        .88344E-07** at limit **
  26  Prefactor     .10000E-03    21.562       -.95264E-06** at limit **
  27  Prefactor     6.8742        12.004        .26418E-06   -.15108E-05
  28  Prefactor     .10000E-03    12.908       -.58155E-06** at limit **
  29  Prefactor     4.9883        128.61       -.84584E-05   -.43729E-04
  30  Prefactor     .10000E-03    3.5320        .12194E-06** at limit **
  31  Normalizat    1.2646        .17689       -.16932E-06   -.29166E-03
  32  Prefactor     .73954        .21023       -.82513E-06   -.14270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.5541
  norm       = 11.8167
  Prefactor  = 0.0001
  Prefactor  = 1.6764
  Prefactor  = 0.670903
  Prefactor  = 0.0001
  norm       = 3.78216
  Prefactor  = 11.853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.259173
  Prefactor  = 0.0001
  norm       = 1.38173
  Prefactor  = 0.0001
  Prefactor  = 6.39585
  norm       = 0.00010039
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.23997
  norm       = 2.20309
  norm       = 0.0001
  norm       = 15.5204
  Prefactor  = 2.98262
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.87416
  Prefactor  = 0.0001
  Prefactor  = 4.98828
  Prefactor  = 0.0001
  Normalizat = 1.26459
  Prefactor  = 0.739537
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.313     FROM HESSE     STATUS=OK           659 CALLS     5037 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.554        39.146        .54325E-04   -1.4229    
   2  norm          11.817        3.8259        .79199E-04   -1.5020    
   3  Prefactor     .10000E-03    7.4597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6764        2.0119        .11191E-03   -1.5449    
   5  Prefactor     .67090        1.6805        .15292E-03   -1.5544    
   6  Prefactor     .10000E-03    2.3042        .11379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7822        3.3286        .12796E-03   -1.5319    
   8  Prefactor     11.853        10.698        .58171E-03   -1.5019    
   9  Prefactor     .10000E-03    7.4353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .25917        20.265        .32142E-02   -1.5606    
  12  Prefactor     .10000E-03    5.3397        .17226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3817        4.1139        .23678E-03   -1.5473    
  14  Prefactor     .10000E-03    22.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3958        22.027        .15862E-03   -1.5202    
  16  norm          .10039E-03    30.394        .20558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.6528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2755        .11298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.2400        8.1257        .97847E-03   -1.5296    
  20  norm          2.2031        3.0641        .14876E-03   -1.5411    
  21  norm          .10000E-03    2.9364        .12837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.520        14.700        .10166E-03   -1.4920    
  23  Prefactor     2.9826        3.0350        .12749E-03   -1.5363    
  24  Prefactor     .10000E-03    10.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.3431        .11512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.8742        11.994        .15299E-03   -1.5184    
  28  Prefactor     .10000E-03    12.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.9883        132.45        .17743E-03   -1.5261    
  30  Prefactor     .10000E-03    3.6825        .28286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2646        .20365        .21002E-03   -.84630    
  32  Prefactor     .73954        .24338        .32506E-03   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7376e-08
Minuit parameter uncertainties:
  1  39.1645
  2  3.82601
  3  2.24561e-05
  4  2.01193
  5  1.68058
  6  3.75208e-06
  7  3.32876
  8  10.6999
  9  6.84455e-06
  10  0.000152684
  11  4.58426
  12  5.81692e-06
  13  4.11471
  14  0.000129758
  15  22.0547
  16  0.00688666
  17  2.96487e-06
  18  1.43929e-06
  19  8.12782
  20  3.06431
  21  3.21843e-06
  22  14.7039
  23  3.03514
  24  1.76733e-05
  25  1.23914e-06
  26  0.000104005
  27  11.9986
  28  5.5988e-05
  29  51.5341
  30  3.20338e-06
  31  0.203782
  32  0.243728
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.382e+00  4.115e+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.395e-01  2.437e-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.265e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/47712/likelihoodResults_502416001_502675201_4FGL_J1257.8+3228_daily_bin1015.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) = 5944.11227008
delta logL = 0.201110640712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5944.09918942
delta logL = 0.214191297989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0588       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3303       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75875       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=   5944.099     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0532        30.919        .11925E-01    .62381E-03
   2  alpha         3.3355        4.0085        .44468        .28562E-04
   3  Normalizat    1.2368        .35484E-01    .34030E-01   -.18480E-04
   4  Prefactor     .75964        .43015E-01    .72546E-01   -.18982E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05322
  alpha      = 3.33555
  Normalizat = 1.23683
  Prefactor  = 0.759643
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.099     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0532        5.7803        .10623E-03   -1.5503    
   2  alpha         3.3355        4.0013        .23114E-01    .34078    
   3  Normalizat    1.2368        .20676        .21197E-03   -.85472    
   4  Prefactor     .75964        .24688        .32106E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8031e-10
Minuit parameter uncertainties:
  1  4.93524
  2  3.27412
  3  0.206902
  4  0.247238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47712': 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) = 5944.0991795
delta logL = 0.214201212268

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.053e+00  4.935e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.336e+00  3.274e+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:  7.596e-01  2.472e-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.237e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 194.473 32.472

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/47712/cmap_HighResolution_502416001_502675201_4FGL_J1257.8+3228_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-09-06 12:26:02.892280', job_id='47712', GAL2='0.76', fit_tolerance='1e-08', EG2='1.24', EG='1.26', time_epoch_completed='1630956362.89', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.14e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1015' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:26:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 47712: <4FGL_J1257.8+3228_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1015> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:10:49 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:10:51 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:51 2021
Terminated at Mon Sep  6 12:26:03 2021
Results reported at Mon Sep  6 12:26:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1015 194.473 32.4721 502416001 502675201 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 :                                   883.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

