/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 80 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 = 6834
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin613
RA = 194.31, Dec = 36.7706
tmin = 398217601, tmax = 398476801
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='36086', job_status='RUN', time_executed='2021-09-06 11:42:10.575321', time_epoch_executed='1630953730.58' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36086

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36086/ft1_4FGL_J1257.2+3646_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36086/ft2_4FGL_J1257.2+3646_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36086/ft1_4FGL_J1257.2+3646_daily_bin613.fits outfile=/scratch/kocevski/36086/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin613.fits ra=194.31 dec=36.7706 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.58
user 6.26
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36086/ft1_filtered_4FGL_J1257.2+3646_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/36086/ft2_4FGL_J1257.2+3646_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/36086/ltcube_398217601_398476801_4FGL_J1257.2+3646_daily_bin613.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/36086/ft2_4FGL_J1257.2+3646_daily_bin613.fits
.....................!
real 11.49
user 11.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36086/ft1_filtered_4FGL_J1257.2+3646_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/36086/ft2_4FGL_J1257.2+3646_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/36086/ltcube_398217601_398476801_4FGL_J1257.2+3646_daily_bin613.fits outfile=/scratch/kocevski/36086/expmap_398217601_398476801_4FGL_J1257.2+3646_daily_bin613.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/36086/ltcube_398217601_398476801_4FGL_J1257.2+3646_daily_bin613.fits
.....................!
real 191.44
user 186.05
sys 5.00

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/36086/ft1_filtered_4FGL_J1257.2+3646_daily_bin613.fits scfile=/scratch/kocevski/36086/ft2_4FGL_J1257.2+3646_daily_bin613.fits outfile=/scratch/kocevski/36086/cmap_398217601_398476801_4FGL_J1257.2+3646_daily_bin613.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.65
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36086/ft1_filtered_4FGL_J1257.2+3646_daily_bin613.fits scfile=/scratch/kocevski/36086/ft2_4FGL_J1257.2+3646_daily_bin613.fits outfile=/scratch/kocevski/36086/cmap_HighResolution_398217601_398476801_4FGL_J1257.2+3646_daily_bin613.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.570       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .94396       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6373       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10584E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.616       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.328       1.0000         .10000E-03   10000.    
    15 'norm      '    .10663E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.7747       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3128       1.0000         .10000E-03   10000.    
    18 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4668       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95107       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0165       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=   4028.936     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2886 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.233       -.13799E-05** at limit **
   2  norm          13.570        4.5582       -.89374E-08   -.14513E-04
   3  Prefactor     6.0050        7.9713        .20053E-05    .19741E-03
   4  Prefactor     .10000E-03    1.0560        .21065E-07** at limit **
   5  Prefactor     1.9969        2.2559        .55170E-07   -.69150E-05
   6  Prefactor     .10000E-03    5.0187       -.84011E-08** at limit **
   7  Prefactor     .90398        31.931       -.57577E-05    .32002E-03
   8  Prefactor     2.6388        29.350        .50559E-06   -.24607E-06
   9  Prefactor     .10000E-03    34.026       -.62767E-07** at limit **
  10  Prefactor     .10000E-03    3.9635       -.30373E-06** at limit **
  11  norm          .10000E-03    2.7323       -.58554E-06** at limit **
  12  Prefactor     .10000E-03    73.657        .90779E-05** at limit **
  13  Prefactor     19.574        34.746        .43354E-05    .24145E-04
  14  Prefactor     10.331        17.267       -.98949E-06   -.22700E-04
  15  norm          .10000E-03    4.7302       -.60748E-06** at limit **
  16  norm          8.7673        22.548        .99136E-06   -.28375E-04
  17  norm          1.3274        3.1073        .16280E-05   -.13321E-03
  18  norm          .10001E-03    5.4546       -.13441E-05** at limit **
  19  Prefactor     2.4703        3.9484        .18724E-05    .40182E-03
  20  Prefactor     .10000E-03    20.432       -.18285E-05** at limit **
  21  Prefactor     .10000E-03    27.203        .42788E-05** at limit **
  22  Prefactor     .10000E-03    57.234       -.21942E-05** at limit **
  23  Prefactor     .10000E-03    48.781       -.59182E-05** at limit **
  24  Normalizat    .95053        .20270        .30306E-06    .45989E-04
  25  Prefactor     1.0172        .25483       -.30140E-05    .24780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.5704
  Prefactor  = 6.00501
  Prefactor  = 0.0001
  Prefactor  = 1.99686
  Prefactor  = 0.0001
  Prefactor  = 0.903977
  Prefactor  = 2.63883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5745
  Prefactor  = 10.331
  norm       = 0.0001
  norm       = 8.76731
  norm       = 1.32743
  norm       = 0.000100005
  Prefactor  = 2.47033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.950533
  Prefactor  = 1.01719
 **********
 **   18 **HESSE 
 **********

 FCN=   4028.936     FROM HESSE     STATUS=OK           429 CALLS     3315 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.570        4.5521        .75839E-04   -1.4971    
   3  Prefactor     6.0050        7.9213        .81921E-03   -1.5218    
   4  Prefactor     .10000E-03    1.0622        .63614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9969        2.2404        .97981E-04   -1.5425    
   6  Prefactor     .10000E-03    5.0370        .13886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .90398        177.28        .63357E-02   -1.5518    
   8  Prefactor     2.6388        29.294        .25108E-03   -1.5383    
   9  Prefactor     .10000E-03    34.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9694        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7513        .10253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    73.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.574        34.691        .90431E-04   -1.4823    
  14  Prefactor     10.331        17.242        .12468E-03   -1.5065    
  15  norm          .10000E-03    4.7753        .13487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.7673        22.602        .13532E-03   -1.5116    
  17  norm          1.3274        3.2046        .84325E-03   -1.5478    
  18  norm          .10001E-03    11.476        .27555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4703        3.8690        .73429E-03   -1.5394    
  20  Prefactor     .10000E-03    20.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95053        .24566        .23175E-03   -.94707    
  25  Prefactor     1.0172        .30787        .28032E-03   -.92159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12646e-09
