/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 3 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 = 7354
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin181
RA = 194.473, Dec = 32.4721
tmin = 286243201, tmax = 286502401
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='42501', job_status='RUN', time_executed='2021-09-06 11:56:16.774304', time_epoch_executed='1630954576.77' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42501/ft1_4FGL_J1257.8+3228_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42501/ft2_4FGL_J1257.8+3228_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42501/ft1_4FGL_J1257.8+3228_daily_bin181.fits outfile=/scratch/kocevski/42501/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin181.fits ra=194.473 dec=32.4721 rad=12.0 tmin=286243201.0 tmax=286502401.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.99
user 3.23
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42501/ft1_filtered_4FGL_J1257.8+3228_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/42501/ft2_4FGL_J1257.8+3228_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/42501/ltcube_286243201_286502401_4FGL_J1257.8+3228_daily_bin181.fits outfile=/scratch/kocevski/42501/expmap_286243201_286502401_4FGL_J1257.8+3228_daily_bin181.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/42501/ltcube_286243201_286502401_4FGL_J1257.8+3228_daily_bin181.fits
.....................!
real 191.53
user 186.34
sys 4.86

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/42501/ft1_filtered_4FGL_J1257.8+3228_daily_bin181.fits scfile=/scratch/kocevski/42501/ft2_4FGL_J1257.8+3228_daily_bin181.fits outfile=/scratch/kocevski/42501/cmap_286243201_286502401_4FGL_J1257.8+3228_daily_bin181.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42501/ft1_filtered_4FGL_J1257.8+3228_daily_bin181.fits scfile=/scratch/kocevski/42501/ft2_4FGL_J1257.8+3228_daily_bin181.fits outfile=/scratch/kocevski/42501/cmap_HighResolution_286243201_286502401_4FGL_J1257.8+3228_daily_bin181.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25605E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9776       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6919       1.0000         .10000E-03   10000.    
     7 'norm      '    11.432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.960       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9138       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82725E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5092       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.898       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.533       1.0000         .10000E-03   10000.    
    20 'norm      '    .12369E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1695       1.0000         .10000E-03   10000.    
    22 'norm      '    59.003       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2579       1.0000         .10000E-03   10000.    
    25 'norm      '    9.4167       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .41869E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68898       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2607       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=   5507.804     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     5082 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10251E-03    6632.7       -.11990E-04** at limit **
   2  norm          4.6135        3.4098        .78088E-07    .11666E-03
   3  Prefactor     .10000E-03    2.9748        .17336E-07** at limit **
   4  Prefactor     4.9775        2.8370        .19050E-07    .14706E-03
   5  Prefactor     2.6106        2.2057        .41245E-07    .38765E-04
   6  Prefactor     6.6927        6.8337       -.33518E-07   -.10720E-03
   7  norm          11.433        5.8247       -.11164E-06   -.19812E-03
   8  Prefactor     20.960        11.909       -.38596E-07   -.22071E-04
   9  Prefactor     .10000E-03    6.9268       -.22549E-07** at limit **
  10  Prefactor     .10000E-03    30.607        .38781E-06** at limit **
  11  Prefactor     .10000E-03    4.0198        .89758E-08** at limit **
  12  Prefactor     5.9138        5.5870        .94226E-07    .34809E-03
  13  norm          .10000E-03    3.2870       -.33944E-08** at limit **
  14  Prefactor     .10000E-03    30.739       -.14559E-07** at limit **
  15  Prefactor     .10008E-03    96.380       -.24438E-05** at limit **
  16  norm          1.5088        2.3760        .10257E-06    .17507E-04
  17  Prefactor     23.908        18.458        .23704E-05    .46986E-03
  18  norm          .10000E-03    4.3805       -.11983E-05** at limit **
  19  norm          13.533        14.206       -.24304E-06   -.94394E-05
  20  norm          .10003E-03    11.119       -.16194E-05** at limit **
  21  norm          5.1826        5.5438       -.93254E-06   -.68942E-03
  22  norm          59.041        29.672       -.35675E-06   -.15281E-03
  23  Prefactor     .10000E-03    1.1712       -.33016E-06** at limit **
  24  Prefactor     5.2570        12.699        .97613E-06    .85365E-04
  25  norm          9.4090        9.6606        .47724E-07    .39962E-04
  26  Prefactor     .10000E-03    14.488       -.31706E-06** at limit **
  27  Prefactor     .10502E-03    40.771       -.69243E-05** at limit **
  28  Prefactor     .10000E-03    9.5905       -.10790E-06** at limit **
  29  Prefactor     .10001E-03    56.764       -.25612E-05** at limit **
  30  Prefactor     .10000E-03    1.7651       -.15362E-10** at limit **
  31  Normalizat    .68889        .19633       -.61164E-05    .22391E-03
  32  Prefactor     1.2607        .24878        .67930E-05    .23978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102508
  norm       = 4.61346
  Prefactor  = 0.0001
  Prefactor  = 4.97748
  Prefactor  = 2.61064
  Prefactor  = 6.69272
  norm       = 11.4331
  Prefactor  = 20.9601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.91377
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100076
  norm       = 1.50882
  Prefactor  = 23.9083
  norm       = 0.0001
  norm       = 13.533
  norm       = 0.00010003
  norm       = 5.1826
  norm       = 59.0415
  Prefactor  = 0.0001
  Prefactor  = 5.257
  norm       = 9.40896
  Prefactor  = 0.0001
  Prefactor  = 0.000105017
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 0.688893
  Prefactor  = 1.26068
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.804     FROM HESSE     STATUS=OK           671 CALLS     5753 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10251E-03    40.243        .11814       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6135        3.4120        .10525E-03   -1.5278    
   3  Prefactor     .10000E-03    2.9854        .12506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9775        2.8440        .84990E-04   -1.5262    
   5  Prefactor     2.6106        2.1926        .95145E-04   -1.5385    
   6  Prefactor     6.6927        6.8294        .15512E-03   -1.5191    
   7  norm          11.433        5.8231        .11792E-03   -1.5032    
   8  Prefactor     20.960        11.907        .87486E-04   -1.4792    
   9  Prefactor     .10000E-03    6.9322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0575        .14542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9138        5.5778        .15778E-03   -1.5222    
  13  norm          .10000E-03    3.3714        .26206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    100.72        .59747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5088        2.3494        .13918E-03   -1.5462    
  17  Prefactor     23.908        18.688        .81939E-04   -1.4730    
  18  norm          .10000E-03    4.4276        .15105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.533        14.210        .10888E-03   -1.4972    
  20  norm          .10003E-03    12.157        .18547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1826        5.6009        .17457E-03   -1.5253    
  22  norm          59.041        29.686        .52230E-04   -1.4170    
  23  Prefactor     .10000E-03    1.1829        .78318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.2570        12.686        .17529E-03   -1.5249    
  25  norm          9.4090        9.6552        .13060E-03   -1.5094    
  26  Prefactor     .10000E-03    14.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10502E-03    16.271        .70754E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.6255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    57.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.8037        .96380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .68889        .20125        .26237E-03   -1.0433    
  32  Prefactor     1.2607        .25237        .25728E-03   -.84484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66742e-09
