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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1595
RA = 194.473, Dec = 32.4721
tmin = 652752001, tmax = 653011201
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='52819', job_status='RUN', time_executed='2021-09-11 00:15:24.487459', time_epoch_executed='1631344524.49' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52819/ft1_4FGL_J1257.8+3228_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52819/ft2_4FGL_J1257.8+3228_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52819/ft1_4FGL_J1257.8+3228_daily_bin1595.fits outfile=/scratch/kocevski/52819/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1595.fits ra=194.473 dec=32.4721 rad=12.0 tmin=652752001.0 tmax=653011201.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.15
user 2.92
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52819/ft1_filtered_4FGL_J1257.8+3228_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/52819/ft2_4FGL_J1257.8+3228_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/52819/ltcube_652752001_653011201_4FGL_J1257.8+3228_daily_bin1595.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/52819/ft2_4FGL_J1257.8+3228_daily_bin1595.fits
.....................!
real 12.29
user 11.85
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52819/ft1_filtered_4FGL_J1257.8+3228_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/52819/ft2_4FGL_J1257.8+3228_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/52819/ltcube_652752001_653011201_4FGL_J1257.8+3228_daily_bin1595.fits outfile=/scratch/kocevski/52819/expmap_652752001_653011201_4FGL_J1257.8+3228_daily_bin1595.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/52819/ltcube_652752001_653011201_4FGL_J1257.8+3228_daily_bin1595.fits
.....................!
real 190.70
user 185.47
sys 4.88

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/52819/ft1_filtered_4FGL_J1257.8+3228_daily_bin1595.fits scfile=/scratch/kocevski/52819/ft2_4FGL_J1257.8+3228_daily_bin1595.fits outfile=/scratch/kocevski/52819/cmap_652752001_653011201_4FGL_J1257.8+3228_daily_bin1595.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52819/ft1_filtered_4FGL_J1257.8+3228_daily_bin1595.fits scfile=/scratch/kocevski/52819/ft2_4FGL_J1257.8+3228_daily_bin1595.fits outfile=/scratch/kocevski/52819/cmap_HighResolution_652752001_653011201_4FGL_J1257.8+3228_daily_bin1595.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2160.0       1.0000         .10000E-03   10000.    
     2 'norm      '    4.0466       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.461       1.0000         .10000E-03   10000.    
     7 'norm      '    15.772       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    605.02       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.9622       1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    31.880       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .73773E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    96.542       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.432       1.0000         .10000E-03   10000.    
    28 'Prefactor '    32.081       1.0000         .10000E-03   10000.    
    29 'Prefactor '    88.105       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.4279       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86252E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.7202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1641.985     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     4288 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2160.0        1.0016       -.83900E-08    .15650E-02
   2  norm          4.0441        1.0091        .12553E-06   -.18080E-04
   3  Prefactor     48.191        1.3131        .72734E-06   -.36806E-02
   4  Prefactor     .10015E-03    6.7053       -.23692E-04** at limit **
   5  Prefactor     .10000E-03    5.2628        .47718E-06** at limit **
   6  Prefactor     45.458        1.1246       -.44592E-06    .20708E-02
   7  norm          15.771        1.0027       -.46546E-07    .22115E-04
   8  Prefactor     .10035E-03    12.294        .20774E-04** at limit **
   9  Prefactor     61.003        1.0001       -.95235E-08    .67348E-04
  10  Prefactor     605.02        1.0014        .12937E-07   -.80872E-03
  11  Prefactor     .10003E-03    3.5908       -.28398E-05** at limit **
  12  Prefactor     .10006E-03    4.8934        .14644E-04** at limit **
  13  norm          .10004E-03    3.9187        .56629E-05** at limit **
  14  Prefactor     .10770E-03    36.619       -.31422E-04** at limit **
  15  Prefactor     .10107E-03    20.602        .24741E-05** at limit **
  16  norm          .10000E-03    2.6566       -.37371E-06** at limit **
  17  Prefactor     .10004E-03    8.4723       -.17222E-04** at limit **
  18  norm          3.9567        1.0137       -.18140E-06    .32149E-04
  19  norm          .10071E-03    9.6972        .19922E-05** at limit **
  20  norm          31.879        1.0119       -.13882E-06    .10685E-03
  21  norm          .10015E-03    6.5762        .24425E-04** at limit **
  22  norm          .10029E-03    8.3100        .63699E-06** at limit **
  23  Prefactor     .10000E-03    5.7699       -.39792E-07** at limit **
  24  Prefactor     .10386E-03    15.901        .37103E-04** at limit **
  25  norm          .10016E-03    1.4832        .27995E-05** at limit **
  26  Prefactor     96.540        1.0572       -.21266E-06    .22076E-02
  27  Prefactor     22.426        1.3419       -.10201E-05    .20818E-02
  28  Prefactor     32.076        1.2375       -.71680E-06    .21808E-02
  29  Prefactor     88.105        1.0004       -.20450E-07    .20090E-03
  30  Prefactor     8.4257        1.0207        .36494E-06    .37293E-04
  31  Normalizat    .85803E-01    .48231       -.46627E-04   -.19010E-04
  32  Prefactor     1.7208        .49845        .13758E-04   -.87781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2160.04
  norm       = 4.0441
  Prefactor  = 48.1909
  Prefactor  = 0.000100149
  Prefactor  = 0.0001
  Prefactor  = 45.458
  norm       = 15.7715
  Prefactor  = 0.000100347
  Prefactor  = 61.003
  Prefactor  = 605.019
  Prefactor  = 0.000100033
  Prefactor  = 0.000100061
  norm       = 0.000100042
  Prefactor  = 0.000107703
  Prefactor  = 0.000101074
  norm       = 0.0001
  Prefactor  = 0.000100044
  norm       = 3.95673
  norm       = 0.000100714
  norm       = 31.8786
  norm       = 0.000100147
  norm       = 0.000100285
  Prefactor  = 0.0001
  Prefactor  = 0.000103862
  norm       = 0.000100163
  Prefactor  = 96.5398
  Prefactor  = 22.4256
  Prefactor  = 32.0763
  Prefactor  = 88.1052
  Prefactor  = 8.42574
  Normalizat = 0.0858031
  Prefactor  = 1.72075
 **********
 **   18 **HESSE 
 **********

 FCN=   1641.985     FROM HESSE     STATUS=NOT POSDEF   721 CALLS     5009 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2160.0        2568.8        .24300E-03   -.60406    
   2  norm          4.0441        13.114        .50112E-02   -1.5306    
   3  Prefactor     48.191        55.421        .14441E-02   -1.4318    
   4  Prefactor     .10015E-03    7.9393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.458        41.869        .14866E-02   -1.4358    
   7  norm          15.771        19.017        .25212E-02   -1.4913    
   8  Prefactor     .10035E-03    23.423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     61.003        72.594        .12843E-02   -1.4144    
  10  Prefactor     605.02        621.80        .41944E-03   -1.0738    
  11  Prefactor     .10003E-03    6.7258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10006E-03    6.5678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10004E-03    8.7204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10770E-03    60.574        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10107E-03    48.249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3185        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    15.166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9567        12.288        .50660E-02   -1.5310    
  19  norm          .10071E-03    20.724        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          31.879        17.764        .17741E-02   -1.4578    
  21  norm          .10015E-03    9.3730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10029E-03    13.181        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.0999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10386E-03    35.859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10016E-03    15.787        .74186E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     96.540        235.69        .10227E-02   -1.3740    
  27  Prefactor     22.426        50.892        .21143E-02   -1.4760    
  28  Prefactor     32.076        61.623        .17686E-02   -1.4575    
  29  Prefactor     88.105        318.98        .10701E-02   -1.3828    
  30  Prefactor     8.4257        16.040        .34522E-02   -1.5127    
  31  Normalizat    .85803E-01    9.4455        .18407       -1.3964    
  32  Prefactor     1.7208        2.1585        .54687E-01   -.71531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.97156e-06
