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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1049
RA = 194.473, Dec = 32.4721
tmin = 511228801, tmax = 511488001
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='47760', job_status='RUN', time_executed='2021-09-06 12:13:11.115417', time_epoch_executed='1630955591.12' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47760/ft1_4FGL_J1257.8+3228_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47760/ft2_4FGL_J1257.8+3228_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47760/ft1_4FGL_J1257.8+3228_daily_bin1049.fits outfile=/scratch/kocevski/47760/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1049.fits ra=194.473 dec=32.4721 rad=12.0 tmin=511228801.0 tmax=511488001.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.51
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47760/ft1_filtered_4FGL_J1257.8+3228_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/47760/ft2_4FGL_J1257.8+3228_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/47760/ltcube_511228801_511488001_4FGL_J1257.8+3228_daily_bin1049.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/47760/ft2_4FGL_J1257.8+3228_daily_bin1049.fits
.....................!
real 11.65
user 11.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47760/ft1_filtered_4FGL_J1257.8+3228_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/47760/ft2_4FGL_J1257.8+3228_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/47760/ltcube_511228801_511488001_4FGL_J1257.8+3228_daily_bin1049.fits outfile=/scratch/kocevski/47760/expmap_511228801_511488001_4FGL_J1257.8+3228_daily_bin1049.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/47760/ltcube_511228801_511488001_4FGL_J1257.8+3228_daily_bin1049.fits
.....................!
real 189.42
user 184.49
sys 3.99

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/47760/ft1_filtered_4FGL_J1257.8+3228_daily_bin1049.fits scfile=/scratch/kocevski/47760/ft2_4FGL_J1257.8+3228_daily_bin1049.fits outfile=/scratch/kocevski/47760/cmap_511228801_511488001_4FGL_J1257.8+3228_daily_bin1049.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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47760/ft1_filtered_4FGL_J1257.8+3228_daily_bin1049.fits scfile=/scratch/kocevski/47760/ft2_4FGL_J1257.8+3228_daily_bin1049.fits outfile=/scratch/kocevski/47760/cmap_HighResolution_511228801_511488001_4FGL_J1257.8+3228_daily_bin1049.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.83
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.988       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0045       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.9463       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0362       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5449       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4926       1.0000         .10000E-03   10000.    
    21 'norm      '    .28724E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.874       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1703       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.790       1.0000         .10000E-03   10000.    
    25 'norm      '    .66818       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.176       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.956       1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.182       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0331       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89337       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=   5804.887     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     3790 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.280       -.46341E-05** at limit **
   2  norm          21.989        4.6479        .61999E-07    .13320E-03
   3  Prefactor     10.431        7.8536        .58518E-08   -.37162E-04
   4  Prefactor     .10000E-03    .88962       -.88175E-08** at limit **
   5  Prefactor     1.0050        1.8099       -.34513E-06   -.11144E-02
   6  Prefactor     .10001E-03    4.2829       -.32249E-06** at limit **
   7  norm          7.9466        4.2652       -.24121E-06    .13325E-03
   8  Prefactor     7.5531        9.0947        .65834E-07   -.63394E-04
   9  Prefactor     14.836        17.213        .46542E-06   -.16779E-04
  10  Prefactor     .10000E-03    30.287        .22557E-05** at limit **
  11  Prefactor     .10000E-03    2.7665        .80070E-08** at limit **
  12  Prefactor     .10000E-03    2.4454       -.86989E-08** at limit **
  13  norm          2.0416        5.7858        .51429E-05   -.37986E-03
  14  Prefactor     .10000E-03    28.113       -.66959E-05** at limit **
  15  Prefactor     7.5280        26.146       -.23837E-04   -.22031E-03
  16  norm          2.7911        2.8700        .14249E-07   -.41799E-04
  17  Prefactor     .10000E-03    14.050        .22888E-05** at limit **
  18  norm          .10000E-03    2.1714        .19167E-08** at limit **
  19  norm          .10000E-03    9.9318       -.12047E-06** at limit **
  20  norm          1.4892        2.4290        .28975E-06   -.12045E-02
  21  norm          .10001E-03    5.2613        .16527E-05** at limit **
  22  norm          17.874        19.376        .23780E-06    .13955E-04
  23  Prefactor     4.1703        2.8729        .86963E-07   -.34269E-03
  24  Prefactor     15.789        13.629        .23004E-06   -.20212E-03
  25  norm          .66845        4.3125       -.34418E-06   -.19560E-03
  26  Prefactor     .10000E-03    35.586        .99312E-05** at limit **
  27  Prefactor     10.177        10.360        .15331E-06   -.22665E-04
  28  Prefactor     10.957        12.949        .10787E-06   -.61184E-05
  29  Prefactor     18.202        66.694        .40891E-04   -.51480E-05
  30  Prefactor     .10000E-03    1.7036        .18609E-07** at limit **
  31  Normalizat    1.0330        .17161       -.78420E-06   -.73901E-04
  32  Prefactor     .89346        .20739       -.69948E-08   -.12676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 21.9892
  Prefactor  = 10.4307
  Prefactor  = 0.0001
  Prefactor  = 1.00499
  Prefactor  = 0.000100007
  norm       = 7.94656
  Prefactor  = 7.55306
  Prefactor  = 14.8363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0416
  Prefactor  = 0.0001
  Prefactor  = 7.52799
  norm       = 2.79114
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.48925
  norm       = 0.000100014
  norm       = 17.8741
  Prefactor  = 4.17031
  Prefactor  = 15.7888
  norm       = 0.668446
  Prefactor  = 0.0001
  Prefactor  = 10.1766
  Prefactor  = 10.9566
  Prefactor  = 18.2023
  Prefactor  = 0.0001
  Normalizat = 1.03295
  Prefactor  = 0.893456
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.887     FROM HESSE     STATUS=OK           673 CALLS     4463 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.989        4.6162        .72079E-04   -1.4770    
   3  Prefactor     10.431        7.8516        .12408E-03   -1.5062    
   4  Prefactor     .10000E-03    .89528        .70078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0050        1.6682        .12945E-02   -1.5507    
   6  Prefactor     .10001E-03    14.375        .30120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.9466        4.1943        .10999E-03   -1.5144    
   8  Prefactor     7.5531        9.0335        .14592E-03   -1.5158    
   9  Prefactor     14.836        17.209        .10398E-03   -1.4937    
  10  Prefactor     .10000E-03    30.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7781        .12375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4613        .11633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0416        5.5071        .23445E-03   -1.5422    
  14  Prefactor     .10000E-03    28.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5280        25.309        .14600E-03   -1.5159    
  16  norm          2.7911        2.8667        .12636E-03   -1.5374    
  17  Prefactor     .10000E-03    14.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1856        .10960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.9978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4892        2.1418        .12793E-03   -1.5464    
  21  norm          .10001E-03    15.577        .30001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.874        19.360        .94735E-04   -1.4862    
  23  Prefactor     4.1703        2.8653        .99562E-04   -1.5300    
  24  Prefactor     15.789        13.584        .10079E-03   -1.4913    
  25  norm          .66845        16.619        .29823E-02   -1.5544    
  26  Prefactor     .10000E-03    35.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.177        10.361        .12561E-03   -1.5070    
  28  Prefactor     10.957        12.947        .12104E-03   -1.5046    
  29  Prefactor     18.202        66.374        .93928E-04   -1.4854    
  30  Prefactor     .10000E-03    3.0609        .19362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0330        .20170        .22776E-03   -.91935    
  32  Prefactor     .89346        .24342        .30127E-03   -.96370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30764e-09
