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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin685
RA = 194.31, Dec = 36.7706
tmin = 416880001, tmax = 417139201
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='36199', job_status='RUN', time_executed='2021-09-06 11:43:57.715216', time_epoch_executed='1630953837.72' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36199/ft1_4FGL_J1257.2+3646_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36199/ft2_4FGL_J1257.2+3646_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36199/ft1_4FGL_J1257.2+3646_daily_bin685.fits outfile=/scratch/kocevski/36199/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin685.fits ra=194.31 dec=36.7706 rad=12.0 tmin=416880001.0 tmax=417139201.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.31
user 5.04
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36199/ft2_4FGL_J1257.2+3646_daily_bin685.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/36199/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin685.fits evtable="EVENTS" outfile="/scratch/kocevski/36199/ft1_filtered_4FGL_J1257.2+3646_daily_bin685.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.65
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36199/ft1_filtered_4FGL_J1257.2+3646_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/36199/ft2_4FGL_J1257.2+3646_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/36199/ltcube_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.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/36199/ft2_4FGL_J1257.2+3646_daily_bin685.fits
.....................!
real 13.49
user 12.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36199/ft1_filtered_4FGL_J1257.2+3646_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/36199/ft2_4FGL_J1257.2+3646_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/36199/ltcube_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.fits outfile=/scratch/kocevski/36199/expmap_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.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/36199/ltcube_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.fits
.....................!
real 191.52
user 185.35
sys 4.64

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/36199/ft1_filtered_4FGL_J1257.2+3646_daily_bin685.fits scfile=/scratch/kocevski/36199/ft2_4FGL_J1257.2+3646_daily_bin685.fits outfile=/scratch/kocevski/36199/cmap_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.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.69
user 0.39
sys 0.17

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/36199/ft1_filtered_4FGL_J1257.2+3646_daily_bin685.fits', '/scratch/kocevski/36199/ft2_4FGL_J1257.2+3646_daily_bin685.fits', expMap='/scratch/kocevski/36199/expmap_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.fits', expCube='/scratch/kocevski/36199/ltcube_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/36199/Model_4FGL_J1257.2+3646_daily_bin685.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/36199/ft1_filtered_4FGL_J1257.2+3646_daily_bin685.fits
Spacecraft file(s): /scratch/kocevski/36199/ft2_4FGL_J1257.2+3646_daily_bin685.fits
Exposure map: /scratch/kocevski/36199/expmap_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.fits
Exposure cube: /scratch/kocevski/36199/ltcube_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/36199/Model_4FGL_J1257.2+3646_daily_bin685.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) = 4606.46308972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    103.41       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6333       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31977       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.152       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4679       1.0000         .10000E-03   10000.    
    11 'norm      '    26.558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94692E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.471       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2211       1.0000         .10000E-03   10000.    
    18 'norm      '    14.174       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4810       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.320       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12941E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.240       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81623       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=   4606.454     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2951 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     103.41        62.429       -.16256E-05    .12298E-03
   2  norm          4.6345        4.1649        .15368E-05    .15216E-02
   3  Prefactor     .10000E-03    4.2608        .92294E-07** at limit **
   4  Prefactor     .31960        3.0225       -.35915E-05    .17227E-02
   5  Prefactor     2.3635        3.4659       -.22046E-06    .55041E-03
   6  Prefactor     .10000E-03    16.977       -.41794E-06** at limit **
   7  Prefactor     83.166        50.249       -.23492E-05   -.15805E-04
   8  Prefactor     18.037        18.143        .21081E-05    .20978E-04
   9  Prefactor     46.469        90.929       -.77872E-05    .19446E-04
  10  Prefactor     2.4671        6.3945       -.14079E-05   -.39639E-03
  11  norm          26.558        9.7677        .10259E-05    .10858E-03
  12  Prefactor     .10000E-03    562.20        .34350E-04** at limit **
  13  Prefactor     .10000E-03    11.795        .20656E-06** at limit **
  14  Prefactor     .10000E-03    24.549       -.44936E-06** at limit **
  15  norm          .10000E-03    2.4445       -.25431E-06** at limit **
  16  norm          19.480        16.168       -.41206E-05   -.46167E-04
  17  norm          6.2148        10.697       -.91048E-05   -.13801E-03
  18  norm          14.186        18.442        .10908E-04   -.22707E-03
  19  Prefactor     2.4802        4.1327        .41810E-05    .88283E-04
  20  Prefactor     .10000E-03    8.7804        .42017E-06** at limit **
  21  Prefactor     21.202        73.826       -.93454E-04   -.70721E-05
  22  Prefactor     .10000E-03    19.815        .88147E-06** at limit **
  23  Prefactor     35.245        47.854        .93505E-06    .66779E-05
  24  Normalizat    1.0200        .20522        .36344E-05    .13105E-03
  25  Prefactor     .81639        .23918        .32901E-05    .15944E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 103.407
  norm       = 4.63447
  Prefactor  = 0.0001
  Prefactor  = 0.319602
  Prefactor  = 2.36352
  Prefactor  = 0.0001
  Prefactor  = 83.1656
  Prefactor  = 18.037
  Prefactor  = 46.4687
  Prefactor  = 2.46712
  norm       = 26.5576
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.4804
  norm       = 6.21484
  norm       = 14.1858
  Prefactor  = 2.48019
  Prefactor  = 0.0001
  Prefactor  = 21.2018
  Prefactor  = 0.000100001
  Prefactor  = 35.2447
  Normalizat = 1.02004
  Prefactor  = 0.816394
 **********
 **   18 **HESSE 
 **********

 FCN=   4606.454     FROM HESSE     STATUS=OK           429 CALLS     3380 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     103.41        62.431        .39541E-04   -1.3671    
   2  norm          4.6345        4.7156        .10785E-03   -1.5277    
   3  Prefactor     .10000E-03    4.2675        .13680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31960        13.001        .18766E-02   -1.5595    
   5  Prefactor     2.3635        3.4086        .14150E-03   -1.5400    
   6  Prefactor     .10000E-03    17.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     83.166        50.368        .44050E-04   -1.3882    
   8  Prefactor     18.037        18.139        .94314E-04   -1.4858    
   9  Prefactor     46.469        90.916        .58814E-04   -1.4344    
  10  Prefactor     2.4671        6.3661        .26030E-03   -1.5394    
  11  norm          26.558        9.7667        .77735E-04   -1.4677    
  12  Prefactor     .10000E-03    571.32        .18175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4536        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.480        16.171        .45384E-03   -1.4825    
  17  norm          6.2148        10.998        .15551E-03   -1.5209    
  18  norm          14.186        19.008        .10639E-03   -1.4955    
  19  Prefactor     2.4802        4.0891        .15727E-03   -1.5393    
  20  Prefactor     .10000E-03    8.7895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.202        73.812        .86745E-04   -1.4787    
  22  Prefactor     .10000E-03    133.98        .57337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.245        47.863        .67507E-04   -1.4520    
  24  Normalizat    1.0200        .23966        .24269E-03   -.92362    
  25  Prefactor     .81639        .27895        .31986E-03   -.99127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23356e-08
