/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 55 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 = 7637
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1350
RA = 194.473, Dec = 32.4721
tmin = 589248001, tmax = 589507201
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='49583', job_status='RUN', time_executed='2021-09-06 12:17:43.279285', time_epoch_executed='1630955863.28' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49583/ft1_4FGL_J1257.8+3228_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49583/ft2_4FGL_J1257.8+3228_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49583/ft1_4FGL_J1257.8+3228_daily_bin1350.fits outfile=/scratch/kocevski/49583/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1350.fits ra=194.473 dec=32.4721 rad=12.0 tmin=589248001.0 tmax=589507201.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.10
user 2.89
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49583/ft1_filtered_4FGL_J1257.8+3228_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/49583/ft2_4FGL_J1257.8+3228_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/49583/ltcube_589248001_589507201_4FGL_J1257.8+3228_daily_bin1350.fits outfile=/scratch/kocevski/49583/expmap_589248001_589507201_4FGL_J1257.8+3228_daily_bin1350.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/49583/ltcube_589248001_589507201_4FGL_J1257.8+3228_daily_bin1350.fits
.....................!
real 191.44
user 185.46
sys 5.25

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/49583/ft1_filtered_4FGL_J1257.8+3228_daily_bin1350.fits scfile=/scratch/kocevski/49583/ft2_4FGL_J1257.8+3228_daily_bin1350.fits outfile=/scratch/kocevski/49583/cmap_589248001_589507201_4FGL_J1257.8+3228_daily_bin1350.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49583/ft1_filtered_4FGL_J1257.8+3228_daily_bin1350.fits scfile=/scratch/kocevski/49583/ft2_4FGL_J1257.8+3228_daily_bin1350.fits outfile=/scratch/kocevski/49583/cmap_HighResolution_589248001_589507201_4FGL_J1257.8+3228_daily_bin1350.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.027       1.0000         .10000E-03   10000.    
     2 'norm      '    8.5830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.054       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7503       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.679       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.072       1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.3601       1.0000         .10000E-03   10000.    
    19 'norm      '    14.024       1.0000         .10000E-03   10000.    
    20 'norm      '    9.3987       1.0000         .10000E-03   10000.    
    21 'norm      '    4.9183       1.0000         .10000E-03   10000.    
    22 'norm      '    22.309       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18391E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    25.669       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2193       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79205       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=   4177.066     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4341 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.056        63.947        .40092E-06    .18555E-04
   2  norm          8.5827        5.9659        .61975E-07    .47019E-04
   3  Prefactor     .10000E-03    17.880       -.18302E-06** at limit **
   4  Prefactor     .10000E-03    1.6364       -.71104E-07** at limit **
   5  Prefactor     .36410        2.9550        .78154E-07   -.26431E-04
   6  Prefactor     .10000E-03    6.3384       -.27467E-06** at limit **
   7  norm          .10000E-03    10.171       -.87337E-06** at limit **
   8  Prefactor     20.060        16.317        .15862E-06    .14199E-04
   9  Prefactor     .10000E-03    6.4897       -.10256E-08** at limit **
  10  Prefactor     .10000E-03    62.676       -.29751E-06** at limit **
  11  Prefactor     3.7488        13.480        .10112E-05    .46272E-04
  12  Prefactor     .10000E-03    2.0156       -.40952E-08** at limit **
  13  norm          .10000E-03    1.4525        .70037E-07** at limit **
  14  Prefactor     87.679        83.579        .25030E-06   -.21245E-05
  15  Prefactor     40.091        30.906        .30921E-06   -.97942E-04
  16  norm          .10000E-03    4.1255       -.53187E-06** at limit **
  17  Prefactor     .10000E-03    8.7123       -.70758E-07** at limit **
  18  norm          9.3560        8.0038       -.16610E-07   -.30241E-03
  19  norm          14.022        14.512       -.30546E-07    .19360E-05
  20  norm          9.4028        9.4955        .30641E-09   -.37352E-03
  21  norm          4.9106        14.667        .18873E-06   -.32690E-04
  22  norm          22.308        23.654        .25047E-06    .33673E-04
  23  Prefactor     .10000E-03    3.0115        .11182E-05** at limit **
  24  Prefactor     .10000E-03    10.511       -.10470E-06** at limit **
  25  norm          .10000E-03    10.633       -.79461E-06** at limit **
  26  Prefactor     .10000E-03    57.514        .49945E-06** at limit **
  27  Prefactor     .10000E-03    62.243       -.46149E-05** at limit **
  28  Prefactor     .10000E-03    24.358       -.11324E-05** at limit **
  29  Prefactor     25.765        70.699        .22743E-05    .27646E-04
  30  Prefactor     .10000E-03    2.3696       -.52145E-06** at limit **
  31  Normalizat    1.2193        .25829       -.58995E-05    .58318E-05
  32  Prefactor     .79230        .29420        .82106E-05   -.13203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.0559
  norm       = 8.58274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.364101
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74883
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 87.6791
  Prefactor  = 40.0906
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.35601
  norm       = 14.0219
  norm       = 9.40277
  norm       = 4.91063
  norm       = 22.3076
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 25.7654
  Prefactor  = 0.0001
  Normalizat = 1.21926
  Prefactor  = 0.792299
 **********
 **   18 **HESSE 
 **********

 FCN=   4177.066     FROM HESSE     STATUS=OK           653 CALLS     4994 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.056        63.926        .63356E-04   -1.4441    
   2  norm          8.5827        5.9583        .12321E-03   -1.5122    
   3  Prefactor     .10000E-03    18.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6390        .80696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .36410        10.988        .20184E-02   -1.5587    
   6  Prefactor     .10000E-03    6.3777        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.060        16.365        .89441E-04   -1.4812    
   9  Prefactor     .10000E-03    6.4913        .16082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7488        13.455        .20849E-03   -1.5321    
  12  Prefactor     .10000E-03    2.0177        .89604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4537        .76069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     87.679        83.523        .42907E-04   -1.3832    
  15  Prefactor     40.091        30.887        .63321E-04   -1.4441    
  16  norm          .10000E-03    4.2507        .25699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.3560        7.8453        .13099E-03   -1.5096    
  19  norm          14.022        14.508        .10696E-03   -1.4959    
  20  norm          9.4028        9.8391        .10665E-03   -1.5095    
  21  norm          4.9106        15.307        .18136E-03   -1.5265    
  22  norm          22.308        23.649        .84804E-04   -1.4763    
  23  Prefactor     .10000E-03    8.3621        .19491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    10.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    57.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    65.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    24.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     25.765        70.781        .79068E-04   -1.4692    
  30  Prefactor     .10000E-03    4.3611        .19081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2193        .26392        .22341E-03   -.86010    
  32  Prefactor     .79230        .30379        .32437E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20838e-08
