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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1535
RA = 194.473, Dec = 32.4721
tmin = 637200001, tmax = 637459201
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='50936', job_status='RUN', time_executed='2021-09-06 12:24:31.163475', time_epoch_executed='1630956271.16' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50936/ft1_4FGL_J1257.8+3228_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50936/ft2_4FGL_J1257.8+3228_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50936/ft1_4FGL_J1257.8+3228_daily_bin1535.fits outfile=/scratch/kocevski/50936/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1535.fits ra=194.473 dec=32.4721 rad=12.0 tmin=637200001.0 tmax=637459201.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 5.38
user 5.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50936/ft1_filtered_4FGL_J1257.8+3228_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/50936/ft2_4FGL_J1257.8+3228_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/50936/ltcube_637200001_637459201_4FGL_J1257.8+3228_daily_bin1535.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/50936/ft2_4FGL_J1257.8+3228_daily_bin1535.fits
.....................!
real 11.81
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50936/ft1_filtered_4FGL_J1257.8+3228_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/50936/ft2_4FGL_J1257.8+3228_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/50936/ltcube_637200001_637459201_4FGL_J1257.8+3228_daily_bin1535.fits outfile=/scratch/kocevski/50936/expmap_637200001_637459201_4FGL_J1257.8+3228_daily_bin1535.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/50936/ltcube_637200001_637459201_4FGL_J1257.8+3228_daily_bin1535.fits
.....................!
real 189.86
user 184.97
sys 4.47

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/50936/ft1_filtered_4FGL_J1257.8+3228_daily_bin1535.fits scfile=/scratch/kocevski/50936/ft2_4FGL_J1257.8+3228_daily_bin1535.fits outfile=/scratch/kocevski/50936/cmap_637200001_637459201_4FGL_J1257.8+3228_daily_bin1535.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.68
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50936/ft1_filtered_4FGL_J1257.8+3228_daily_bin1535.fits scfile=/scratch/kocevski/50936/ft2_4FGL_J1257.8+3228_daily_bin1535.fits outfile=/scratch/kocevski/50936/cmap_HighResolution_637200001_637459201_4FGL_J1257.8+3228_daily_bin1535.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.64
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .14707E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0851       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0199       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16465E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6593       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1881       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.8348       1.0000         .10000E-03   10000.    
    18 'norm      '    8.2525       1.0000         .10000E-03   10000.    
    19 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    16.637       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22155       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17211E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2135       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92114       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=   4922.249     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     3751 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.752        .23900E-06** at limit **
   2  norm          .10003E-03    2.2747       -.50455E-06** at limit **
   3  Prefactor     .10000E-03    3.9122        .27006E-07** at limit **
   4  Prefactor     5.5794        3.2880        .47026E-06    .19892E-03
   5  Prefactor     1.0881        3.3495        .33360E-06   -.73773E-04
   6  Prefactor     .10000E-03    2.1635       -.67725E-07** at limit **
   7  norm          4.0229        4.7484       -.27947E-06    .74629E-04
   8  Prefactor     .10000E-03    121.76        .57732E-05** at limit **
   9  Prefactor     .10000E-03    10.521       -.22389E-06** at limit **
  10  Prefactor     .10000E-03    67.801        .10298E-05** at limit **
  11  Prefactor     .10000E-03    27.376        .29940E-06** at limit **
  12  Prefactor     4.6607        5.0121        .87345E-07   -.55541E-04
  13  norm          .10000E-03    2.4186        .19689E-07** at limit **
  14  Prefactor     .10000E-03    44.194       -.10110E-05** at limit **
  15  Prefactor     4.1920        26.332       -.12749E-05    .10333E-04
  16  norm          .10000E-03    2.9573        .10832E-06** at limit **
  17  Prefactor     8.8333        11.422       -.13878E-06    .15698E-04
  18  norm          8.2518        5.9874       -.10485E-06    .73213E-04
  19  norm          .10000E-03    4.5302        .20447E-07** at limit **
  20  norm          .10000E-03    3.4951        .21355E-06** at limit **
  21  norm          16.633        8.5104       -.97060E-07    .23940E-04
  22  norm          .10000E-03    17.520       -.23087E-06** at limit **
  23  Prefactor     .23145        2.3135       -.19725E-06   -.16284E-04
  24  Prefactor     .10000E-03    22.348        .46483E-06** at limit **
  25  norm          .10000E-03    21.536        .54974E-06** at limit **
  26  Prefactor     .10000E-03    26.726        .29874E-06** at limit **
  27  Prefactor     .10000E-03    9.5009        .34979E-06** at limit **
  28  Prefactor     .10000E-03    174.25        .67822E-05** at limit **
  29  Prefactor     .10000E-03    20.018       -.12451E-06** at limit **
  30  Prefactor     .10000E-03    2.4521        .10461E-06** at limit **
  31  Normalizat    1.2136        .19902        .90947E-06    .22450E-04
  32  Prefactor     .92094        .23112        .10103E-05    .14054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 5.57939
  Prefactor  = 1.08812
  Prefactor  = 0.0001
  norm       = 4.02288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.6607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19204
  norm       = 0.0001
  Prefactor  = 8.83333
  norm       = 8.25184
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.6327
  norm       = 0.0001
  Prefactor  = 0.231448
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21358
  Prefactor  = 0.920942
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.249     FROM HESSE     STATUS=OK           655 CALLS     4406 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10003E-03    33.043        .18958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9217        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5794        3.2251        .89321E-04   -1.5236    
   5  Prefactor     1.0881        3.3468        .20413E-03   -1.5499    
   6  Prefactor     .10000E-03    2.1652        .10077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0229        4.7127        .15934E-03   -1.5307    
   8  Prefactor     .10000E-03    117.81        .42552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6607        5.0116        .15780E-03   -1.5276    
  13  norm          .10000E-03    2.4299        .10643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1920        26.132        .19693E-03   -1.5298    
  16  norm          .10000E-03    2.9822        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.8333        11.414        .13485E-03   -1.5113    
  18  norm          8.2518        5.9892        .13810E-03   -1.5133    
  19  norm          .10000E-03    4.5306        .14584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.5159        .12723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          16.633        8.5204        .98192E-04   -1.4892    
  22  norm          .10000E-03    17.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .23145        16.387        .19563E-02   -1.5612    
  24  Prefactor     .10000E-03    22.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    22.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.5046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    172.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    20.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.4641        .10722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2136        .24220        .23182E-03   -.86184    
  32  Prefactor     .92094        .28101        .30649E-03   -.95413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22152e-08
