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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1006
RA = 194.473, Dec = 32.4721
tmin = 500083201, tmax = 500342401
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='47675', job_status='RUN', time_executed='2021-09-06 12:13:17.345144', time_epoch_executed='1630955597.35' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47675/ft1_4FGL_J1257.8+3228_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47675/ft2_4FGL_J1257.8+3228_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47675/ft1_4FGL_J1257.8+3228_daily_bin1006.fits outfile=/scratch/kocevski/47675/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1006.fits ra=194.473 dec=32.4721 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.70
user 5.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47675/ft1_filtered_4FGL_J1257.8+3228_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/47675/ft2_4FGL_J1257.8+3228_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/47675/ltcube_500083201_500342401_4FGL_J1257.8+3228_daily_bin1006.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/47675/ft2_4FGL_J1257.8+3228_daily_bin1006.fits
.....................!
real 11.96
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47675/ft1_filtered_4FGL_J1257.8+3228_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/47675/ft2_4FGL_J1257.8+3228_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/47675/ltcube_500083201_500342401_4FGL_J1257.8+3228_daily_bin1006.fits outfile=/scratch/kocevski/47675/expmap_500083201_500342401_4FGL_J1257.8+3228_daily_bin1006.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/47675/ltcube_500083201_500342401_4FGL_J1257.8+3228_daily_bin1006.fits
.....................!
real 190.08
user 185.13
sys 4.59

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/47675/ft1_filtered_4FGL_J1257.8+3228_daily_bin1006.fits scfile=/scratch/kocevski/47675/ft2_4FGL_J1257.8+3228_daily_bin1006.fits outfile=/scratch/kocevski/47675/cmap_500083201_500342401_4FGL_J1257.8+3228_daily_bin1006.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 1.04
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47675/ft1_filtered_4FGL_J1257.8+3228_daily_bin1006.fits scfile=/scratch/kocevski/47675/ft2_4FGL_J1257.8+3228_daily_bin1006.fits outfile=/scratch/kocevski/47675/cmap_HighResolution_500083201_500342401_4FGL_J1257.8+3228_daily_bin1006.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 1.47
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.348       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7989       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7626       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.424       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4861       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.315       1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.335       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.257       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0994       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.432       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.799       1.0000         .10000E-03   10000.    
    29 'Prefactor '    159.70       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.2346       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0211       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94759       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=   4559.671     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     4419 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.345        25.600       -.75246E-06   -.46031E-05
   2  norm          8.7989        3.6016        .59336E-07    .16667E-04
   3  Prefactor     .10000E-03    4.2117       -.38362E-07** at limit **
   4  Prefactor     1.2903        1.3484        .10714E-07    .45676E-04
   5  Prefactor     1.7626        1.7665        .46628E-07    .67614E-04
   6  Prefactor     .10000E-03    5.2400       -.78767E-06** at limit **
   7  norm          3.9990        3.7110        .74593E-07    .17067E-03
   8  Prefactor     .10000E-03    3.5017        .58847E-06** at limit **
   9  Prefactor     .10000E-03    89.726       -.13011E-04** at limit **
  10  Prefactor     29.412        80.046       -.16676E-04   -.10235E-04
  11  Prefactor     1.4838        2.6833        .11891E-05   -.20612E-02
  12  Prefactor     12.315        10.888       -.14524E-05    .11489E-03
  13  norm          .10000E-03    3.5220       -.13363E-05** at limit **
  14  Prefactor     .10000E-03    22.790       -.73002E-05** at limit **
  15  Prefactor     14.361        33.151        .24737E-04    .11981E-03
  16  norm          .10002E-03    2.8209        .76867E-06** at limit **
  17  Prefactor     .10000E-03    26.443        .49201E-05** at limit **
  18  norm          .10000E-03    4.7665       -.14430E-05** at limit **
  19  norm          .10000E-03    6.0949        .13626E-06** at limit **
  20  norm          .10000E-03    1.3599       -.12156E-06** at limit **
  21  norm          .10000E-03    2.1452       -.53585E-07** at limit **
  22  norm          11.257        16.211       -.46339E-07   -.40913E-04
  23  Prefactor     3.1002        4.1047       -.26597E-05   -.34735E-03
  24  Prefactor     .10000E-03    4.6347        .13244E-05** at limit **
  25  norm          13.432        10.025        .80974E-07   -.79148E-04
  26  Prefactor     .10000E-03    86.682        .15070E-04** at limit **
  27  Prefactor     .10000E-03    9.5803        .36053E-06** at limit **
  28  Prefactor     31.807        25.172        .20488E-05   -.16099E-05
  29  Prefactor     159.71        125.28        .33796E-05   -.54796E-05
  30  Prefactor     1.2341        2.8794        .66704E-08   -.59474E-04
  31  Normalizat    1.0207        .21526       -.33225E-05    .85437E-04
  32  Prefactor     .94806        .24030        .22831E-05   -.12708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3454
  norm       = 8.7989
  Prefactor  = 0.0001
  Prefactor  = 1.2903
  Prefactor  = 1.76259
  Prefactor  = 0.000100004
  norm       = 3.99898
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 29.4125
  Prefactor  = 1.48376
  Prefactor  = 12.3148
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.361
  norm       = 0.000100024
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.257
  Prefactor  = 3.10023
  Prefactor  = 0.0001
  norm       = 13.4323
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 31.8067
  Prefactor  = 159.708
  Prefactor  = 1.23412
  Normalizat = 1.02073
  Prefactor  = 0.948064
 **********
 **   18 **HESSE 
 **********

 FCN=   4559.671     FROM HESSE     STATUS=OK           661 CALLS     5080 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.345        25.601        .10574E-03   -1.4950    
   2  norm          8.7989        3.5982        .78675E-04   -1.5115    
   3  Prefactor     .10000E-03    4.2274        .13532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2903        1.3640        .77612E-04   -1.5481    
   5  Prefactor     1.7626        1.7684        .86536E-04   -1.5442    
   6  Prefactor     .10000E-03    11.988        .29552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9990        3.6633        .12004E-03   -1.5308    
   8  Prefactor     .10000E-03    3.5045        .12341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    91.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.412        80.045        .73860E-04   -1.4623    
  11  Prefactor     1.4838        8.9728        .17592E-02   -1.5464    
  12  Prefactor     12.315        10.828        .11415E-03   -1.5006    
  13  norm          .10000E-03    3.6147        .12418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.361        33.338        .10579E-03   -1.4950    
  16  norm          .10002E-03    15.485        .21671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.7984        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.0980        .16282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3665        .76879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1489        .96586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.257        16.182        .11941E-03   -1.5037    
  23  Prefactor     3.1002        4.1153        .14680E-03   -1.5356    
  24  Prefactor     .10000E-03    4.6364        .14196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.432        10.014        .10929E-03   -1.4975    
  26  Prefactor     .10000E-03    86.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.6040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.807        25.185        .71056E-04   -1.4579    
  29  Prefactor     159.71        126.27        .31908E-04   -1.3174    
  30  Prefactor     1.2341        2.8149        .17018E-03   -1.5486    
  31  Normalizat    1.0207        .25887        .24065E-03   -.92339    
  32  Prefactor     .94806        .29122        .29420E-03   -.94481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71813e-08
