/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 2 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin432
RA = 194.473, Dec = 32.4721
tmin = 351302401, tmax = 351561601
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='44186', job_status='RUN', time_executed='2021-09-06 12:00:46.114285', time_epoch_executed='1630954846.11' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/44186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/44186/ft1_4FGL_J1257.8+3228_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/44186/ft2_4FGL_J1257.8+3228_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/44186/ft1_4FGL_J1257.8+3228_daily_bin432.fits outfile=/scratch/kocevski/44186/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin432.fits ra=194.473 dec=32.4721 rad=12.0 tmin=351302401.0 tmax=351561601.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.42
user 3.17
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/44186/ft2_4FGL_J1257.8+3228_daily_bin432.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/44186/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin432.fits evtable="EVENTS" outfile="/scratch/kocevski/44186/ft1_filtered_4FGL_J1257.8+3228_daily_bin432.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.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/44186/ft1_filtered_4FGL_J1257.8+3228_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/44186/ft2_4FGL_J1257.8+3228_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/44186/ltcube_351302401_351561601_4FGL_J1257.8+3228_daily_bin432.fits outfile=/scratch/kocevski/44186/expmap_351302401_351561601_4FGL_J1257.8+3228_daily_bin432.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/44186/ltcube_351302401_351561601_4FGL_J1257.8+3228_daily_bin432.fits
.....................!
real 190.95
user 185.63
sys 4.88

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/44186/ft1_filtered_4FGL_J1257.8+3228_daily_bin432.fits scfile=/scratch/kocevski/44186/ft2_4FGL_J1257.8+3228_daily_bin432.fits outfile=/scratch/kocevski/44186/cmap_351302401_351561601_4FGL_J1257.8+3228_daily_bin432.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/44186/ft1_filtered_4FGL_J1257.8+3228_daily_bin432.fits scfile=/scratch/kocevski/44186/ft2_4FGL_J1257.8+3228_daily_bin432.fits outfile=/scratch/kocevski/44186/cmap_HighResolution_351302401_351561601_4FGL_J1257.8+3228_daily_bin432.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1576       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7953       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29580       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6943       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7207       1.0000         .10000E-03   10000.    
    13 'norm      '    .10528E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.235       1.0000         .10000E-03   10000.    
    16 'norm      '    12.407       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.630       1.0000         .10000E-03   10000.    
    18 'norm      '    .39178E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.2318       1.0000         .10000E-03   10000.    
    21 'norm      '    8.3412       1.0000         .10000E-03   10000.    
    22 'norm      '    23.877       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.3280       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    62.453       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.2519       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1378       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84113       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=   6397.888     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4442 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1220        30.874       -.85626E-06   -.11911E-03
   2  norm          5.7954        2.9595       -.28522E-06   -.21516E-03
   3  Prefactor     .10000E-03    5.2137       -.20922E-06** at limit **
   4  Prefactor     .29606        1.7558        .15257E-05   -.40386E-04
   5  Prefactor     2.0333        2.4032        .51599E-07   -.20313E-03
   6  Prefactor     .10000E-03    2.5716        .19408E-07** at limit **
   7  norm          6.3439        4.2460        .20836E-08   -.56610E-04
   8  Prefactor     13.070        9.5881       -.75873E-07   -.48471E-04
   9  Prefactor     .10000E-03    6.7529        .11838E-07** at limit **
  10  Prefactor     .10000E-03    26.096        .36613E-06** at limit **
  11  Prefactor     1.6925        11.148        .21308E-05   -.32615E-04
  12  Prefactor     2.7200        3.9082        .15090E-06   -.29087E-04
  13  norm          .10000E-03    1.5754        .66628E-07** at limit **
  14  Prefactor     .10000E-03    50.126        .19813E-06** at limit **
  15  Prefactor     25.235        23.998       -.90544E-06   -.17412E-03
  16  norm          12.406        5.3961       -.93610E-07   -.86009E-04
  17  Prefactor     19.621        18.003        .20493E-06   -.26693E-03
  18  norm          .10000E-03    3.6159        .82758E-06** at limit **
  19  norm          .10000E-03    4.9567       -.17644E-07** at limit **
  20  norm          1.2243        5.4434        .30771E-05   -.19570E-04
  21  norm          8.3531        10.113       -.18676E-05   -.15077E-03
  22  norm          23.876        20.253        .26452E-08   -.12995E-04
  23  Prefactor     .10000E-03    .85396        .34665E-08** at limit **
  24  Prefactor     .10000E-03    10.760        .20392E-06** at limit **
  25  norm          5.3278        5.3974        .22835E-07   -.13603E-04
  26  Prefactor     .10000E-03    22.249       -.23553E-06** at limit **
  27  Prefactor     .10000E-03    9.8609        .18127E-06** at limit **
  28  Prefactor     .10000E-03    6.5025        .10231E-06** at limit **
  29  Prefactor     62.431        74.019       -.48637E-06   -.59539E-04
  30  Prefactor     1.2518        2.3108        .25748E-06   -.24954E-04
  31  Normalizat    1.1379        .17516        .59142E-06   -.34641E-03
  32  Prefactor     .84103        .20557       -.16623E-05   -.13640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.12197
  norm       = 5.79536
  Prefactor  = 0.0001
  Prefactor  = 0.296062
  Prefactor  = 2.03331
  Prefactor  = 0.0001
  norm       = 6.34394
  Prefactor  = 13.0697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.69251
  Prefactor  = 2.71996
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2351
  norm       = 12.4062
  Prefactor  = 19.6214
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 1.22428
  norm       = 8.35314
  norm       = 23.876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.32778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.4309
  Prefactor  = 1.2518
  Normalizat = 1.13791
  Prefactor  = 0.841028
 **********
 **   18 **HESSE 
 **********

 FCN=   6397.888     FROM HESSE     STATUS=OK           659 CALLS     5101 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1220        31.033        .13244E-03   -1.5104    
   2  norm          5.7954        2.9277        .89164E-04   -1.5226    
   3  Prefactor     .10000E-03    5.2850        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .29606        1.6784        .19369E-03   -1.5599    
   5  Prefactor     2.0333        2.3729        .12439E-03   -1.5423    
   6  Prefactor     .10000E-03    2.5817        .12521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3439        4.2414        .13010E-03   -1.5204    
   8  Prefactor     13.070        9.5741        .11080E-03   -1.4985    
   9  Prefactor     .10000E-03    6.7660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6925        11.069        .32332E-03   -1.5448    
  12  Prefactor     2.7200        3.8849        .18025E-03   -1.5378    
  13  norm          .10000E-03    1.5800        .97886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.235        23.858        .79744E-04   -1.4703    
  16  norm          12.406        5.3753        .11373E-03   -1.5003    
  17  Prefactor     19.621        17.261        .90401E-04   -1.4822    
  18  norm          .10000E-03    6.0976        .27446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.9638        .17393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2243        5.2341        .20021E-03   -1.5487    
  21  norm          8.3531        9.9415        .13881E-03   -1.5130    
  22  norm          23.876        20.247        .81975E-04   -1.4730    
  23  Prefactor     .10000E-03    .85927        .72136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.3278        5.3954        .17411E-03   -1.5246    
  26  Prefactor     .10000E-03    22.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.9227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.5129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     62.431        74.273        .50776E-04   -1.4126    
  30  Prefactor     1.2518        2.2601        .16056E-03   -1.5484    
  31  Normalizat    1.1379        .20300        .22397E-03   -.88544    
  32  Prefactor     .84103        .23612        .31328E-03   -.98233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58784e-10
