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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1259
RA = 194.473, Dec = 32.4721
tmin = 565660801, tmax = 565920001
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='49440', job_status='RUN', time_executed='2021-09-06 12:16:07.341786', time_epoch_executed='1630955767.34' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49440/ft1_4FGL_J1257.8+3228_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49440/ft2_4FGL_J1257.8+3228_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49440/ft1_4FGL_J1257.8+3228_daily_bin1259.fits outfile=/scratch/kocevski/49440/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1259.fits ra=194.473 dec=32.4721 rad=12.0 tmin=565660801.0 tmax=565920001.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.11
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49440/ft1_filtered_4FGL_J1257.8+3228_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/49440/ft2_4FGL_J1257.8+3228_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/49440/ltcube_565660801_565920001_4FGL_J1257.8+3228_daily_bin1259.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/49440/ft2_4FGL_J1257.8+3228_daily_bin1259.fits
.....................!
real 11.90
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49440/ft1_filtered_4FGL_J1257.8+3228_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/49440/ft2_4FGL_J1257.8+3228_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/49440/ltcube_565660801_565920001_4FGL_J1257.8+3228_daily_bin1259.fits outfile=/scratch/kocevski/49440/expmap_565660801_565920001_4FGL_J1257.8+3228_daily_bin1259.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/49440/ltcube_565660801_565920001_4FGL_J1257.8+3228_daily_bin1259.fits
.....................!
real 191.52
user 185.08
sys 5.00

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/49440/ft1_filtered_4FGL_J1257.8+3228_daily_bin1259.fits scfile=/scratch/kocevski/49440/ft2_4FGL_J1257.8+3228_daily_bin1259.fits outfile=/scratch/kocevski/49440/cmap_565660801_565920001_4FGL_J1257.8+3228_daily_bin1259.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/49440/ft1_filtered_4FGL_J1257.8+3228_daily_bin1259.fits scfile=/scratch/kocevski/49440/ft2_4FGL_J1257.8+3228_daily_bin1259.fits outfile=/scratch/kocevski/49440/cmap_HighResolution_565660801_565920001_4FGL_J1257.8+3228_daily_bin1259.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6413       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4692       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5462       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7327       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .87450E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    62.090       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .56515E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3482       1.0000         .10000E-03   10000.    
    21 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.9566       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0457       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6605       1.0000         .10000E-03   10000.    
    25 'norm      '    .63197       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14215E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.260       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .72431       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4512       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=   5935.547     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4452 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.444        .39927E-07** at limit **
   2  norm          6.6415        3.2414       -.84725E-07   -.16263E-03
   3  Prefactor     3.9429        5.4783        .72575E-07   -.73985E-04
   4  Prefactor     1.4694        1.8120       -.30191E-07   -.10989E-03
   5  Prefactor     1.5466        1.4429       -.64252E-07   -.24123E-03
   6  Prefactor     .10000E-03    2.5345        .32012E-07** at limit **
   7  norm          2.7337        3.7128       -.14576E-06   -.94988E-04
   8  Prefactor     .10001E-03    6.5485        .19916E-05** at limit **
   9  Prefactor     .10000E-03    9.3414        .42237E-08** at limit **
  10  Prefactor     .10000E-03    56.286       -.15565E-05** at limit **
  11  Prefactor     7.3034        5.8615       -.11071E-06   -.78722E-05
  12  Prefactor     .10000E-03    3.4337       -.80090E-07** at limit **
  13  norm          5.3087        5.6809       -.62378E-06   -.32878E-03
  14  Prefactor     .10000E-03    45.101        .24767E-06** at limit **
  15  Prefactor     62.110        34.692        .11136E-05   -.23919E-04
  16  norm          .10000E-03    .84740        .26204E-07** at limit **
  17  Prefactor     .10000E-03    42.558       -.60340E-06** at limit **
  18  norm          .34346E-01    107.16       -.52357E-05   -.10047E-03
  19  norm          .10000E-03    5.1668        .31241E-07** at limit **
  20  norm          2.3491        2.8262       -.34552E-06   -.99854E-03
  21  norm          .10000E-03    4.0109        .14514E-05** at limit **
  22  norm          6.9561        9.6389       -.81866E-07    .15199E-04
  23  Prefactor     1.0468        2.6923       -.10006E-06   -.14424E-03
  24  Prefactor     3.6605        6.7233        .11270E-06   -.10170E-03
  25  norm          .62901        5.3218       -.24546E-05    .51201E-03
  26  Prefactor     .10000E-03    25.078       -.65726E-06** at limit **
  27  Prefactor     .10000E-03    6.8954        .95926E-07** at limit **
  28  Prefactor     .10000E-03    42.574        .22491E-05** at limit **
  29  Prefactor     15.075        58.293       -.19320E-05   -.65693E-04
  30  Prefactor     .10000E-03    1.7995        .23352E-07** at limit **
  31  Normalizat    .72409        .19639       -.52794E-05    .73214E-04
  32  Prefactor     1.4516        .25127        .59299E-05    .14423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.64145
  Prefactor  = 3.9429
  Prefactor  = 1.46939
  Prefactor  = 1.54664
  Prefactor  = 0.0001
  norm       = 2.73366
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.30336
  Prefactor  = 0.0001
  norm       = 5.30866
  Prefactor  = 0.0001
  Prefactor  = 62.1103
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0343456
  norm       = 0.0001
  norm       = 2.3491
  norm       = 0.0001
  norm       = 6.95607
  Prefactor  = 1.04677
  Prefactor  = 3.66055
  norm       = 0.629012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.0747
  Prefactor  = 0.0001
  Normalizat = 0.724094
  Prefactor  = 1.45163
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.547     FROM HESSE     STATUS=OK           669 CALLS     5121 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6415        3.2383        .88886E-04   -1.5192    
   3  Prefactor     3.9429        5.4791        .10157E-02   -1.5311    
   4  Prefactor     1.4694        1.7928        .10621E-03   -1.5466    
   5  Prefactor     1.5466        1.4267        .86113E-04   -1.5459    
   6  Prefactor     .10000E-03    2.5479        .11972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7337        3.6965        .16679E-03   -1.5377    
   8  Prefactor     .10001E-03    16.450        .35113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3034        5.8621        .14841E-03   -1.5167    
  12  Prefactor     .10000E-03    3.4591        .13940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3087        5.6920        .16562E-03   -1.5247    
  14  Prefactor     .10000E-03    45.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     62.110        34.694        .50923E-04   -1.4130    
  16  norm          .10000E-03    .84880        .69257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .34346E-01    4.4133        .49370E-01   -1.5671    
  19  norm          .10000E-03    5.1701        .17104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3491        2.6387        .12601E-03   -1.5401    
  21  norm          .10000E-03    7.1112        .27095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.9561        9.6356        .15211E-03   -1.5180    
  23  Prefactor     1.0468        2.5910        .18582E-03   -1.5503    
  24  Prefactor     3.6605        6.7103        .10556E-02   -1.5325    
  25  norm          .62901        12.898        .28930E-02   -1.5549    
  26  Prefactor     .10000E-03    25.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.9185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    44.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.075        58.962        .10253E-03   -1.4931    
  30  Prefactor     .10000E-03    1.8169        .10092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .72409        .20951        .27085E-03   -1.0295    
  32  Prefactor     1.4516        .26427        .25526E-03   -.78904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86926e-09
