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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin808
RA = 194.31, Dec = 36.7706
tmin = 448761601, tmax = 449020801
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='36386', job_status='RUN', time_executed='2021-09-06 11:45:08.545469', time_epoch_executed='1630953908.55' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36386/ft1_4FGL_J1257.2+3646_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36386/ft2_4FGL_J1257.2+3646_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36386/ft1_4FGL_J1257.2+3646_daily_bin808.fits outfile=/scratch/kocevski/36386/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin808.fits ra=194.31 dec=36.7706 rad=12.0 tmin=448761601.0 tmax=449020801.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.76
user 5.48
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36386/ft2_4FGL_J1257.2+3646_daily_bin808.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/36386/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/36386/ft1_filtered_4FGL_J1257.2+3646_daily_bin808.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.53
user 0.32
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36386/ft1_filtered_4FGL_J1257.2+3646_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/36386/ft2_4FGL_J1257.2+3646_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/36386/ltcube_448761601_449020801_4FGL_J1257.2+3646_daily_bin808.fits outfile=/scratch/kocevski/36386/expmap_448761601_449020801_4FGL_J1257.2+3646_daily_bin808.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/36386/ltcube_448761601_449020801_4FGL_J1257.2+3646_daily_bin808.fits
.....................!
real 190.22
user 184.94
sys 4.78

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/36386/ft1_filtered_4FGL_J1257.2+3646_daily_bin808.fits scfile=/scratch/kocevski/36386/ft2_4FGL_J1257.2+3646_daily_bin808.fits outfile=/scratch/kocevski/36386/cmap_448761601_449020801_4FGL_J1257.2+3646_daily_bin808.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 2.27
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36386/ft1_filtered_4FGL_J1257.2+3646_daily_bin808.fits scfile=/scratch/kocevski/36386/ft2_4FGL_J1257.2+3646_daily_bin808.fits outfile=/scratch/kocevski/36386/cmap_HighResolution_448761601_449020801_4FGL_J1257.2+3646_daily_bin808.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.80
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.112       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2935       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0749       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1871       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.962       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.542       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.060       1.0000         .10000E-03   10000.    
    16 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4630       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5809       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5151       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7463       1.0000         .10000E-03   10000.    
    21 'Prefactor '    104.02       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3479       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .42266       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=   3562.663     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2837 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.124        44.567       -.14468E-05   -.10369E-05
   2  norm          6.2939        4.7956       -.10414E-06   -.13018E-05
   3  Prefactor     6.0762        8.9602        .95753E-06   -.55691E-06
   4  Prefactor     4.1870        3.6599        .20342E-07   -.67209E-05
   5  Prefactor     1.5304        2.0436       -.21737E-07    .14084E-04
   6  Prefactor     2.8459        9.7915        .38759E-05   -.51693E-05
   7  Prefactor     .10000E-03    13.032        .48282E-06** at limit **
   8  Prefactor     .10000E-03    10.611       -.90491E-06** at limit **
   9  Prefactor     13.965        133.46       -.71896E-06    .14375E-05
  10  Prefactor     .10000E-03    2.5646       -.61170E-08** at limit **
  11  norm          7.0401        6.0259        .14368E-06    .53589E-04
  12  Prefactor     22.524        65.104        .38731E-05   -.29708E-05
  13  Prefactor     .10000E-03    21.410       -.23293E-05** at limit **
  14  Prefactor     .10000E-03    13.248        .46279E-06** at limit **
  15  norm          12.059        8.9992        .52494E-07    .13288E-04
  16  norm          .10000E-03    12.539        .19176E-06** at limit **
  17  norm          3.4614        6.8366       -.42354E-06    .15549E-05
  18  norm          1.5873        31.379        .10929E-05    .13835E-06
  19  Prefactor     6.5154        6.4112        .47376E-06    .26549E-04
  20  Prefactor     2.7452        21.211        .95420E-06    .96758E-05
  21  Prefactor     104.06        99.890       -.45887E-05   -.21753E-05
  22  Prefactor     .10000E-03    8.6684        .16823E-06** at limit **
  23  Prefactor     .10000E-03    27.611        .18528E-05** at limit **
  24  Normalizat    1.3476        .22842       -.28423E-06    .16335E-04
  25  Prefactor     .42298        .26473       -.83447E-07    .10161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.1235
  norm       = 6.29385
  Prefactor  = 6.07625
  Prefactor  = 4.18701
  Prefactor  = 1.53035
  Prefactor  = 2.8459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9646
  Prefactor  = 0.0001
  norm       = 7.04006
  Prefactor  = 22.5244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0588
  norm       = 0.0001
  norm       = 3.46145
  norm       = 1.58732
  Prefactor  = 6.51542
  Prefactor  = 2.74523
  Prefactor  = 104.064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34762
  Prefactor  = 0.422977
 **********
 **   18 **HESSE 
 **********

 FCN=   3562.663     FROM HESSE     STATUS=OK           435 CALLS     3272 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.124        44.595        .50914E-04   -1.4130    
   2  norm          6.2939        4.8010        .98526E-04   -1.5206    
   3  Prefactor     6.0762        8.9580        .81448E-03   -1.5215    
   4  Prefactor     4.1870        3.6661        .92529E-04   -1.5299    
   5  Prefactor     1.5304        2.0216        .94655E-04   -1.5461    
   6  Prefactor     2.8459        9.8086        .12051E-02   -1.5371    
   7  Prefactor     .10000E-03    13.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.965        133.14        .10720E-03   -1.4960    
  10  Prefactor     .10000E-03    2.5662        .93348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0401        6.0061        .12630E-03   -1.5177    
  12  Prefactor     22.524        65.122        .84365E-04   -1.4758    
  13  Prefactor     .10000E-03    21.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.059        8.9809        .11535E-03   -1.5013    
  16  norm          .10000E-03    12.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4614        7.1132        .11539E-03   -1.5336    
  18  norm          1.5873        33.871        .33777E-03   -1.5456    
  19  Prefactor     6.5154        6.3744        .12437E-03   -1.5197    
  20  Prefactor     2.7452        20.780        .24566E-03   -1.5377    
  21  Prefactor     104.06        100.03        .19713E-03   -1.3664    
  22  Prefactor     .10000E-03    8.6795        .17165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3476        .25431        .20337E-03   -.82156    
  25  Prefactor     .42298        .28889        .40160E-03   -1.1565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37659e-10
