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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin182
RA = 194.31, Dec = 36.7706
tmin = 286502401, tmax = 286761601
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='31959', job_status='RUN', time_executed='2021-09-06 11:28:10.862764', time_epoch_executed='1630952890.86' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31959/ft1_4FGL_J1257.2+3646_daily_bin182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31959/ft1_4FGL_J1257.2+3646_daily_bin182.fits outfile=/scratch/kocevski/31959/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin182.fits ra=194.31 dec=36.7706 rad=12.0 tmin=286502401.0 tmax=286761601.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 4.57
user 4.28
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.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/31959/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin182.fits evtable="EVENTS" outfile="/scratch/kocevski/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.fits" evtable="EVENTS" scfile=/scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits sctable="SC_DATA" outfile=/scratch/kocevski/31959/ltcube_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.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/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits
.....................!
real 12.26
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.fits evtable="EVENTS" scfile=/scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits sctable="SC_DATA" expcube=/scratch/kocevski/31959/ltcube_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.fits outfile=/scratch/kocevski/31959/expmap_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.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/31959/ltcube_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.fits
.....................!
real 190.80
user 185.56
sys 4.79

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1257.2+3646 @ 194.31 36.7706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.fits scfile=/scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits outfile=/scratch/kocevski/31959/cmap_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.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.31 yref=36.7706 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.fits scfile=/scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits outfile=/scratch/kocevski/31959/cmap_HighResolution_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.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.31 yref=36.7706 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.51
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.fits evtable="EVENTS" scfile=/scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31959/Model_4FGL_J1257.2+3646_daily_bin182.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/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.fits.....................!
real 49.65
user 48.18
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.fits', '/scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits', expMap='/scratch/kocevski/31959/expmap_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.fits', expCube='/scratch/kocevski/31959/ltcube_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31959/Model_4FGL_J1257.2+3646_daily_bin182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.2+3646'

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.472e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/31959/ft1_filtered_4FGL_J1257.2+3646_daily_bin182.fits
Spacecraft file(s): /scratch/kocevski/31959/ft2_4FGL_J1257.2+3646_daily_bin182.fits
Exposure map: /scratch/kocevski/31959/expmap_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.fits
Exposure cube: /scratch/kocevski/31959/ltcube_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31959/Model_4FGL_J1257.2+3646_daily_bin182.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) = 5941.83457743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0071       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.002       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2509       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8720       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.683       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7457       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.194       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62173       1.0000         .10000E-03   10000.    
    15 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9766       1.0000         .10000E-03   10000.    
    18 'norm      '    .15593E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.948       1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.295       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93629       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95845       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5941.832     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2870 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.374       -.47012E-05** at limit **
   2  norm          5.0073        2.9720        .17769E-05   -.20163E-03
   3  Prefactor     16.004        8.5961        .25959E-06   -.76146E-04
   4  Prefactor     3.2509        2.1760       -.92623E-06    .18728E-03
   5  Prefactor     1.8722        1.6596       -.23540E-07    .13068E-04
   6  Prefactor     17.683        10.779        .23580E-06   -.34060E-04
   7  Prefactor     16.066        32.183        .92177E-05   -.20793E-04
   8  Prefactor     .10000E-03    14.495        .12719E-04** at limit **
   9  Prefactor     .10000E-03    47.848       -.15555E-04** at limit **
  10  Prefactor     .10000E-03    3.1352       -.32923E-06** at limit **
  11  norm          1.7460        2.3711        .82249E-06   -.28681E-04
  12  Prefactor     20.193        50.220       -.62704E-06    .17918E-05
  13  Prefactor     14.532        21.573       -.13029E-04   -.30072E-03
  14  Prefactor     .66047        10.501        .53754E-05   -.89799E-03
  15  norm          .10000E-03    5.7872        .28863E-06** at limit **
  16  norm          .10000E-03    15.501       -.97016E-05** at limit **
  17  norm          3.9911        3.4477        .98872E-06   -.44394E-04
  18  norm          .10000E-03    5.2888       -.55319E-06** at limit **
  19  Prefactor     .10000E-03    1.8206       -.44938E-08** at limit **
  20  Prefactor     .10000E-03    3.1830       -.14667E-08** at limit **
  21  Prefactor     .10000E-03    40.660        .20039E-04** at limit **
  22  Prefactor     12.948        10.707        .17749E-06   -.40635E-04
  23  Prefactor     36.310        71.202        .23574E-04   -.47804E-04
  24  Normalizat    .93608        .16656       -.28949E-05   -.53225E-03
  25  Prefactor     .95860        .19631        .94348E-06   -.48519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.00734
  Prefactor  = 16.0041
  Prefactor  = 3.25094
  Prefactor  = 1.87219
  Prefactor  = 17.6834
  Prefactor  = 16.0656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74601
  Prefactor  = 20.1926
  Prefactor  = 14.5323
  Prefactor  = 0.660471
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.99114
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9483
  Prefactor  = 36.31
  Normalizat = 0.936079
  Prefactor  = 0.958602
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.832     FROM HESSE     STATUS=OK           429 CALLS     3299 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0073        2.9816        .93451E-04   -1.5260    
   3  Prefactor     16.004        8.6203        .10012E-03   -1.4908    
   4  Prefactor     3.2509        2.1856        .85119E-04   -1.5347    
   5  Prefactor     1.8722        1.6609        .89979E-04   -1.5434    
   6  Prefactor     17.683        10.767        .95245E-04   -1.4867    
   7  Prefactor     16.066        32.264        .99941E-04   -1.4906    
   8  Prefactor     .10000E-03    14.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    48.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1578        .13304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7460        2.3509        .13265E-03   -1.5444    
  12  Prefactor     20.193        50.335        .89131E-04   -1.4809    
  13  Prefactor     14.532        21.658        .10502E-03   -1.4945    
  14  Prefactor     .66047        97.036        .44734E-02   -1.5545    
  15  norm          .10000E-03    5.9212        .36016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9911        2.9762        .10717E-03   -1.5308    
  18  norm          .10000E-03    9.1025        .29547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8686        .20266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1867        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.948        10.710        .11132E-03   -1.4988    
  23  Prefactor     36.310        71.693        .66523E-04   -1.4502    
  24  Normalizat    .93608        .19804        .22212E-03   -.95204    
  25  Prefactor     .95860        .23056        .27754E-03   -.94122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76109e-08
