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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1145
RA = 194.473, Dec = 32.4721
tmin = 536112001, tmax = 536371201
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='47883', job_status='RUN', time_executed='2021-09-06 12:14:12.993574', time_epoch_executed='1630955652.99' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47883/ft1_4FGL_J1257.8+3228_daily_bin1145.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47883/ft2_4FGL_J1257.8+3228_daily_bin1145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47883/ft1_4FGL_J1257.8+3228_daily_bin1145.fits outfile=/scratch/kocevski/47883/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1145.fits ra=194.473 dec=32.4721 rad=12.0 tmin=536112001.0 tmax=536371201.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.52
user 3.29
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47883/ft1_filtered_4FGL_J1257.8+3228_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/47883/ft2_4FGL_J1257.8+3228_daily_bin1145.fits sctable="SC_DATA" expcube=/scratch/kocevski/47883/ltcube_536112001_536371201_4FGL_J1257.8+3228_daily_bin1145.fits outfile=/scratch/kocevski/47883/expmap_536112001_536371201_4FGL_J1257.8+3228_daily_bin1145.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/47883/ltcube_536112001_536371201_4FGL_J1257.8+3228_daily_bin1145.fits
.....................!
real 192.17
user 186.98
sys 4.77

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/47883/ft1_filtered_4FGL_J1257.8+3228_daily_bin1145.fits scfile=/scratch/kocevski/47883/ft2_4FGL_J1257.8+3228_daily_bin1145.fits outfile=/scratch/kocevski/47883/cmap_536112001_536371201_4FGL_J1257.8+3228_daily_bin1145.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47883/ft1_filtered_4FGL_J1257.8+3228_daily_bin1145.fits scfile=/scratch/kocevski/47883/ft2_4FGL_J1257.8+3228_daily_bin1145.fits outfile=/scratch/kocevski/47883/cmap_HighResolution_536112001_536371201_4FGL_J1257.8+3228_daily_bin1145.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.473 yref=32.4721 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.474       1.0000         .10000E-03   10000.    
     2 'norm      '    4.7933       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .88108       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7367       1.0000         .10000E-03   10000.    
     7 'norm      '    4.9715       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.955       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5354       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6812       1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.719       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .24902E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1557       1.0000         .10000E-03   10000.    
    21 'norm      '    .12709E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.3097       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.612       1.0000         .10000E-03   10000.    
    25 'norm      '    3.5237       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.479       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18720E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1418       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .63565       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=   6200.872     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4424 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.473        28.746        .77909E-06    .29944E-05
   2  norm          4.7929        2.7844       -.12180E-07    .56211E-04
   3  Prefactor     6.3743        5.6644        .27861E-06    .40508E-04
   4  Prefactor     4.3535        2.2149        .35520E-07    .23911E-04
   5  Prefactor     .88271        1.5244       -.10761E-06   -.43093E-03
   6  Prefactor     1.7365        3.0490        .63262E-07    .17272E-04
   7  norm          4.9712        4.0253        .53129E-07    .37638E-04
   8  Prefactor     6.9619        6.2817        .84856E-07    .25329E-04
   9  Prefactor     1.3480        57.998        .26036E-05    .70696E-05
  10  Prefactor     49.000        61.900       -.55447E-05    .31939E-04
  11  Prefactor     4.5345        6.3439        .18051E-05    .13334E-03
  12  Prefactor     .10000E-03    4.3430       -.21860E-06** at limit **
  13  norm          5.6813        3.8689        .19952E-06    .16461E-03
  14  Prefactor     50.731        47.797       -.11451E-05    .82469E-05
  15  Prefactor     .10000E-03    8.9700       -.63218E-06** at limit **
  16  norm          .10000E-03    1.6923       -.58394E-08** at limit **
  17  Prefactor     .10000E-03    5.5355       -.33235E-06** at limit **
  18  norm          .20065E-01    2.4949       -.74363E-06    .57673E-03
  19  norm          .10000E-03    4.9396        .29859E-06** at limit **
  20  norm          3.1600        3.7036        .15295E-06    .60893E-03
  21  norm          .10000E-03    4.6899       -.16025E-05** at limit **
  22  norm          6.3096        12.273       -.46470E-06   -.13854E-05
  23  Prefactor     .10000E-03    3.0269        .21332E-06** at limit **
  24  Prefactor     12.592        19.595       -.22125E-05    .26249E-04
  25  norm          3.5235        6.7454        .33925E-05    .15569E-03
  26  Prefactor     23.449        57.932        .56760E-05    .11582E-04
  27  Prefactor     .10000E-03    14.146        .90341E-06** at limit **
  28  Prefactor     .10000E-03    12.196        .11535E-06** at limit **
  29  Prefactor     .10000E-03    21.453       -.72875E-07** at limit **
  30  Prefactor     .10000E-03    1.8238       -.50648E-07** at limit **
  31  Normalizat    1.1418        .16615       -.72925E-06    .13225E-04
  32  Prefactor     .63555        .19316        .22916E-06    .79273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4729
  norm       = 4.79289
  Prefactor  = 6.3743
  Prefactor  = 4.35345
  Prefactor  = 0.882706
  Prefactor  = 1.73649
  norm       = 4.97115
  Prefactor  = 6.96188
  Prefactor  = 1.34802
  Prefactor  = 49.0004
  Prefactor  = 4.5345
  Prefactor  = 0.0001
  norm       = 5.6813
  Prefactor  = 50.731
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0200655
  norm       = 0.0001
  norm       = 3.15996
  norm       = 0.000100002
  norm       = 6.30962
  Prefactor  = 0.0001
  Prefactor  = 12.5924
  norm       = 3.52353
  Prefactor  = 23.4493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14183
  Prefactor  = 0.635554
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.872     FROM HESSE     STATUS=OK           677 CALLS     5101 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.473        28.739        .11342E-03   -1.5001    
   2  norm          4.7929        2.7821        .93294E-04   -1.5270    
   3  Prefactor     6.3743        5.6627        .79489E-03   -1.5203    
   4  Prefactor     4.3535        2.2183        .78398E-04   -1.5291    
   5  Prefactor     .88271        1.2807        .12201E-02   -1.5520    
   6  Prefactor     1.7365        3.0138        .17497E-03   -1.5444    
   7  norm          4.9712        4.0123        .13504E-03   -1.5262    
   8  Prefactor     6.9619        6.2729        .15204E-03   -1.5180    
   9  Prefactor     1.3480        58.770        .37817E-03   -1.5476    
  10  Prefactor     49.000        61.673        .57313E-04   -1.4307    
  11  Prefactor     4.5345        6.3805        .94518E-03   -1.5282    
  12  Prefactor     .10000E-03    4.3977        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6813        3.8656        .12102E-03   -1.5231    
  14  Prefactor     50.731        47.780        .56312E-04   -1.4282    
  15  Prefactor     .10000E-03    8.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7301        .99986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5441        .18091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .20065E-01    3.8431        .42798E-01   -1.5680    
  19  norm          .10000E-03    4.9484        .17093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1600        3.2877        .13405E-03   -1.5352    
  21  norm          .10000E-03    8.0006        .28477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.3096        12.261        .15980E-03   -1.5206    
  23  Prefactor     .10000E-03    3.0755        .26469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.592        19.374        .11279E-03   -1.4998    
  25  norm          3.5235        6.7984        .10768E-02   -1.5333    
  26  Prefactor     23.449        57.760        .82667E-04   -1.4739    
  27  Prefactor     .10000E-03    97.905        .55020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    21.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.8356        .10383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1418        .18839        .21142E-03   -.88420    
  32  Prefactor     .63555        .22052        .32569E-03   -1.0611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54159e-09