Minuit parameter uncertainties:
  1  1.0444e-05
  2  3.23843
  3  5.47977
  4  1.79282
  5  1.42678
  6  1.66295e-06
  7  3.6968
  8  0.000725747
  9  1.84563e-06
  10  0.000645814
  11  5.86254
  12  7.87965e-06
  13  5.69258
  14  5.71448e-05
  15  34.7058
  16  1.33416e-06
  17  9.81597e-05
  18  0.777581
  19  1.4827e-06
  20  2.63887
  21  4.28247e-05
  22  9.63773
  23  2.59131
  24  6.71167
  25  5.69752
  26  0.00013925
  27  8.17708e-06
  28  0.000505244
  29  59.1914
  30  8.91254e-07
  31  0.209743
  32  0.264516
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  5.309e+00  5.693e+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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.452e+00  2.645e-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:  7.241e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/49440/likelihoodResults_565660801_565920001_4FGL_J1257.8+3228_daily_bin1259.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) = 5935.44001803
delta logL = 0.106986424346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5935.42791507
delta logL = 0.119089384191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5774       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5864       1.0000          .0000       5.0000    
     3 'Normalizat'    .71079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4620       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=   5935.428     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      245 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5769        5.0756        .14052E-03    .11138E-02
   2  alpha         2.5870        .79496        .15149E-01    .10283E-03
   3  Normalizat    .71083        .20570        .27307E-03   -.24371E-03
   4  Prefactor     1.4619        .26282        .25446E-03   -.30379E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.57694
  alpha      = 2.58696
  Normalizat = 0.710834
  Prefactor  = 1.46187
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.428     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5769        4.8733        .56206E-05   -1.5280    
   2  alpha         2.5870        .76366        .60598E-03    .34790E-01
   3  Normalizat    .71083        .20577        .10923E-04   -1.0347    
   4  Prefactor     1.4619        .26292        .50893E-04   -.78613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2717e-10
Minuit parameter uncertainties:
  1  4.87371
  2  0.776083
  3  0.205998
  4  0.263166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49440': 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) = 5935.42791459
delta logL = 0.119089865172

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  4.577e+00  4.874e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.587e+00  7.761e-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.462e+00  2.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:  7.108e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.59 +/- 0.78
Photon Flux (Free Index): 4.22e-08 +/- 4.20e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.05e-05

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/49440/cmap_HighResolution_565660801_565920001_4FGL_J1257.8+3228_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='1.16e-05', photon_flux_error='3.33e-08', dlogl='1.19e-01', energy_flux='1.23e-05', photon_flux2='4.22e-08', job_status='DONE', time_completed='2021-09-06 12:31:09.255557', photon_index_error2='0.78', photon_index2='2.59', ts='1.91', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.05e-05', EG='0.72', time_epoch_completed='1630956669.26', return_code='0', job_id='49440', GAL2='1.46', EG2='0.71', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='4.20e-08', ts2='2.17', photon_index='2.22' WHERE bin_id='1259' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:31:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 49440: <4FGL_J1257.8+3228_daily_bin1259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1259 194.473 32.4721 565660801 565920001 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 :                                   893.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

