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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1179
RA = 194.473, Dec = 32.4721
tmin = 544924801, tmax = 545184001
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='49309', job_status='RUN', time_executed='2021-09-06 12:15:44.332635', time_epoch_executed='1630955744.33' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49309/ft1_4FGL_J1257.8+3228_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49309/ft2_4FGL_J1257.8+3228_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49309/ft1_4FGL_J1257.8+3228_daily_bin1179.fits outfile=/scratch/kocevski/49309/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1179.fits ra=194.473 dec=32.4721 rad=12.0 tmin=544924801.0 tmax=545184001.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.27
user 3.94
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49309/ft1_filtered_4FGL_J1257.8+3228_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/49309/ft2_4FGL_J1257.8+3228_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/49309/ltcube_544924801_545184001_4FGL_J1257.8+3228_daily_bin1179.fits outfile=/scratch/kocevski/49309/expmap_544924801_545184001_4FGL_J1257.8+3228_daily_bin1179.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/49309/ltcube_544924801_545184001_4FGL_J1257.8+3228_daily_bin1179.fits
.....................!
real 197.64
user 185.40
sys 4.53

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/49309/ft1_filtered_4FGL_J1257.8+3228_daily_bin1179.fits scfile=/scratch/kocevski/49309/ft2_4FGL_J1257.8+3228_daily_bin1179.fits outfile=/scratch/kocevski/49309/cmap_544924801_545184001_4FGL_J1257.8+3228_daily_bin1179.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.58
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14100E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10978E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .63385       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .82660       1.0000         .10000E-03   10000.    
    19 'norm      '    39.440       1.0000         .10000E-03   10000.    
    20 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6559       1.0000         .10000E-03   10000.    
    22 'norm      '    .33350E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9787       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .65664E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.7205       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10906E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .92674E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .26204E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3688       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4447       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .50997       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=   2935.317     FROM MIGRAD    STATUS=CONVERGED    940 CALLS     4478 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    135.92       -.12658E-05** at limit **
   2  norm          .10000E-03    2.2858       -.15127E-07** at limit **
   3  Prefactor     .10000E-03    15.657       -.77123E-07** at limit **
   4  Prefactor     5.4665        3.8578       -.19889E-09    .12002E-04
   5  Prefactor     4.7499        3.6765       -.86368E-09    .55578E-05
   6  Prefactor     .10000E-03    2.0466       -.97908E-08** at limit **
   7  norm          .10000E-03    1.6305       -.11852E-07** at limit **
   8  Prefactor     .10000E-03    6.1247       -.20210E-07** at limit **
   9  Prefactor     .10000E-03    16.748       -.70768E-08** at limit **
  10  Prefactor     .10000E-03    30.534       -.17970E-07** at limit **
  11  Prefactor     .10000E-03    2.6659       -.19446E-07** at limit **
  12  Prefactor     .10000E-03    3.8993       -.27650E-07** at limit **
  13  norm          .10000E-03    3.1924       -.82149E-07** at limit **
  14  Prefactor     .10000E-03    262.03        .27648E-06** at limit **
  15  Prefactor     .10000E-03    24.517       -.24053E-06** at limit **
  16  norm          .63065        4.9808        .71711E-07    .25158E-03
  17  Prefactor     .10000E-03    13.165       -.49523E-07** at limit **
  18  norm          .82448        10.765       -.92751E-06    .11525E-03
  19  norm          39.398        47.321       -.31464E-05    .21610E-03
  20  norm          .10000E-03    6.3270       -.75108E-06** at limit **
  21  norm          2.6596        7.3447        .13315E-05    .40164E-03
  22  norm          .10057E-03    44.935       -.66081E-05** at limit **
  23  Prefactor     3.9882        7.0140        .37563E-05    .10763E-02
  24  Prefactor     .10279E-03    77.351       -.21816E-04** at limit **
  25  norm          9.7221        7.8190        .23496E-07    .12775E-03
  26  Prefactor     .10000E-03    92.773       -.91808E-07** at limit **
  27  Prefactor     .73835E-03    46.442       -.37818E-05** at limit **
  28  Prefactor     .10000E-03    13.531       -.36917E-07** at limit **
  29  Prefactor     .10000E-03    101.38       -.10427E-05** at limit **
  30  Prefactor     1.3707        14.478        .62488E-05    .81849E-03
  31  Normalizat    1.4451        .28636        .13958E-06    .76499E-03
  32  Prefactor     .51010        .31428       -.44603E-07    .31096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.46651
  Prefactor  = 4.7499
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.630654
  Prefactor  = 0.0001
  norm       = 0.824477
  norm       = 39.3976
  norm       = 0.000100001
  norm       = 2.65955
  norm       = 0.000100571
  Prefactor  = 3.9882
  Prefactor  = 0.000102786
  norm       = 9.72207
  Prefactor  = 0.0001
  Prefactor  = 0.000738354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37071
  Normalizat = 1.44508
  Prefactor  = 0.510102
 **********
 **   18 **HESSE 
 **********

 FCN=   2935.317     FROM HESSE     STATUS=OK           661 CALLS     5139 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2917        .79886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4665        3.8514        .85279E-04   -1.5240    
   5  Prefactor     4.7499        3.6728        .85757E-04   -1.5272    
   6  Prefactor     .10000E-03    2.0480        .75697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6325        .67561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1326        .13095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6712        .86370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8998        .10449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2121        .94536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    262.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .63065        7.9267        .21164E-02   -1.5549    
  17  Prefactor     .10000E-03    13.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .82448        10.748        .33680E-03   -1.5526    
  19  norm          39.398        47.377        .31912E-03   -1.4452    
  20  norm          .10000E-03    6.3854        .13229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6596        7.2825        .23032E-03   -1.5382    
  22  norm          .10057E-03    229.80        .58507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.9882        7.0399        .17338E-03   -1.5309    
  24  Prefactor     .10279E-03    252.64        .57944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.7221        7.6185        .12625E-03   -1.5084    
  26  Prefactor     .10000E-03    92.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .73835E-03    70.174        .80898E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    101.40        .21446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.3707        17.368        .18638E-02   -1.5474    
  31  Normalizat    1.4451        .34170        .21692E-03   -.79333    
  32  Prefactor     .51010        .36160        .37963E-03   -1.1152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82398e-08
