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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin168
RA = 194.31, Dec = 36.7706
tmin = 282873601, tmax = 283132801
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='31931', job_status='RUN', time_executed='2021-09-06 11:29:00.065223', time_epoch_executed='1630952940.07' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31931/ft1_4FGL_J1257.2+3646_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31931/ft2_4FGL_J1257.2+3646_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31931/ft1_4FGL_J1257.2+3646_daily_bin168.fits outfile=/scratch/kocevski/31931/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin168.fits ra=194.31 dec=36.7706 rad=12.0 tmin=282873601.0 tmax=283132801.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.25
user 3.05
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31931/ft2_4FGL_J1257.2+3646_daily_bin168.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/31931/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/31931/ft1_filtered_4FGL_J1257.2+3646_daily_bin168.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.51
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31931/ft1_filtered_4FGL_J1257.2+3646_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/31931/ft2_4FGL_J1257.2+3646_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/31931/ltcube_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.fits outfile=/scratch/kocevski/31931/expmap_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.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/31931/ltcube_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.fits
.....................!
real 191.59
user 186.52
sys 4.70

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/31931/ft1_filtered_4FGL_J1257.2+3646_daily_bin168.fits scfile=/scratch/kocevski/31931/ft2_4FGL_J1257.2+3646_daily_bin168.fits outfile=/scratch/kocevski/31931/cmap_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31931/ft1_filtered_4FGL_J1257.2+3646_daily_bin168.fits scfile=/scratch/kocevski/31931/ft2_4FGL_J1257.2+3646_daily_bin168.fits outfile=/scratch/kocevski/31931/cmap_HighResolution_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.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 0.61
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31931/ft1_filtered_4FGL_J1257.2+3646_daily_bin168.fits', '/scratch/kocevski/31931/ft2_4FGL_J1257.2+3646_daily_bin168.fits', expMap='/scratch/kocevski/31931/expmap_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.fits', expCube='/scratch/kocevski/31931/ltcube_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31931/Model_4FGL_J1257.2+3646_daily_bin168.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/31931/ft1_filtered_4FGL_J1257.2+3646_daily_bin168.fits
Spacecraft file(s): /scratch/kocevski/31931/ft2_4FGL_J1257.2+3646_daily_bin168.fits
Exposure map: /scratch/kocevski/31931/expmap_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.fits
Exposure cube: /scratch/kocevski/31931/ltcube_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31931/Model_4FGL_J1257.2+3646_daily_bin168.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5821.33436894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34767       1.0000         .10000E-03   10000.    
     2 'norm      '    7.7696       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6431       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.316       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    102.54       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0001       1.0000         .10000E-03   10000.    
    16 'norm      '    10.870       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4081       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5148       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .30513E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .42745E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2073       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87088       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5821.117     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     2615 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74464E-01    6233.5       -.77035E-04   -.86001E-03
   2  norm          7.7699        3.3533        .94379E-07    .30410E-04
   3  Prefactor     .10000E-03    16.588        .35935E-05** at limit **
   4  Prefactor     1.6433        1.7171        .13172E-06    .78465E-04
   5  Prefactor     .10000E-03    2.0369        .14818E-06** at limit **
   6  Prefactor     17.301        2.4327       -.98328E-07    .85667E-02
   7  Prefactor     .10000E-03    12.786       -.47300E-05** at limit **
   8  Prefactor     29.620        20.680        .77658E-06   -.41099E-02
   9  Prefactor     .10000E-03    18.931        .94728E-07** at limit **
  10  Prefactor     .10000E-03    2.8731        .62042E-06** at limit **
  11  norm          .10000E-03    1.4335        .15105E-06** at limit **
  12  Prefactor     102.51        6.8591       -.45723E-06    .22437E-02
  13  Prefactor     .10000E-03    11.550        .26920E-05** at limit **
  14  Prefactor     .10000E-03    5.7705        .24287E-06** at limit **
  15  norm          2.0039        3.1195        .27048E-06    .59552E-04
  16  norm          10.859        2.7773        .29605E-07   -.30553E-02
  17  norm          3.4032        2.7690        .36832E-07   -.35852E-03
  18  norm          6.5176        1.7435        .13293E-06    .12158E-02
  19  Prefactor     .10000E-03    10.212       -.73121E-06** at limit **
  20  Prefactor     .10000E-03    28.733        .22376E-05** at limit **
  21  Prefactor     .83764E-02    403.34       -.27560E-04    .22673E-02
  22  Prefactor     1.2068        1.3851       -.54693E-06    .47173E-03
  23  Prefactor     .10000E-03    58.158       -.45346E-05** at limit **
  24  Normalizat    .87101        .19354        .42510E-05    .24599E-03
  25  Prefactor     1.1352        .24199       -.98281E-06    .17852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0744643
  norm       = 7.76989
  Prefactor  = 0.000100002
  Prefactor  = 1.64334
  Prefactor  = 0.0001
  Prefactor  = 17.301
  Prefactor  = 0.0001
  Prefactor  = 29.6199
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 102.506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00388
  norm       = 10.8586
  norm       = 3.40316
  norm       = 6.51761
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.00837642
  Prefactor  = 1.20683
  Prefactor  = 0.000100003
  Normalizat = 0.871011
  Prefactor  = 1.13523
 **********
 **   18 **HESSE 
 **********

 FCN=   5821.117     FROM HESSE     STATUS=OK           505 CALLS     3120 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74464E-01    29.673        .13254       -1.5653    
   2  norm          7.7699        3.3750        .35965E-02   -1.5150    
   3  Prefactor     .10000E-03    16.086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6433        1.7149        .82391E-02   -1.5452    
   5  Prefactor     .10000E-03    1.2010        .32422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.301        11.002        .24062E-02   -1.4876    
   7  Prefactor     .10000E-03    12.822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.620        21.574        .18412E-02   -1.4619    
   9  Prefactor     .10000E-03    19.089        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     102.51        63.618        .99263E-03   -1.3680    
  13  Prefactor     .10000E-03    11.536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0039        3.1580        .73213E-02   -1.5425    
  16  norm          10.859        15.391        .30380E-02   -1.5049    
  17  norm          3.4032        4.5203        .54784E-02   -1.5339    
  18  norm          6.5176        6.8305        .39308E-02   -1.5197    
  19  Prefactor     .10000E-03    1.7446        .57721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .83764E-02    73.979        .15368       -1.5690    
  22  Prefactor     1.2068        40.391        .10305E-01   -1.5488    
  23  Prefactor     .10000E-03    58.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87101        .16680        .44528E-01   -.97486    
  25  Prefactor     1.1352        .20438        .60832E-01   -.88349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26138e-07
