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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1007
RA = 194.473, Dec = 32.4721
tmin = 500342401, tmax = 500601601
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='49254', job_status='RUN', time_executed='2021-09-06 12:16:55.677607', time_epoch_executed='1630955815.68' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49254

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49254/ft1_4FGL_J1257.8+3228_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49254/ft2_4FGL_J1257.8+3228_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49254/ft1_4FGL_J1257.8+3228_daily_bin1007.fits outfile=/scratch/kocevski/49254/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1007.fits ra=194.473 dec=32.4721 rad=12.0 tmin=500342401.0 tmax=500601601.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.42
user 4.41
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49254/ft2_4FGL_J1257.8+3228_daily_bin1007.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/49254/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/49254/ft1_filtered_4FGL_J1257.8+3228_daily_bin1007.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.65
user 0.34
sys 0.25

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49254/ft1_filtered_4FGL_J1257.8+3228_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/49254/ft2_4FGL_J1257.8+3228_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/49254/ltcube_500342401_500601601_4FGL_J1257.8+3228_daily_bin1007.fits outfile=/scratch/kocevski/49254/expmap_500342401_500601601_4FGL_J1257.8+3228_daily_bin1007.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/49254/ltcube_500342401_500601601_4FGL_J1257.8+3228_daily_bin1007.fits
.....................!
real 190.76
user 185.05
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/49254/ft1_filtered_4FGL_J1257.8+3228_daily_bin1007.fits scfile=/scratch/kocevski/49254/ft2_4FGL_J1257.8+3228_daily_bin1007.fits outfile=/scratch/kocevski/49254/cmap_500342401_500601601_4FGL_J1257.8+3228_daily_bin1007.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49254/ft1_filtered_4FGL_J1257.8+3228_daily_bin1007.fits scfile=/scratch/kocevski/49254/ft2_4FGL_J1257.8+3228_daily_bin1007.fits outfile=/scratch/kocevski/49254/cmap_HighResolution_500342401_500601601_4FGL_J1257.8+3228_daily_bin1007.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.70
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45041       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3213       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67736       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2913       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.253       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0008       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10443E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    31.096       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6020       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.4317       1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.340       1.0000         .10000E-03   10000.    
    27 'Prefactor '    33.665       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.7515       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0864       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0900       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=   4995.242     FROM MIGRAD    STATUS=CONVERGED    926 CALLS     4460 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47779E-01    36.996       -.29048E-05    .15037E-03
   2  norm          6.3220        3.1281       -.49733E-08    .87969E-05
   3  Prefactor     .10000E-03    2.4280        .10017E-06** at limit **
   4  Prefactor     .10000E-03    .83368        .67277E-07** at limit **
   5  Prefactor     .10000E-03    1.1244        .69854E-07** at limit **
   6  Prefactor     .67784        9.4319       -.33042E-05   -.37451E-04
   7  norm          .10000E-03    1.7213       -.10624E-06** at limit **
   8  Prefactor     9.2880        11.987        .88477E-07    .43361E-05
   9  Prefactor     10.252        19.261       -.32782E-06   -.23745E-04
  10  Prefactor     .10000E-03    191.04       -.15875E-04** at limit **
  11  Prefactor     3.5937        8.5907        .43893E-06   -.10877E-04
  12  Prefactor     .10000E-03    5.5106        .43337E-06** at limit **
  13  norm          .10000E-03    3.0324        .36809E-06** at limit **
  14  Prefactor     .10000E-03    26.593        .23608E-06** at limit **
  15  Prefactor     .10000E-03    38.863        .10041E-05** at limit **
  16  norm          2.0003        3.7775       -.29518E-06   -.47169E-04
  17  Prefactor     .10000E-03    7.0826        .17948E-06** at limit **
  18  norm          .10000E-03    4.4050        .10193E-05** at limit **
  19  norm          .10000E-03    17.747        .41151E-06** at limit **
  20  norm          .10000E-03    3.7609        .54219E-06** at limit **
  21  norm          .10000E-03    2.2760        .10041E-06** at limit **
  22  norm          31.097        21.778        .98362E-07   -.20711E-04
  23  Prefactor     2.6008        2.9738        .88133E-07   -.25293E-03
  24  Prefactor     .10000E-03    4.5159        .16119E-06** at limit **
  25  norm          1.4296        10.774       -.54613E-06   -.30764E-04
  26  Prefactor     43.265        71.348       -.45136E-05   -.28259E-04
  27  Prefactor     33.651        27.075        .56956E-06   -.43357E-04
  28  Prefactor     .10001E-03    226.99        .10668E-04** at limit **
  29  Prefactor     .10000E-03    78.832        .14097E-05** at limit **
  30  Prefactor     2.7506        4.1752       -.78740E-07   -.23257E-04
  31  Normalizat    1.0868        .19727       -.98473E-06   -.14437E-03
  32  Prefactor     1.0899        .23914       -.14019E-06   -.14420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0477791
  norm       = 6.32202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.677841
  norm       = 0.0001
  Prefactor  = 9.28804
  Prefactor  = 10.2522
  Prefactor  = 0.000100001
  Prefactor  = 3.59369
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00027
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 31.0971
  Prefactor  = 2.6008
  Prefactor  = 0.0001
  norm       = 1.42962
  Prefactor  = 43.2648
  Prefactor  = 33.6509
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 2.75058
  Normalizat = 1.08678
  Prefactor  = 1.08991
 **********
 **   18 **HESSE 
 **********

 FCN=   4995.242     FROM HESSE     STATUS=OK           663 CALLS     5123 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47779E-01    36.991        .11572       -1.5664    
   2  norm          6.3220        3.1244        .84986E-04   -1.5205    
   3  Prefactor     .10000E-03    2.4307        .10756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .83729        .62986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1393        .73103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .67784        9.5104        .41288E-03   -1.5543    
   7  norm          .10000E-03    1.7277        .90511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2880        11.977        .13148E-03   -1.5098    
   9  Prefactor     10.252        19.254        .12514E-03   -1.5067    
  10  Prefactor     .10000E-03    187.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5937        8.5768        .21309E-03   -1.5329    
  12  Prefactor     .10000E-03    5.6091        .16201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0740        .12025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0003        3.7488        .18079E-03   -1.5425    
  17  Prefactor     .10000E-03    7.0959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.2207        .28041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9134        .26779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2794        .10414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          31.097        21.743        .71852E-04   -1.4592    
  23  Prefactor     2.6008        2.9390        .12192E-03   -1.5385    
  24  Prefactor     .10000E-03    4.5198        .14669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.4296        10.833        .36098E-03   -1.5469    
  26  Prefactor     43.265        71.242        .60896E-04   -1.4391    
  27  Prefactor     33.651        26.247        .69064E-04   -1.4547    
  28  Prefactor     .10001E-03    217.57        .62429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    79.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.7506        4.1597        .17209E-03   -1.5376    
  31  Normalizat    1.0868        .23179        .24108E-03   -.90177    
  32  Prefactor     1.0899        .28118        .29082E-03   -.89790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47664e-10