Minuit parameter uncertainties:
  1  31.0875
  2  2.92773
  3  2.18997e-05
  4  1.40964
  5  2.37301
  6  3.22202e-07
  7  4.24162
  8  9.57521
  9  1.33448e-05
  10  0.000141091
  11  8.65891
  12  3.88528
  13  1.14134e-06
  14  1.94449e-05
  15  23.8667
  16  5.37554
  17  17.2656
  18  0.00023033
  19  1.21297e-05
  20  5.06335
  21  9.94345
  22  20.2529
  23  2.32125e-06
  24  1.91392e-06
  25  5.39588
  26  0.000125486
  27  8.32804e-06
  28  5.97719e-06
  29  74.3838
  30  2.2603
  31  0.203139
  32  0.23641
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.141e-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:  8.410e-01  2.364e-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.138e+00  2.031e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/44186/likelihoodResults_351302401_351561601_4FGL_J1257.8+3228_daily_bin432.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) = 6397.8905331
delta logL = -0.00297269674957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6397.88756036
delta logL = 4.94637788506e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2279       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84103       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=   6397.888     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7856        .90712E-02** at limit **
   2  alpha         2.2368        3.5187        .41464       -.28438E-04
   3  Normalizat    1.1379        .16343        .36631E-01    .49927E-05
   4  Prefactor     .84103        .20049        .70803E-01    .19612E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.2368
  Normalizat = 1.13791
  Prefactor  = 0.841026
 **********
 **   18 **HESSE 
 **********

 FCN=   6397.888     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5947        .98183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2368        3.4865        .50000       -.10548    
   3  Normalizat    1.1379        .18885        .22397E-03   -.88544    
   4  Prefactor     .84103        .23131        .31328E-03   -.98233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17581e-10
Minuit parameter uncertainties:
  1  3.36687e-06
  2  2.49048
  3  0.188961
  4  0.231579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/44186': 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) = 6397.8875602
delta logL = 2.02699993679e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  3.367e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.237e+00  2.490e+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.410e-01  2.316e-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.138e+00  1.890e-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/44186/cmap_HighResolution_351302401_351561601_4FGL_J1257.8+3228_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='4.30e-08', time_completed='2021-09-06 12:16:41.266691', job_id='44186', GAL2='0.84', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630955801.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='432' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 44186: <4FGL_J1257.8+3228_daily_bin432> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin432> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:00:31 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:00:33 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:00:33 2021
Terminated at Mon Sep  6 12:16:42 2021
Results reported at Mon Sep  6 12:16:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin432 194.473 32.4721 351302401 351561601 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 :                                   949.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