Minuit parameter uncertainties:
  1  28.7707
  2  2.7822
  3  5.66314
  4  2.21834
  5  1.28077
  6  3.0141
  7  4.01252
  8  6.27345
  9  17.8196
  10  61.7532
  11  6.38146
  12  7.65727e-06
  13  3.86574
  14  47.8162
  15  2.65321e-05
  16  2.87423e-06
  17  4.21667e-06
  18  0.55404
  19  4.98241e-06
  20  3.28789
  21  0.000232201
  22  12.2659
  23  2.60236e-05
  24  19.3832
  25  6.79994
  26  57.8986
  27  0.000432855
  28  1.49304e-05
  29  8.67239e-06
  30  1.85504e-06
  31  0.188504
  32  0.220822
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  5.681e+00  3.866e+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:  6.356e-01  2.208e-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.142e+00  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.61
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 8.98e-06

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) = 6199.99539427
delta logL = 0.87702700083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6199.97997257
delta logL = 0.892448700853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2600       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4972       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62548       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=   6199.980     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2600        3.6106        .43814E-02   -.67013E-02
   2  alpha         1.4970        .41386        .34522       -.32275E-04
   3  Normalizat    1.1583        .15888        .36003E-01    .56465E-05
   4  Prefactor     .62558        .18851        .74127E-01    .25904E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.26002
  alpha      = 1.49696
  Normalizat = 1.15827
  Prefactor  = 0.625581
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.980     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2600        4.0607        .12070E-03   -1.5249    
   2  alpha         1.4970        .50773        .13948E-01   -.41284    
   3  Normalizat    1.1583        .18073        .21012E-03   -.87902    
   4  Prefactor     .62558        .21404        .32816E-03   -1.0652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40748e-08
Minuit parameter uncertainties:
  1  4.06087
  2  0.511981
  3  0.18083
  4  0.214315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47883': 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) = 6199.97997218
delta logL = 0.892449096679

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  5.260e+00  4.061e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.497e+00  5.120e-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:  6.256e-01  2.143e-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.158e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.41
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.50 +/- 0.51
Photon Flux (Free Index): 1.70e-08 +/- 1.51e-08
Energy Flux (Free Index): 2.56e-05 +/- 2.48e-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/47883/cmap_HighResolution_536112001_536371201_4FGL_J1257.8+3228_daily_bin1145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='2.56e-05', photon_flux_error='2.26e-08', dlogl='8.92e-01', energy_flux='1.32e-05', photon_flux2='1.70e-08', job_status='DONE', time_completed='2021-09-06 12:27:24.782605', photon_index_error2='0.51', photon_index2='1.50', ts='9.61', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='2.48e-05', EG='1.14', time_epoch_completed='1630956444.78', return_code='0', job_id='47883', GAL2='0.63', EG2='1.16', return_code2='0', energy_flux_error='8.98e-06', photon_flux_error2='1.51e-08', ts2='11.41', photon_index='2.22' WHERE bin_id='1145' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:27:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 47883: <4FGL_J1257.8+3228_daily_bin1145> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1145> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:11:02 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:11:03 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:11:03 2021
Terminated at Mon Sep  6 12:27:25 2021
Results reported at Mon Sep  6 12:27:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1145 194.473 32.4721 536112001 536371201 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 :                                   784.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            983 sec.

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

