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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin247
RA = 194.473, Dec = 32.4721
tmin = 303350401, tmax = 303609601
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='42610', job_status='RUN', time_executed='2021-09-06 11:57:30.380482', time_epoch_executed='1630954650.38' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42610

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42610/ft1_4FGL_J1257.8+3228_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42610/ft2_4FGL_J1257.8+3228_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42610/ft1_4FGL_J1257.8+3228_daily_bin247.fits outfile=/scratch/kocevski/42610/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin247.fits ra=194.473 dec=32.4721 rad=12.0 tmin=303350401.0 tmax=303609601.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.37
user 3.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42610/ft2_4FGL_J1257.8+3228_daily_bin247.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/42610/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin247.fits evtable="EVENTS" outfile="/scratch/kocevski/42610/ft1_filtered_4FGL_J1257.8+3228_daily_bin247.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.61
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42610/ft1_filtered_4FGL_J1257.8+3228_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/42610/ft2_4FGL_J1257.8+3228_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/42610/ltcube_303350401_303609601_4FGL_J1257.8+3228_daily_bin247.fits outfile=/scratch/kocevski/42610/expmap_303350401_303609601_4FGL_J1257.8+3228_daily_bin247.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/42610/ltcube_303350401_303609601_4FGL_J1257.8+3228_daily_bin247.fits
.....................!
real 190.17
user 185.03
sys 4.78

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/42610/ft1_filtered_4FGL_J1257.8+3228_daily_bin247.fits scfile=/scratch/kocevski/42610/ft2_4FGL_J1257.8+3228_daily_bin247.fits outfile=/scratch/kocevski/42610/cmap_303350401_303609601_4FGL_J1257.8+3228_daily_bin247.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42610/ft1_filtered_4FGL_J1257.8+3228_daily_bin247.fits scfile=/scratch/kocevski/42610/ft2_4FGL_J1257.8+3228_daily_bin247.fits outfile=/scratch/kocevski/42610/cmap_HighResolution_303350401_303609601_4FGL_J1257.8+3228_daily_bin247.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.909       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9154       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5239       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .28836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.381       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3044       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .93180       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.686       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.098       1.0000         .10000E-03   10000.    
    20 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    49.902       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .47061       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.5882       1.0000         .10000E-03   10000.    
    26 'Prefactor '    55.748       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .86401       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2340       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .83699       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=   5885.602     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4409 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.894        45.490       -.21700E-05   -.13267E-03
   2  norm          4.4720        3.6422       -.10713E-06   -.16468E-03
   3  Prefactor     7.9139        7.8985        .27005E-06   -.45294E-04
   4  Prefactor     1.5237        1.9828        .43916E-06   -.36646E-03
   5  Prefactor     2.6552        2.7569       -.50078E-07   -.25172E-03
   6  Prefactor     .10000E-03    3.1969        .98199E-06** at limit **
   7  norm          .30269        2.6861        .61234E-06   -.52220E-03
   8  Prefactor     8.0383        14.180        .25838E-05   -.25960E-03
   9  Prefactor     16.380        18.772        .10608E-06   -.20561E-04
  10  Prefactor     .10000E-03    70.410        .56278E-06** at limit **
  11  Prefactor     .10000E-03    2.9938        .96082E-07** at limit **
  12  Prefactor     .10000E-03    2.5267        .27196E-07** at limit **
  13  norm          1.2884        6.7351        .34586E-05    .54936E-04
  14  Prefactor     .76148        21.013        .10753E-05   -.31351E-03
  15  Prefactor     31.752        30.763       -.39285E-06    .82602E-04
  16  norm          .10000E-03    1.1179        .29573E-07** at limit **
  17  Prefactor     .10000E-03    18.508        .30095E-06** at limit **
  18  norm          .10000E-03    2.6598        .57963E-07** at limit **
  19  norm          15.098        11.910       -.86650E-07    .66713E-04
  20  norm          .10000E-03    3.1062       -.88272E-06** at limit **
  21  norm          .10000E-03    3.3814       -.27747E-07** at limit **
  22  norm          49.900        26.877        .13953E-06   -.30408E-04
  23  Prefactor     .47076        2.5347        .28882E-06   -.28096E-03
  24  Prefactor     .10000E-03    4.1047       -.14971E-08** at limit **
  25  norm          3.5880        3.6147        .22205E-07    .39784E-04
  26  Prefactor     55.772        51.230        .35409E-05    .16911E-03
  27  Prefactor     .10000E-03    9.8325        .19093E-06** at limit **
  28  Prefactor     .10000E-03    15.855       -.90166E-07** at limit **
  29  Prefactor     .10000E-03    44.659       -.37186E-06** at limit **
  30  Prefactor     .86466        2.2459        .74549E-06    .46187E-03
  31  Normalizat    1.2344        .18253       -.17863E-05   -.13822E-03
  32  Prefactor     .83666        .21511       -.58948E-06   -.16560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.894
  norm       = 4.47204
  Prefactor  = 7.91391
  Prefactor  = 1.52372
  Prefactor  = 2.65516
  Prefactor  = 0.0001
  norm       = 0.302685
  Prefactor  = 8.03825
  Prefactor  = 16.3804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28844
  Prefactor  = 0.761479
  Prefactor  = 31.7517
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.0983
  norm       = 0.0001
  norm       = 0.0001
  norm       = 49.8999
  Prefactor  = 0.470756
  Prefactor  = 0.0001
  norm       = 3.58799
  Prefactor  = 55.7719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.86466
  Normalizat = 1.23439
  Prefactor  = 0.836664
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.602     FROM HESSE     STATUS=OK           667 CALLS     5076 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.894        45.844        .62672E-04   -1.4428    
   2  norm          4.4720        3.6269        .11957E-03   -1.5285    
   3  Prefactor     7.9139        7.8926        .14252E-03   -1.5145    
   4  Prefactor     1.5237        1.9672        .56908E-03   -1.5461    
   5  Prefactor     2.6552        2.7257        .11789E-03   -1.5382    
   6  Prefactor     .10000E-03    3.2253        .13416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .30269        12.504        .23670E-02   -1.5598    
   8  Prefactor     8.0383        14.208        .70687E-03   -1.5141    
   9  Prefactor     16.380        18.772        .98956E-04   -1.4898    
  10  Prefactor     .10000E-03    70.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0111        .12965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5550        .11905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2884        6.4023        .32153E-03   -1.5481    
  14  Prefactor     .76148        36.077        .14355       -1.5533    
  15  Prefactor     31.752        29.836        .71182E-04   -1.4580    
  16  norm          .10000E-03    1.1223        .79208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6730        .12207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.098        11.939        .10308E-03   -1.4931    
  20  norm          .10000E-03    3.2113        .26420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4027        .13771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          49.900        26.879        .56769E-04   -1.4294    
  23  Prefactor     .47076        4.3552        .21805E-02   -1.5571    
  24  Prefactor     .10000E-03    4.1085        .15176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.5880        3.6211        .14244E-03   -1.5329    
  26  Prefactor     55.772        51.665        .26862E-03   -1.4213    
  27  Prefactor     .10000E-03    9.9005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    44.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .86466        1.8887        .18599E-02   -1.5522    
  31  Normalizat    1.2344        .21736        .22220E-03   -.85547    
  32  Prefactor     .83666        .25820        .32085E-03   -.98391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41051e-08