Minuit parameter uncertainties:
  1  2.65775
  2  3.1245
  3  3.60826e-06
  4  1.59772e-06
  5  4.31443e-06
  6  5.07862
  7  4.00403e-06
  8  11.9802
  9  19.2653
  10  0.000648302
  11  8.57971
  12  1.42276e-05
  13  1.0529e-05
  14  1.12508e-05
  15  9.91655e-05
  16  3.74927
  17  7.44819e-06
  18  0.000215628
  19  2.88257e-05
  20  1.66596e-05
  21  2.09025e-06
  22  21.7484
  23  2.93914
  24  7.58266e-06
  25  7.87246
  26  71.3827
  27  26.2562
  28  0.0030192
  29  0.000124612
  30  4.16017
  31  0.232005
  32  0.281561
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.053e-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.090e+00  2.816e-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.087e+00  2.320e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49254/likelihoodResults_500342401_500601601_4FGL_J1257.8+3228_daily_bin1007.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) = 4995.24362079
delta logL = -0.00154519045464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4995.235398
delta logL = 0.00667760682973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13362       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7026       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0949       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=   4995.235     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      409 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13406        9.4421        .30801E-01    .44458E-04
   2  alpha         3.7014        2.9951        .49846        .18664E-04
   3  Normalizat    1.0789        .18826E-01    .38932E-01    .42300E-05
   4  Prefactor     1.0949        .22826E-01    .65616E-01    .65082E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13406
  alpha      = 3.7014
  Normalizat = 1.07888
  Prefactor  = 1.09491
 **********
 **   18 **HESSE 
 **********

 FCN=   4995.235     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      444 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13406        445.16        .11088E-02   -1.5635    
   2  alpha         3.7014        3.1370        .84999E-01    .50129    
   3  Normalizat    1.0789        .22027        .24189E-03   -.90433    
   4  Prefactor     1.0949        .16406        .29025E-03   -.89629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8049e-09
Minuit parameter uncertainties:
  1  15.5615
  2  42.4885
  3  0.220456
  4  0.164138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49254': 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) = 4995.23539791
delta logL = 0.00667769076972

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.341e-01  1.556e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.701e+00  4.249e+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.095e+00  1.641e-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.079e+00  2.205e-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/49254/cmap_HighResolution_500342401_500601601_4FGL_J1257.8+3228_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-06 12:30:36.669704', job_id='49254', GAL2='1.09', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1630956636.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.68e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1007' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:30:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 49254: <4FGL_J1257.8+3228_daily_bin1007> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1007 194.473 32.4721 500342401 500601601 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 :                                   811.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            911 sec.

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