Minuit parameter uncertainties:
  1  62.471
  2  4.71602
  3  8.08004e-06
  4  4.07708
  5  3.40884
  6  4.06418e-05
  7  50.3936
  8  18.145
  9  91.1888
  10  6.36783
  11  9.76729
  12  0.00299238
  13  2.15719e-05
  14  4.57244e-05
  15  2.52878e-06
  16  16.1746
  17  11.0017
  18  19.0163
  19  4.08953
  20  7.60343e-05
  21  74.1328
  22  0.00062639
  23  47.9148
  24  0.239915
  25  0.279438
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.467e+00  6.368e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.164e-01  2.794e-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:  1.020e+00  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36199/likelihoodResults_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.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) = 4605.82828274
delta logL = 0.625667701912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4605.82382062
delta logL = 0.63012981521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61185       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4955       1.0000          .0000       10.000    
     3 'Normalizat'    .96017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85512       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=   4605.824     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      304 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61189        10.968        .11046E-01    .12701E-02
   2  Index         3.4956        2.7608        .91637E-01    .12013E-03
   3  Normalizat    .96020        .48135E-01    .45666E-01    .84189E-05
   4  Prefactor     .85514        .56660E-01    .70726E-01    .13817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.61189
  Index      = 3.4956
  Normalizat = 0.960205
  Prefactor  = 0.855143
 **********
 **   18 **HESSE 
 **********

 FCN=   4605.824     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      339 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61189        27.264        .50552E-03   -1.5552    
   2  Index         3.4956        6.7463        .47086E-02   -.30561    
   3  Normalizat    .96020        .21317        .24901E-03   -.94376    
   4  Prefactor     .85514        .23847        .31293E-03   -.97727    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.55743e-07
Minuit parameter uncertainties:
  1  8.1722
  2  5.86859
  3  0.213356
  4  0.238759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36199': 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) = 4605.82382044
delta logL = 0.630129994945

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.119e-01  8.172e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.496e+00  5.869e+00  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:  8.551e-01  2.388e-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.602e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 194.310 36.771
Photon Index (Free Index): 3.50 +/- 5.87
Photon Flux (Free Index): 7.21e-08 +/- 1.33e-07
Energy Flux (Free Index): 1.20e-05 +/- 1.13e-05

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/36199/cmap_HighResolution_416880001_417139201_4FGL_J1257.2+3646_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='6.30e-01', photon_flux2='7.21e-08', job_status='DONE', time_completed='2021-09-06 11:54:34.309665', photon_index_error2='5.87', photon_index2='3.50', ts='0.19', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='8.35e-08', energy_flux_error2='1.13e-05', EG='1.02', time_epoch_completed='1630954474.31', return_code='0', job_id='36199', GAL2='0.86', EG2='0.96', return_code2='102', photon_flux_error2='1.33e-07', ts2='1.50', photon_index='2.03' WHERE bin_id='685' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:54:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 36199: <4FGL_J1257.2+3646_daily_bin685> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin685> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:42 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:40:43 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:40:43 2021
Terminated at Mon Sep  6 11:54:37 2021
Results reported at Mon Sep  6 11:54:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin685 194.31 36.7706 416880001 417139201 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 :                                   620.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