Minuit parameter uncertainties:
  1  0.000502935
  2  1.6582e-06
  3  1.38068e-05
  4  3.85156
  5  3.67295
  6  9.37792e-07
  7  1.6635e-06
  8  6.26095e-06
  9  5.77464e-07
  10  7.59688e-08
  11  1.98076e-06
  12  4.00037e-06
  13  5.04936e-06
  14  0.000766122
  15  4.78889e-05
  16  4.47207
  17  2.30634e-05
  18  5.95454
  19  47.4225
  20  0.000145389
  21  7.28488
  22  0.0229974
  23  7.04136
  24  0.0532848
  25  7.61929
  26  0.000158774
  27  0.423796
  28  1.07427e-05
  29  0.000402684
  30  9.76139
  31  0.342244
  32  0.363244
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  5.049e-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:  5.101e-01  3.632e-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.445e+00  3.422e-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: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49309/likelihoodResults_544924801_545184001_4FGL_J1257.8+3228_daily_bin1179.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) = 2935.31839155
delta logL = -0.00143210277793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2935.31695949
delta logL = -4.26011865784e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2223       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51012       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=   2935.317     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      237 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3725        .94574E-03** at limit **
   2  alpha         2.4025        2.7159        .16591       -.22613E-08
   3  Normalizat    1.4451        .32374        .21692E-03   -.21607E-03
   4  Prefactor     .51011        .35376        .37963E-03   -.12575E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.40252
  Normalizat = 1.44507
  Prefactor  = 0.510106
 **********
 **   18 **HESSE 
 **********

 FCN=   2935.317     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2535        .18915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4025        3.7091        .66363E-02   -.39002E-01
   3  Normalizat    1.4451        .32395        .43384E-04   -.79334    
   4  Prefactor     .51011        .35398        .15185E-04   -1.1152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41493e-11
Minuit parameter uncertainties:
  1  5.49392e-07
  2  293.251
  3  0.324409
  4  0.355524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49309': 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) = 2935.31695925
delta logL = 1.97223471332e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  5.494e-07  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.403e+00  2.933e+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:  5.101e-01  3.555e-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.445e+00  3.244e-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/49309/cmap_HighResolution_544924801_545184001_4FGL_J1257.8+3228_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-06 12:25:53.443303', job_id='49309', GAL2='0.51', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630956353.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='1.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1179' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:25:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 49309: <4FGL_J1257.8+3228_daily_bin1179> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1179> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:15:32 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:15:33 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:15:33 2021
Terminated at Mon Sep  6 12:25:54 2021
Results reported at Mon Sep  6 12:25:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1179 194.473 32.4721 544924801 545184001 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 :                                   594.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            622 sec.

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