Minuit parameter uncertainties:
  1  6.28182e-05
  2  4.61626
  3  7.85235
  4  8.30824e-07
  5  1.66826
  6  0.00063481
  7  4.19445
  8  9.03516
  9  17.2146
  10  3.12622e-05
  11  2.41222e-06
  12  9.48493e-06
  13  5.50849
  14  4.12248e-06
  15  25.3447
  16  2.86687
  17  6.48692e-05
  18  1.50694e-05
  19  1.44479e-06
  20  2.14192
  21  0.000932124
  22  19.3665
  23  2.86536
  24  13.5867
  25  6.66754
  26  5.5181e-05
  27  10.3623
  28  12.9507
  29  66.6448
  30  5.7107e-06
  31  0.201848
  32  0.243716
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.042e+00  5.508e+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:  8.935e-01  2.437e-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.033e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47760/likelihoodResults_511228801_511488001_4FGL_J1257.8+3228_daily_bin1049.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) = 5804.80215414
delta logL = 0.0851996317797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5804.80055664
delta logL = 0.0867971260368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8585       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7003       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89896       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=   5804.801     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8583        4.2084        .16776E-03    .45683E-03
   2  alpha         2.7005        1.2463        .22866E-01    .48533E-04
   3  Normalizat    1.0240        .19533        .22861E-03   -.21730E-03
   4  Prefactor     .89886        .24093        .30041E-03   -.17268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85829
  alpha      = 2.70048
  Normalizat = 1.02398
  Prefactor  = 0.898865
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.801     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8583        3.8303        .67103E-05   -1.5435    
   2  alpha         2.7005        1.1431        .91464E-03    .80280E-01
   3  Normalizat    1.0240        .19552        .45721E-04   -.92231    
   4  Prefactor     .89886        .24099        .12016E-04   -.96181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75688e-10
Minuit parameter uncertainties:
  1  3.8308
  2  1.18749
  3  0.195656
  4  0.241278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47760': 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) = 5804.80055655
delta logL = 0.0867972185551

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.858e+00  3.831e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.700e+00  1.187e+00  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:  8.989e-01  2.413e-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.024e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/47760/cmap_HighResolution_511228801_511488001_4FGL_J1257.8+3228_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-09-06 12:27:17.162421', job_id='47760', GAL2='0.90', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1630956437.16', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.68e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1049' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:27:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 47760: <4FGL_J1257.8+3228_daily_bin1049> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1049 194.473 32.4721 511228801 511488001 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 :                                   831.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

