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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1110
RA = 194.473, Dec = 32.4721
tmin = 527040001, tmax = 527299201
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='47845', job_status='RUN', time_executed='2021-09-06 12:13:51.578645', time_epoch_executed='1630955631.58' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47845/ft1_4FGL_J1257.8+3228_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47845/ft2_4FGL_J1257.8+3228_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47845/ft1_4FGL_J1257.8+3228_daily_bin1110.fits outfile=/scratch/kocevski/47845/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1110.fits ra=194.473 dec=32.4721 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.00
user 5.73
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47845/ft2_4FGL_J1257.8+3228_daily_bin1110.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/47845/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/47845/ft1_filtered_4FGL_J1257.8+3228_daily_bin1110.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47845/ft1_filtered_4FGL_J1257.8+3228_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/47845/ft2_4FGL_J1257.8+3228_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/47845/ltcube_527040001_527299201_4FGL_J1257.8+3228_daily_bin1110.fits outfile=/scratch/kocevski/47845/expmap_527040001_527299201_4FGL_J1257.8+3228_daily_bin1110.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/47845/ltcube_527040001_527299201_4FGL_J1257.8+3228_daily_bin1110.fits
.....................!
real 191.48
user 186.14
sys 4.56

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/47845/ft1_filtered_4FGL_J1257.8+3228_daily_bin1110.fits scfile=/scratch/kocevski/47845/ft2_4FGL_J1257.8+3228_daily_bin1110.fits outfile=/scratch/kocevski/47845/cmap_527040001_527299201_4FGL_J1257.8+3228_daily_bin1110.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47845/ft1_filtered_4FGL_J1257.8+3228_daily_bin1110.fits scfile=/scratch/kocevski/47845/ft2_4FGL_J1257.8+3228_daily_bin1110.fits outfile=/scratch/kocevski/47845/cmap_HighResolution_527040001_527299201_4FGL_J1257.8+3228_daily_bin1110.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0466       1.0000         .10000E-03   10000.    
     2 'norm      '    23.208       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0573       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1705       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2554       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4016       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10449E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.522       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6761       1.0000         .10000E-03   10000.    
    19 'norm      '    22.113       1.0000         .10000E-03   10000.    
    20 'norm      '    5.6936       1.0000         .10000E-03   10000.    
    21 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .66689       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.645       1.0000         .10000E-03   10000.    
    25 'norm      '    31.349       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    32.785       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8235       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93447       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99089       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=   4131.224     FROM MIGRAD    STATUS=CONVERGED   1499 CALLS     4984 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97120        350.17        .75863E-02    .45720E-04
   2  norm          23.210        6.1231        .75817E-04   -.49034E-04
   3  Prefactor     6.0567        9.3468        .16314E-03   -.13659E-04
   4  Prefactor     .10000E-03    1.9057        .85730E-03** at limit **
   5  Prefactor     1.9448        3.1173        .13268E-03   -.16751E-03
   6  Prefactor     .10000E-03    2.5292        .99762E-03** at limit **
   7  norm          17.990        7.5725        .94428E-04   -.28654E-04
   8  Prefactor     6.1709        9.9650        .16161E-03   -.36579E-04
   9  Prefactor     2.2495        50.636        .27356E-03   -.12467E-06
  10  Prefactor     .10000E-03    67.836        .18142E-02** at limit **
  11  Prefactor     4.4027        8.4248        .95981E-03    .10545E-03
  12  Prefactor     .10000E-03    3.0049        .10875E-02** at limit **
  13  norm          .10000E-03    3.7067        .12048E-02** at limit **
  14  Prefactor     .10000E-03    48.676        .18142E-02** at limit **
  15  Prefactor     23.539        36.461        .82592E-04   -.69100E-04
  16  norm          8.4811        6.2564        .13118E-03    .25895E-03
  17  Prefactor     .10000E-03    15.297        .18142E-02** at limit **
  18  norm          1.6777        7.1547        .15689E-02    .31249E-03
  19  norm          22.109        26.155        .85179E-04   -.91159E-04
  20  norm          5.6959        5.1123        .12655E-03   -.38387E-03
  21  norm          .10000E-03    7.1421        .16692E-02** at limit **
  22  norm          .10000E-03    37.087        .18142E-02** at limit **
  23  Prefactor     .66987        10.308        .33324E-02    .36034E-03
  24  Prefactor     35.662        24.603        .67124E-04    .10806E-03
  25  norm          31.348        14.026        .71562E-04    .22012E-03
  26  Prefactor     .10000E-03    35.752        .18142E-02** at limit **
  27  Prefactor     32.777        27.310        .69982E-04   -.13184E-03
  28  Prefactor     .10000E-03    25.209        .18142E-02** at limit **
  29  Prefactor     .10000E-03    85.417        .18142E-02** at limit **
  30  Prefactor     3.8220        9.1839        .20641E-03    .27594E-04
  31  Normalizat    .93478        .28530        .27113E-03    .90151E-05
  32  Prefactor     .99056        .32697        .31305E-03   -.21360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.971204
  norm       = 23.2097
  Prefactor  = 6.05675
  Prefactor  = 0.000100001
  Prefactor  = 1.94476
  Prefactor  = 0.0001
  norm       = 17.9898
  Prefactor  = 6.17091
  Prefactor  = 2.24947
  Prefactor  = 0.0001
  Prefactor  = 4.40266
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 23.5393
  norm       = 8.48107
  Prefactor  = 0.0001
  norm       = 1.6777
  norm       = 22.109
  norm       = 5.69585
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.669875
  Prefactor  = 35.662
  norm       = 31.3477
  Prefactor  = 0.0001
  Prefactor  = 32.7773
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.82204
  Normalizat = 0.934776
  Prefactor  = 0.990556
 **********
 **   18 **HESSE 
 **********

 FCN=   4131.224     FROM HESSE     STATUS=OK           633 CALLS     5617 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97120        354.13        .30345E-03   -1.5511    
   2  norm          23.210        6.1193        .30327E-05   -1.4744    
   3  Prefactor     6.0567        9.3367        .65254E-05   -1.5216    
   4  Prefactor     .10000E-03    1.9060        .17146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9448        3.1167        .53073E-05   -1.5429    
   6  Prefactor     .10000E-03    2.5292        .19952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.990        7.5716        .37771E-05   -1.4859    
   8  Prefactor     6.1709        9.9640        .64646E-05   -1.5211    
   9  Prefactor     2.2495        50.615        .10943E-04   -1.5408    
  10  Prefactor     .10000E-03    67.838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4027        8.4228        .38392E-04   -1.5288    
  12  Prefactor     .10000E-03    3.0049        .21749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7069        .24097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.539        36.422        .33037E-05   -1.4737    
  16  norm          8.4811        6.2543        .52472E-05   -1.5125    
  17  Prefactor     .10000E-03    15.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6777        7.0284        .62756E-04   -1.5449    
  19  norm          22.109        26.150        .17036E-04   -1.4767    
  20  norm          5.6959        5.1083        .50619E-05   -1.5231    
  21  norm          .10000E-03    7.1425        .33384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    37.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .66987        9.7838        .13329E-03   -1.5544    
  24  Prefactor     35.662        24.266        .13425E-04   -1.4513    
  25  norm          31.348        14.024        .14312E-04   -1.4588    
  26  Prefactor     .10000E-03    35.752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     32.777        27.304        .13996E-04   -1.4562    
  28  Prefactor     .10000E-03    25.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    85.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.8220        9.1771        .82564E-05   -1.5317    
  31  Normalizat    .93478        .28430        .10845E-04   -.95249    
  32  Prefactor     .99056        .32716        .62610E-04   -.93045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38887e-09
