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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1525
RA = 194.473, Dec = 32.4721
tmin = 634608001, tmax = 634867201
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='50921', job_status='RUN', time_executed='2021-09-06 12:22:51.619251', time_epoch_executed='1630956171.62' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50921/ft1_4FGL_J1257.8+3228_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50921/ft2_4FGL_J1257.8+3228_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50921/ft1_4FGL_J1257.8+3228_daily_bin1525.fits outfile=/scratch/kocevski/50921/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1525.fits ra=194.473 dec=32.4721 rad=12.0 tmin=634608001.0 tmax=634867201.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.06
user 2.82
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50921/ft1_filtered_4FGL_J1257.8+3228_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/50921/ft2_4FGL_J1257.8+3228_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/50921/ltcube_634608001_634867201_4FGL_J1257.8+3228_daily_bin1525.fits outfile=/scratch/kocevski/50921/expmap_634608001_634867201_4FGL_J1257.8+3228_daily_bin1525.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/50921/ltcube_634608001_634867201_4FGL_J1257.8+3228_daily_bin1525.fits
.....................!
real 194.25
user 188.86
sys 4.98

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/50921/ft1_filtered_4FGL_J1257.8+3228_daily_bin1525.fits scfile=/scratch/kocevski/50921/ft2_4FGL_J1257.8+3228_daily_bin1525.fits outfile=/scratch/kocevski/50921/cmap_634608001_634867201_4FGL_J1257.8+3228_daily_bin1525.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50921/ft1_filtered_4FGL_J1257.8+3228_daily_bin1525.fits scfile=/scratch/kocevski/50921/ft2_4FGL_J1257.8+3228_daily_bin1525.fits outfile=/scratch/kocevski/50921/cmap_HighResolution_634608001_634867201_4FGL_J1257.8+3228_daily_bin1525.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.85
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13060E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.407       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43614E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.514       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.807       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    41.675       1.0000         .10000E-03   10000.    
    20 'norm      '    15.557       1.0000         .10000E-03   10000.    
    21 'norm      '    43.645       1.0000         .10000E-03   10000.    
    22 'norm      '    4.2954       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2925       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.6442       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.105       1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.772       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17940E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2451       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79855       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=   3591.103     FROM MIGRAD    STATUS=CONVERGED   1516 CALLS     5033 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    152.93        .18142E-02** at limit **
   2  norm          .10000E-03    3.4659        .10855E-02** at limit **
   3  Prefactor     .10000E-03    34.867        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.2019        .86706E-03** at limit **
   5  Prefactor     14.185        6.7653        .10369E-03    .12748E-03
   6  Prefactor     .10000E-03    12.083        .18142E-02** at limit **
   7  norm          21.406        12.706        .86570E-04    .54368E-04
   8  Prefactor     .10000E-03    35.880        .18142E-02** at limit **
   9  Prefactor     .10000E-03    67.277        .12792    ** at limit **
  10  Prefactor     .10000E-03    44.158        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.3584        .10723E-02** at limit **
  12  Prefactor     .10000E-03    31.863        .36285E-03** at limit **
  13  norm          .10000E-03    4.4505        .12304E-02** at limit **
  14  Prefactor     .10000E-03    49.903        .18142E-02** at limit **
  15  Prefactor     33.511        56.388        .69219E-04    .25786E-04
  16  norm          .10000E-03    1.6780        .75757E-03** at limit **
  17  Prefactor     27.791        29.368        .75973E-04    .10358E-03
  18  norm          .10000E-03    3.2213        .10494E-02** at limit **
  19  norm          41.676        23.030        .62096E-04    .30209E-05
  20  norm          15.573        17.168        .10155E-03   -.14577E-03
  21  norm          43.625        26.296        .60684E-04   -.74132E-04
  22  norm          4.2976        25.621        .19438E-03    .50882E-05
  23  Prefactor     1.2954        8.4272        .26422E-03    .16845E-04
  24  Prefactor     .10000E-03    17.968        .18142E-02** at limit **
  25  norm          3.6448        4.7933        .14653E-03   -.14741E-04
  26  Prefactor     10.988        153.06        .12022E-03   -.58157E-05
  27  Prefactor     28.760        22.483        .74691E-04    .53349E-04
  28  Prefactor     .10000E-03    82.850        .18142E-02** at limit **
  29  Prefactor     .10000E-03    26.588        .18142E-02** at limit **
  30  Prefactor     .10000E-03    1.4048        .69267E-03** at limit **
  31  Normalizat    1.2449        .31143        .24559E-03    .24547E-03
  32  Prefactor     .79864        .34289        .35155E-03    .10753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1854
  Prefactor  = 0.0001
  norm       = 21.4057
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.5114
  norm       = 0.0001
  Prefactor  = 27.791
  norm       = 0.0001
  norm       = 41.6759
  norm       = 15.5731
  norm       = 43.6253
  norm       = 4.29758
  Prefactor  = 1.29537
  Prefactor  = 0.0001
  norm       = 3.64477
  Prefactor  = 10.9876
  Prefactor  = 28.7601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24492
  Prefactor  = 0.798644
 **********
 **   18 **HESSE 
 **********

 FCN=   3591.103     FROM HESSE     STATUS=OK           635 CALLS     5668 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.4662        .21711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2019        .17341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.185        6.7651        .20738E-04   -1.4955    
   6  Prefactor     .10000E-03    12.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.406        12.705        .34628E-05   -1.4782    
   8  Prefactor     .10000E-03    35.897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    66.334        .12913       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.158        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3584        .21445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.864        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.4508        .24609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.511        56.384        .27688E-05   -1.4550    
  16  norm          .10000E-03    1.6780        .15151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.791        29.363        .15195E-04   -1.4653    
  18  norm          .10000E-03    3.2213        .20987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          41.676        23.032        .24838E-05   -1.4416    
  20  norm          15.573        17.163        .40618E-05   -1.4919    
  21  norm          43.625        26.300        .12137E-04   -1.4386    
  22  norm          4.2976        25.622        .77754E-05   -1.5293    
  23  Prefactor     1.2954        8.3757        .10569E-04   -1.5480    
  24  Prefactor     .10000E-03    17.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.6448        4.7932        .58612E-05   -1.5326    
  26  Prefactor     10.988        152.43        .48089E-05   -1.5045    
  27  Prefactor     28.760        22.482        .29876E-05   -1.4635    
  28  Prefactor     .10000E-03    82.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    26.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.4049        .13853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2449        .31171        .49119E-04   -.85226    
  32  Prefactor     .79864        .34319        .14062E-04   -.99778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87064e-10