Minuit parameter uncertainties:
  1  45.8832
  2  3.62704
  3  7.89366
  4  1.96728
  5  2.72587
  6  3.33564e-05
  7  3.89115
  8  14.2136
  9  18.7786
  10  2.14343e-05
  11  6.47863e-06
  12  9.85698e-07
  13  5.74498
  14  10.4888
  15  29.8499
  16  1.77056e-06
  17  3.40474e-05
  18  2.49254e-07
  19  11.9412
  20  4.32288e-05
  21  4.932e-06
  22  26.8852
  23  2.86371
  24  2.41096e-06
  25  3.62131
  26  51.7062
  27  2.24193e-05
  28  1.18649e-05
  29  3.16752e-05
  30  1.88883
  31  0.217519
  32  0.258571
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.288e+00  5.745e+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.367e-01  2.586e-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.234e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/42610/likelihoodResults_303350401_303609601_4FGL_J1257.8+3228_daily_bin247.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) = 5885.35788443
delta logL = 0.244356306239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5885.34702238
delta logL = 0.255218357862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6523       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1187       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85419       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=   5885.347     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6551        62.173        .82103E-02    .71480E-03
   2  alpha         3.1185        3.8347        .42869        .37578E-04
   3  Normalizat    1.2054        .43494E-01    .50758E-01   -.10324E-03
   4  Prefactor     .85465        .52881E-01    .71789E-01   -.52333E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65506
  alpha      = 3.11852
  Normalizat = 1.20538
  Prefactor  = 0.854653
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.347     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6551        4.0475        .13226E-03   -1.5451    
   2  alpha         3.1185        1.3897        .20348E-01    .25001    
   3  Normalizat    1.2054        .21543        .22441E-03   -.86437    
   4  Prefactor     .85465        .25741        .31766E-03   -.97744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88219e-09
Minuit parameter uncertainties:
  1  4.04813
  2  1.48014
  3  0.215593
  4  0.257778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42610': 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) = 5885.34701993
delta logL = 0.255220806573

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.655e+00  4.048e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.119e+00  1.480e+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.547e-01  2.578e-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.205e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/42610/cmap_HighResolution_303350401_303609601_4FGL_J1257.8+3228_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-06 12:12:25.987509', job_id='42610', GAL2='0.85', fit_tolerance='1e-08', EG2='1.21', EG='1.23', time_epoch_completed='1630955545.99', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.55e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='247' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:12:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 42610: <4FGL_J1257.8+3228_daily_bin247> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin247> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:56:01 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:56:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:56:02 2021
Terminated at Mon Sep  6 12:12:26 2021
Results reported at Mon Sep  6 12:12:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin247 194.473 32.4721 303350401 303609601 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 :                                   887.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