Minuit parameter uncertainties:
  1  25.6205
  2  3.5983
  3  3.25327e-06
  4  1.36404
  5  1.76845
  6  0.000419709
  7  3.66351
  8  4.95309e-06
  9  0.000671719
  10  80.3395
  11  7.29892
  12  10.8298
  13  0.000147025
  14  6.61446e-05
  15  33.381
  16  0.0012225
  17  4.62153e-05
  18  4.51261e-05
  19  2.07991e-06
  20  1.87169e-05
  21  9.38083e-06
  22  16.1884
  23  4.11571
  24  1.03569e-05
  25  10.0155
  26  0.000491751
  27  1.14265e-05
  28  25.1935
  29  126.482
  30  2.81517
  31  0.259185
  32  0.291701
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.470e-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.481e-01  2.917e-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.021e+00  2.592e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47675/likelihoodResults_500083201_500342401_4FGL_J1257.8+3228_daily_bin1006.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): 102
logL (Free Index) = 4559.6723923
delta logL = -0.00131697897723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4559.57521206
delta logL = 0.095863256206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69900E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .98258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97761       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=   4559.575     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      345 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69901E-01    .19138        .35984E-03    .11674E-01
   2  alpha         5.0000        4.8851        .50000    ** at limit **
   3  Normalizat    .98259        .25488        .24475E-03   -.42595E-04
   4  Prefactor     .97755        .29111        .29004E-03   -.21362E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0699009
  alpha      = 5
  Normalizat = 0.982586
  Prefactor  = 0.977554
 **********
 **   18 **HESSE 
 **********

 FCN=   4559.575     FROM HESSE     STATUS=OK            31 CALLS      376 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69901E-01    .18123        .71967E-04   -1.5655    
   2  alpha         5.0000        4.8033        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .98259        .25581        .97899E-05   -.93616    
   4  Prefactor     .97755        .29182        .11602E-04   -.93481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83544e-12
Minuit parameter uncertainties:
  1  0.181227
  2  5.4747e-06
  3  0.256125
  4  0.292289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47675': 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) = 4559.57521177
delta logL = 0.0958635504612

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.990e-02  1.812e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  5.475e-06  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.776e-01  2.923e-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.826e-01  2.561e-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/47675/cmap_HighResolution_500083201_500342401_4FGL_J1257.8+3228_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-06 12:26:00.023521', job_id='47675', GAL2='0.98', fit_tolerance='1e-08', EG2='0.98', EG='1.02', time_epoch_completed='1630956360.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.59e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1006' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:26:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 47675: <4FGL_J1257.8+3228_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1006 194.473 32.4721 500083201 500342401 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