Minuit parameter uncertainties:
  1  0.0201078
  2  3.41215
  3  7.08597e-06
  4  2.84411
  5  2.19268
  6  6.83023
  7  5.82342
  8  11.9081
  9  7.39232e-07
  10  0.000163131
  11  2.2077e-06
  12  5.57825
  13  1.21369e-05
  14  2.4859e-05
  15  0.00554427
  16  2.34956
  17  18.6926
  18  1.10844e-05
  19  14.2139
  20  0.00120901
  21  5.60149
  22  29.6937
  23  3.85517e-06
  24  12.6926
  25  9.65676
  26  6.66778e-05
  27  0.0180749
  28  1.2003e-06
  29  0.00109417
  30  3.55798e-06
  31  0.201464
  32  0.252615
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.214e-05  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.261e+00  2.526e-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:  6.889e-01  2.015e-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: 5.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/42501/likelihoodResults_286243201_286502401_4FGL_J1257.8+3228_daily_bin181.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) = 5507.80514059
delta logL = -0.00141364226965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5507.74856458
delta logL = 0.055162367149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49135E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7102       1.0000          .0000       5.0000    
     3 'Normalizat'    .66962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2756       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=   5507.749     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      381 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50336E-01    3.9985        .92659E-02    .36475E-02
   2  alpha         4.6970        3.2903        .50000        .59559E-05
   3  Normalizat    .66963        .30701E-01    .60169E-01    .29442E-04
   4  Prefactor     1.2755        .39114E-01    .57901E-01    .83852E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0503362
  alpha      = 4.69699
  Normalizat = 0.669627
  Prefactor  = 1.27551
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.749     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      418 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50336E-01    19.237        .41729E-03   -1.5663    
   2  alpha         4.6970        2.6687        .50000        1.0733    
   3  Normalizat    .66963        .88939E-01    .26615E-03   -1.0510    
   4  Prefactor     1.2755        .10660        .25603E-03   -.84038    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33527e-06
Minuit parameter uncertainties:
  1  1.96672
  2  30.2628
  3  0.0889581
  4  0.106621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42501': 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): 102
logL (Free Index) = 5507.74856148
delta logL = 0.0551654705041

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  5.034e-02  1.967e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.697e+00  3.026e+01  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.276e+00  1.066e-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:  6.696e-01  8.896e-02  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/42501/cmap_HighResolution_286243201_286502401_4FGL_J1257.8+3228_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-05', job_status='DONE', photon_flux_upper_limit='5.28e-08', time_completed='2021-09-06 12:11:31.665312', job_id='42501', GAL2='1.28', fit_tolerance='1e-08', EG2='0.67', EG='0.69', time_epoch_completed='1630955491.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='5.52e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='181' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:11:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 42501: <4FGL_J1257.8+3228_daily_bin181> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin181> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:55:55 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:55:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:55:56 2021
Terminated at Mon Sep  6 12:11:32 2021
Results reported at Mon Sep  6 12:11:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin181 194.473 32.4721 286243201 286502401 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 :                                   908.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