Minuit parameter uncertainties:
  1  2774.25
  2  13.1235
  3  55.4802
  4  0.00217415
  5  2.07187e-05
  6  41.8961
  7  19.0243
  8  0.00570189
  9  72.6999
  10  629.072
  11  0.000946629
  12  0.00126928
  13  0.00120632
  14  0.0432469
  15  0.014412
  16  1.24875e-05
  17  0.00163583
  18  12.2959
  19  0.00769577
  20  17.7674
  21  0.00234603
  22  0.00388021
  23  3.73082e-05
  24  0.0235512
  25  0.00321101
  26  238.038
  27  50.9905
  28  61.7451
  29  325.52
  30  16.0481
  31  2.31273
  32  2.29781
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1641.98532042

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.721e+00  2.298e+00  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:  8.580e-02  2.313e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/52819/likelihoodResults_652752001_653011201_4FGL_J1257.8+3228_daily_bin1595.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): 102
logL (Free Index) = 1641.98575283
delta logL = -0.000432409948417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1641.985321
delta logL = -5.73315674046e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2391       1.0000          .0000       5.0000    
     3 'Normalizat'    .86226E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7203       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=   1641.985     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      288 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    937.99        .48251E-01** at limit **
   2  alpha         2.7096        2.5269        .50000       -.12458E-04
   3  Normalizat    .85802E-01    .10170        .75544E-02    .14272E-03
   4  Prefactor     1.7208        .12099        .24172E-03   -.23516E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  alpha      = 2.70963
  Normalizat = 0.085802
  Prefactor  = 1.72075
 **********
 **   18 **HESSE 
 **********

 FCN=   1641.985     FROM HESSE     STATUS=OK            33 CALLS      321 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    18.421        .25773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7096        3.5991        .50000        .83951E-01
   3  Normalizat    .85802E-01    .40901        .15109E-02   -1.3964    
   4  Prefactor     1.7208        .46678        .96688E-05   -.71531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16356e-09
Minuit parameter uncertainties:
  1  0.00113335
  2  2.50042
  3  0.356009
  4  0.467978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52819': 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) = 1641.98531813
delta logL = 2.29390298045e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.133e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.710e+00  2.500e+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:  1.721e+00  4.680e-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:  8.580e-02  3.560e-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/52819/cmap_HighResolution_652752001_653011201_4FGL_J1257.8+3228_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-05', job_status='DONE', photon_flux_upper_limit='1.95e-07', time_completed='2021-09-11 00:23:29.880561', job_id='52819', GAL2='1.72', fit_tolerance='1e-08', EG2='0.09', EG='0.09', time_epoch_completed='1631345009.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.72', dlogl='2.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1595' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:23:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 52819: <4FGL_J1257.8+3228_daily_bin1595> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1595> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 00:11:25 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:11:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:11:27 2021
Terminated at Sat Sep 11 00:23:30 2021
Results reported at Sat Sep 11 00:23:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1595 194.473 32.4721 652752001 653011201 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 :                                   488.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            725 sec.

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