Minuit parameter uncertainties:
  1  1.16742e-05
  2  2.98165
  3  8.62097
  4  2.18568
  5  1.66095
  6  10.7677
  7  32.299
  8  1.22976e-05
  9  0.000201094
  10  5.89946e-06
  11  2.351
  12  50.4408
  13  21.6692
  14  16.0365
  15  2.72894e-05
  16  6.66797e-05
  17  2.97634
  18  0.000111075
  19  1.23841e-05
  20  5.08032e-06
  21  5.1565e-05
  22  10.7118
  23  71.8641
  24  0.198195
  25  0.230795
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.899e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.586e-01  2.308e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.361e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31959/likelihoodResults_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.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) = 5941.83340898
delta logL = -0.00150798834329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5941.83190094
delta logL = 5.44132490177e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0391       1.0000          .0000       10.000    
     3 'Normalizat'    .93609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5941.832     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.974        .90712E-02** at limit **
   2  Index         2.0510        8.3072        .50000       -.31493E-04
   3  Normalizat    .93608        .12876E-01    .45361E-01   -.67723E-04
   4  Prefactor     .95860        .16344E-01    .45748E-01   -.33163E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05098
  Normalizat = 0.936078
  Prefactor  = 0.958605
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.832     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      229 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    416.48        .13371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0510        7.5112        .50000       -.63082    
   3  Normalizat    .93608        .53974E-01    .22212E-03   -.95204    
   4  Prefactor     .95860        .68491E-01    .27754E-03   -.94122    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.75289e-07
Minuit parameter uncertainties:
  1  0.000360162
  2  46.466
  3  0.053977
  4  0.068497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31959': 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): 102
logL (Free Index) = 5941.83190081
delta logL = 1.78823938768e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.602e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.051e+00  4.647e+01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.586e-01  6.850e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.361e-01  5.398e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

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/31959/cmap_HighResolution_286502401_286761601_4FGL_J1257.2+3646_daily_bin182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-06 11:40:09.792116', job_id='31959', GAL2='0.96', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630953609.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='182' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:40:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 31959: <4FGL_J1257.2+3646_daily_bin182> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin182> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:49 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:25:52 2021
Terminated at Mon Sep  6 11:40:10 2021
Results reported at Mon Sep  6 11:40:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin182 194.31 36.7706 286502401 286761601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