Minuit parameter uncertainties:
  1  4.06828e-05
  2  0.00183551
  3  8.87153e-06
  4  3.22524
  5  3.34739
  6  1.29667e-06
  7  4.71312
  8  0.000143339
  9  4.47276e-06
  10  0.000368047
  11  0.00025919
  12  5.01209
  13  2.12836e-06
  14  0.000228971
  15  20.946
  16  1.58402e-05
  17  11.417
  18  5.98965
  19  2.63243e-06
  20  8.16629e-06
  21  8.52105
  22  1.74054e-05
  23  3.89522
  24  9.38252e-05
  25  0.00020068
  26  6.27725e-05
  27  3.51905e-05
  28  0.00134232
  29  1.56318e-05
  30  8.37114e-06
  31  0.242426
  32  0.281458
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.128e-06  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:  9.209e-01  2.815e-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.214e+00  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/50936/likelihoodResults_637200001_637459201_4FGL_J1257.8+3228_daily_bin1535.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) = 4922.25108101
delta logL = -0.00194303494573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4922.24913799
delta logL = -1.97560439119e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2221       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92096       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4922.249     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      240 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7791        .10647E-02** at limit **
   2  alpha         2.3623        2.5235        .16591       -.48652E-08
   3  Normalizat    1.2136        .23737        .23182E-03   -.87478E-04
   4  Prefactor     .92094        .27857        .30649E-03   -.70515E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.36228
  Normalizat = 1.21358
  Prefactor  = 0.920942
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.249     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4518        .21294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3623        3.5504        .66364E-02   -.55117E-01
   3  Normalizat    1.2136        .23761        .46365E-04   -.86184    
   4  Prefactor     .92094        .27885        .12259E-04   -.95413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04077e-11
Minuit parameter uncertainties:
  1  2.28981e-06
  2  240.197
  3  0.23782
  4  0.279283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50936': 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) = 4922.24913779
delta logL = 1.82415533345e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.290e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.362e+00  2.402e+02  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  9.209e-01  2.793e-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.214e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.473 32.472

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-05', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-06 12:36:59.342305', job_id='50936', GAL2='0.92', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630957019.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1535' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:36:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 50936: <4FGL_J1257.8+3228_daily_bin1535> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1535> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 12:20:27 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:20:29 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:20:29 2021
Terminated at Mon Sep  6 12:37:00 2021
Results reported at Mon Sep  6 12:37:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1535 194.473 32.4721 637200001 637459201 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 :                                   735.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