Minuit parameter uncertainties:
  1  37.3134
  2  6.11942
  3  9.33899
  4  7.59298e-05
  5  3.11698
  6  4.96515e-06
  7  7.57197
  8  9.96667
  9  21.3608
  10  0.000109713
  11  8.42511
  12  4.31944e-06
  13  0.00017851
  14  0.000401454
  15  36.456
  16  6.25476
  17  1.16327e-05
  18  6.86896
  19  26.1637
  20  5.10869
  21  1.76427e-05
  22  0.000177424
  23  5.12076
  24  24.2724
  25  14.0254
  26  1.72174e-05
  27  27.3139
  28  0.000348777
  29  9.74725e-05
  30  9.18045
  31  0.284759
  32  0.327816
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.785e-04  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:  9.906e-01  3.278e-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:  9.348e-01  2.848e-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: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47845/likelihoodResults_527040001_527299201_4FGL_J1257.8+3228_daily_bin1110.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) = 4131.22558671
delta logL = -0.00128089553709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4131.22430582
delta logL = -8.05721356301e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2244       1.0000          .0000       5.0000    
     3 'Normalizat'    .93479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99058       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=   4131.224     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      245 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.512        .12061E-01** at limit **
   2  alpha         2.6931        2.6225        .50000        .22305E-07
   3  Normalizat    .93477        .15435E-01    .27113E-03   -.18821E-03
   4  Prefactor     .99056        .18370E-01    .31305E-03   -.17193E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.69308
  Normalizat = 0.93477
  Prefactor  = 0.990563
 **********
 **   18 **HESSE 
 **********

 FCN=   4131.224     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.243        .24454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6931        3.3038        .50000        .77309E-01
   3  Normalizat    .93477        .26576        .54226E-04   -.95249    
   4  Prefactor     .99056        .31617        .62610E-04   -.93045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17616e-11
Minuit parameter uncertainties:
  1  2.05842e-05
  2  452.359
  3  0.266138
  4  0.316761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47845': 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) = 4131.22430507
delta logL = 7.42127667763e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.058e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.693e+00  4.524e+02  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:  9.906e-01  3.168e-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:  9.348e-01  2.661e-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/47845/cmap_HighResolution_527040001_527299201_4FGL_J1257.8+3228_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2021-09-06 12:26:29.867554', job_id='47845', GAL2='0.99', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630956389.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1110' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:26:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 47845: <4FGL_J1257.8+3228_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1110> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:10:58 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:10:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:10:59 2021
Terminated at Mon Sep  6 12:26:30 2021
Results reported at Mon Sep  6 12:26:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1110 194.473 32.4721 527040001 527299201 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 :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