Minuit parameter uncertainties:
  1  44.6186
  2  4.80125
  3  8.96
  4  3.66633
  5  2.02166
  6  9.81414
  7  4.55574e-06
  8  9.33841e-07
  9  86.4911
  10  8.02749e-07
  11  6.00657
  12  65.3287
  13  3.34283e-06
  14  7.42988e-06
  15  8.98194
  16  2.98258e-05
  17  7.11491
  18  14.6739
  19  6.37502
  20  15.1128
  21  100.195
  22  1.95134e-07
  23  2.58273e-06
  24  0.254543
  25  0.289891
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  8.027e-07  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:  4.230e-01  2.899e-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.348e+00  2.545e-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: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36386/likelihoodResults_448761601_449020801_4FGL_J1257.2+3646_daily_bin808.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) = 3562.66466959
delta logL = -0.00165045654921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3562.663019
delta logL = 1.28170995595e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0077       1.0000          .0000       10.000    
     3 'Normalizat'    1.3476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42299       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=   3562.663     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10248E-03    3.9841        .95131E-02** at limit **
   2  Index         1.9228        5.5018        .50000        .56213E-04
   3  Normalizat    1.3476        .63287E-02    .20337E-03    .65828E-04
   4  Prefactor     .42298        .73704E-02    .40160E-03    .40198E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010248
  Index      = 1.92278
  Normalizat = 1.34762
  Prefactor  = 0.422977
 **********
 **   18 **HESSE 
 **********

 FCN=   3562.663     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10248E-03    58.628        .97618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9228        8.3214        .50000       -.66295    
   3  Normalizat    1.3476        .24800E-01    .40675E-04   -.82156    
   4  Prefactor     .42298        .28880E-01    .16064E-04   -1.1565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.40068e-08
Minuit parameter uncertainties:
  1  0.0241376
  2  316.157
  3  0.0247998
  4  0.0288811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36386': 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) = 3562.66301791
delta logL = 1.22236860989e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.025e-04  2.414e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.923e+00  3.162e+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:  4.230e-01  2.888e-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:  1.348e+00  2.480e-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/36386/cmap_HighResolution_448761601_449020801_4FGL_J1257.2+3646_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-06 11:55:00.931135', job_id='36386', GAL2='0.42', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630954500.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='808' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 36386: <4FGL_J1257.2+3646_daily_bin808> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin808> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:58 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:40:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:40:59 2021
Terminated at Mon Sep  6 11:55:01 2021
Results reported at Mon Sep  6 11:55:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin808 194.31 36.7706 448761601 449020801 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