Minuit parameter uncertainties:
  1  6.26938e-05
  2  4.55217
  3  7.92269
  4  1.09427e-06
  5  2.24046
  6  3.52218e-06
  7  25.3938
  8  17.595
  9  3.30188e-05
  10  1.92726e-05
  11  3.58403e-05
  12  0.000257374
  13  34.727
  14  17.25
  15  6.2621e-05
  16  22.6238
  17  3.20506
  18  0.000484678
  19  3.86938
  20  0.000136341
  21  6.30973e-05
  22  0.00014745
  23  0.000110362
  24  0.24595
  25  0.308401
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.927e-05  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.017e+00  3.084e-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.505e-01  2.459e-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: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36086/likelihoodResults_398217601_398476801_4FGL_J1257.2+3646_daily_bin613.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) = 4028.93762742
delta logL = -0.00119626503192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4028.9364315
delta logL = -3.35808636009e-07

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.0213       1.0000          .0000       10.000    
     3 'Normalizat'    .95036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0174       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=   4028.936     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    80.838        .12350E-02** at limit **
   2  Index         1.9906        5.6212        .50000        .10425E-04
   3  Normalizat    .95053        .22390E-01    .23175E-03    .42679E-05
   4  Prefactor     1.0172        .28042E-01    .28033E-03    .32444E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100256
  Index      = 1.99062
  Normalizat = 0.950533
  Prefactor  = 1.01719
 **********
 **   18 **HESSE 
 **********

 FCN=   4028.936     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    356.67        .24699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9906        5.9285        .50000       -.64585    
   3  Normalizat    .95053        .52273E-01    .92699E-05   -.94707    
   4  Prefactor     1.0172        .65280E-01    .11213E-04   -.92159    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32901e-08
Minuit parameter uncertainties:
  1  0.019242
  2  956.128
  3  0.0522755
  4  0.0652847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36086': 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) = 4028.93643109
delta logL = 7.33402885089e-08

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.003e-04  1.924e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.991e+00  9.561e+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.017e+00  6.528e-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.505e-01  5.228e-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/36086/cmap_HighResolution_398217601_398476801_4FGL_J1257.2+3646_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-09-06 11:52:23.538274', job_id='36086', GAL2='1.02', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630954343.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='613' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:52:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 36086: <4FGL_J1257.2+3646_daily_bin613> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin613 194.31 36.7706 398217601 398476801 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 :                                   592.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            712 sec.

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