Minuit parameter uncertainties:
  1  2.97242
  2  3.37511
  3  0.000338053
  4  1.71495
  5  6.90898e-07
  6  11.0035
  7  0.000141889
  8  21.5796
  9  0.0004848
  10  6.62212e-06
  11  7.10235e-07
  12  63.66
  13  8.16441e-05
  14  3.42495e-06
  15  3.15822
  16  15.3965
  17  4.52071
  18  6.83129
  19  8.82109e-06
  20  0.000568389
  21  1.56691
  22  13.9733
  23  0.000814172
  24  0.166902
  25  0.204522
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.622e-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:  1.135e+00  2.045e-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:  8.710e-01  1.669e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31931/likelihoodResults_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.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) = 5821.11885684
delta logL = -0.00165154628758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5821.11720534
delta logL = -4.82286850456e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0126       1.0000          .0000       10.000    
     3 'Normalizat'    .87102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1352       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5821.117     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      235 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    41.168        .12701E-02** at limit **
   2  Index         1.9685        5.5120        .50000        .33582E-04
   3  Normalizat    .87101        .15272E-01    .24046E-03    .50920E-04
   4  Prefactor     1.1352        .19328E-01    .26903E-03    .51934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100729
  Index      = 1.96849
  Normalizat = 0.87101
  Prefactor  = 1.13523
 **********
 **   18 **HESSE 
 **********

 FCN=   5821.117     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10073E-03    178.07        .25403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9685        5.2418        .50000       -.65140    
   3  Normalizat    .87101        .33731E-01    .96184E-05   -.97486    
   4  Prefactor     1.1352        .42664E-01    .10761E-04   -.88348    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.29249e-08
Minuit parameter uncertainties:
  1  0.0228561
  2  481.479
  3  0.0337314
  4  0.0426649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31931': 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) = 5821.11720486
delta logL = 4.33071363659e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.007e-04  2.286e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.968e+00  4.815e+02  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:  1.135e+00  4.266e-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:  8.710e-01  3.373e-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/31931/cmap_HighResolution_282873601_283132801_4FGL_J1257.2+3646_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-09-06 11:40:21.730527', job_id='31931', GAL2='1.14', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630953621.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='168' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:40:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 31931: <4FGL_J1257.2+3646_daily_bin168> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:47 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:49 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:49 2021
Terminated at Mon Sep  6 11:40:22 2021
Results reported at Mon Sep  6 11:40:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin168 194.31 36.7706 282873601 283132801 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 :                                   679.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