Minuit parameter uncertainties:
  1  64.0359
  2  5.95876
  3  4.00316e-05
  4  3.07783e-06
  5  4.00071
  6  2.53e-05
  7  8.51202e-05
  8  16.3688
  9  5.50672e-06
  10  7.40069e-05
  11  13.4654
  12  1.7024e-07
  13  2.45545e-06
  14  83.6348
  15  30.899
  16  3.57521e-05
  17  1.20365e-05
  18  7.84612
  19  14.5117
  20  9.84075
  21  15.3192
  22  23.6593
  23  0.000267999
  24  1.6721e-05
  25  6.02659e-05
  26  0.000169027
  27  0.000967751
  28  0.000131615
  29  71.0132
  30  3.73706e-05
  31  0.264213
  32  0.304434
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.455e-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:  7.923e-01  3.044e-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.219e+00  2.642e-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: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49583/likelihoodResults_589248001_589507201_4FGL_J1257.8+3228_daily_bin1350.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) = 4177.06867855
delta logL = -0.00273662320069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4177.06594185
delta logL = 7.5467141869e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2119       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79229       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=   4177.066     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      236 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4093        .76281E-02** at limit **
   2  alpha         1.8411        3.2716        .16601E-01    .21230E-07
   3  Normalizat    1.2193        .24912        .22341E-03    .55701E-04
   4  Prefactor     .79230        .29903        .32436E-03    .42655E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.8411
  Normalizat = 1.21926
  Prefactor  = 0.7923
 **********
 **   18 **HESSE 
 **********

 FCN=   4177.066     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5622        .78879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8411        3.5050        .66404E-03   -.26671    
   3  Normalizat    1.2193        .24935        .44682E-04   -.86010    
   4  Prefactor     .79230        .29931        .12974E-04   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79929e-12
Minuit parameter uncertainties:
  1  7.90036e-07
  2  164.658
  3  0.249592
  4  0.29993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49583': 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) = 4177.06593954
delta logL = 2.38757547777e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  7.900e-07  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.841e+00  1.647e+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:  7.923e-01  2.999e-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.219e+00  2.496e-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/49583/cmap_HighResolution_589248001_589507201_4FGL_J1257.8+3228_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-06 12:31:11.721957', job_id='49583', GAL2='0.79', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630956671.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1350' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 49583: <4FGL_J1257.8+3228_daily_bin1350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1350 194.473 32.4721 589248001 589507201 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