Minuit parameter uncertainties:
  1  0.000310904
  2  4.38669e-06
  3  0.00010715
  4  1.96013e-06
  5  6.76547
  6  9.25354e-06
  7  12.7069
  8  1.83156e-05
  9  0.000829158
  10  8.57214e-05
  11  1.13804e-06
  12  0.00020969
  13  3.60081e-06
  14  0.000167716
  15  56.4734
  16  3.3753e-07
  17  29.3785
  18  1.85588e-05
  19  23.0373
  20  17.1688
  21  26.3073
  22  21
  23  6.58885
  24  0.000133575
  25  4.79371
  26  82.1045
  27  22.4884
  28  9.38914e-05
  29  6.29898e-05
  30  7.30066e-07
  31  0.31218
  32  0.344117
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  3.601e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  7.986e-01  3.441e-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.245e+00  3.122e-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: 9.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/50921/likelihoodResults_634608001_634867201_4FGL_J1257.8+3228_daily_bin1525.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) = 3591.10371774
delta logL = -0.00106025733294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3591.10265746
delta logL = 2.30497789744e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2282       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79866       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3591.103     FROM MIGRAD    STATUS=FAILED       119 CALLS      267 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    252.41        .40993E-01** at limit **
   2  alpha         2.9680        3.8701        .50000       -.20537E-04
   3  Normalizat    1.2449        .67775E-01    .24559E-03    .92581E-07
   4  Prefactor     .79865        .71575E-01    .35154E-03    .46568E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3591.103     FROM SIMPLEX   STATUS=UNCHANGED    230 CALLS      497 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    252.41        .39236E-03** at limit **
   2  alpha         2.9680        3.8701        .22893E-07   -.20537E-04
   3  Normalizat    1.2449        .67775E-01    .76647E-09    .92581E-07
   4  Prefactor     .79865        .71575E-01    .18279E-09    .46568E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3591.103     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      536 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9566        .22042E-02** at limit **
   2  alpha         2.9681        3.6799        .50000       -.20542E-04
   3  Normalizat    1.2449        .28154        .49119E-04    .25460E-04
   4  Prefactor     .79865        .33096        .70309E-04    .16897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 2.96805
  Normalizat = 1.24492
  Prefactor  = 0.798647
 **********
 **   18 **HESSE 
 **********

 FCN=   3591.103     FROM HESSE     STATUS=OK            29 CALLS      565 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3885        .44084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9681        3.6423        .50000        .18833    
   3  Normalizat    1.2449        .28153        .98237E-05   -.85226    
   4  Prefactor     .79865        .33097        .14062E-04   -.99778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10426e-09
Minuit parameter uncertainties:
  1  0.000317546
  2  2.46015
  3  0.281879
  4  0.331802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50921': 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) = 3591.10265408
delta logL = 3.40007272825e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  3.175e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.968e+00  2.460e+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:  7.986e-01  3.318e-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.245e+00  2.819e-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/50921/cmap_HighResolution_634608001_634867201_4FGL_J1257.8+3228_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', job_status='DONE', photon_flux_upper_limit='9.83e-08', time_completed='2021-09-06 12:35:45.356426', job_id='50921', GAL2='0.80', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630956945.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1525' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 50921: <4FGL_J1257.8+3228_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1525> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 12:20:26 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:20:27 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:20:27 2021
Terminated at Mon Sep  6 12:35:46 2021
Results reported at Mon Sep  6 12:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1525 194.473 32.4721 634608001 634867201 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 :                                   702.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

