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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin707
RA = 194.31, Dec = 36.7706
tmin = 422582401, tmax = 422841601
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='36231', job_status='RUN', time_executed='2021-09-06 11:42:38.271104', time_epoch_executed='1630953758.27' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36231

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36231/ft1_4FGL_J1257.2+3646_daily_bin707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36231/ft2_4FGL_J1257.2+3646_daily_bin707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36231/ft1_4FGL_J1257.2+3646_daily_bin707.fits outfile=/scratch/kocevski/36231/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin707.fits ra=194.31 dec=36.7706 rad=12.0 tmin=422582401.0 tmax=422841601.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36231/ft1_filtered_4FGL_J1257.2+3646_daily_bin707.fits" evtable="EVENTS" scfile=/scratch/kocevski/36231/ft2_4FGL_J1257.2+3646_daily_bin707.fits sctable="SC_DATA" outfile=/scratch/kocevski/36231/ltcube_422582401_422841601_4FGL_J1257.2+3646_daily_bin707.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/36231/ft2_4FGL_J1257.2+3646_daily_bin707.fits
.....................!
real 11.86
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36231/ft1_filtered_4FGL_J1257.2+3646_daily_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/36231/ft2_4FGL_J1257.2+3646_daily_bin707.fits sctable="SC_DATA" expcube=/scratch/kocevski/36231/ltcube_422582401_422841601_4FGL_J1257.2+3646_daily_bin707.fits outfile=/scratch/kocevski/36231/expmap_422582401_422841601_4FGL_J1257.2+3646_daily_bin707.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/36231/ltcube_422582401_422841601_4FGL_J1257.2+3646_daily_bin707.fits
.....................!
real 190.43
user 185.14
sys 4.88

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/36231/ft1_filtered_4FGL_J1257.2+3646_daily_bin707.fits scfile=/scratch/kocevski/36231/ft2_4FGL_J1257.2+3646_daily_bin707.fits outfile=/scratch/kocevski/36231/cmap_422582401_422841601_4FGL_J1257.2+3646_daily_bin707.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36231/ft1_filtered_4FGL_J1257.2+3646_daily_bin707.fits scfile=/scratch/kocevski/36231/ft2_4FGL_J1257.2+3646_daily_bin707.fits outfile=/scratch/kocevski/36231/cmap_HighResolution_422582401_422841601_4FGL_J1257.2+3646_daily_bin707.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3766       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0925       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6242       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5165       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.931       1.0000         .10000E-03   10000.    
    18 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4871       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2749       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62578       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=   5616.997     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2434 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.671        .12454E-04** at limit **
   2  norm          6.4325        3.1328       -.11465E-07   -.31755E-04
   3  Prefactor     .10000E-03    3.9339        .14887E-06** at limit **
   4  Prefactor     1.3766        1.4066        .28532E-07    .17292E-03
   5  Prefactor     2.0926        2.0043        .14532E-07    .31238E-04
   6  Prefactor     6.6242        9.9631       -.16026E-06   -.95062E-04
   7  Prefactor     .10000E-03    15.769       -.44698E-05** at limit **
   8  Prefactor     .10000E-03    8.9962        .17583E-05** at limit **
   9  Prefactor     .10000E-03    139.91       -.85926E-05** at limit **
  10  Prefactor     .10000E-03    3.7354       -.10922E-06** at limit **
  11  norm          2.5144        5.6055       -.98249E-06   -.75722E-03
  12  Prefactor     .10000E-03    23.908       -.48972E-06** at limit **
  13  Prefactor     .10000E-03    37.809        .16857E-04** at limit **
  14  Prefactor     .10000E-03    8.0742       -.13981E-05** at limit **
  15  norm          .10000E-03    3.1913        .25541E-07** at limit **
  16  norm          .10000E-03    5.0186       -.26675E-06** at limit **
  17  norm          11.930        5.5603        .27506E-07   -.95106E-04
  18  norm          .10000E-03    2.6351        .68160E-08** at limit **
  19  Prefactor     6.4839        4.1825       -.90001E-08    .41244E-04
  20  Prefactor     .10000E-03    25.340       -.91179E-05** at limit **
  21  Prefactor     .10000E-03    22.560        .76390E-05** at limit **
  22  Prefactor     .10000E-03    5.5828        .36340E-06** at limit **
  23  Prefactor     .10000E-03    29.045       -.20099E-04** at limit **
  24  Normalizat    1.2749        .17857        .28200E-06    .12225E-04
  25  Prefactor     .62577        .21068       -.10856E-06   -.63644E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.43254
  Prefactor  = 0.0001
  Prefactor  = 1.37659
  Prefactor  = 2.09255
  Prefactor  = 6.62425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.5144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.9303
  norm       = 0.0001
  Prefactor  = 6.48393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2749
  Prefactor  = 0.625767
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.997     FROM HESSE     STATUS=OK           417 CALLS     2851 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4325        3.1281        .88380E-04   -1.5201    
   3  Prefactor     .10000E-03    3.9620        .14515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3766        1.4190        .86521E-04   -1.5473    
   5  Prefactor     2.0926        2.0058        .99029E-04   -1.5419    
   6  Prefactor     6.6242        9.9397        .15592E-03   -1.5193    
   7  Prefactor     .10000E-03    15.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.0022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    140.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7774        .14143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5144        5.6200        .24616E-03   -1.5391    
  12  Prefactor     .10000E-03    23.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2375        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.0244        .16398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.930        5.5324        .10769E-03   -1.5017    
  18  norm          .10000E-03    2.6361        .11870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4839        4.1717        .11360E-03   -1.5199    
  20  Prefactor     .10000E-03    25.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5966        .17295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2749        .20286        .20837E-03   -.84319    
  25  Prefactor     .62577        .23778        .34273E-03   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31172e-10
Minuit parameter uncertainties:
  1  1.31054e-05
  2  3.12814
  3  1.88253e-06
  4  1.41902
  5  2.00587
  6  9.94213
  7  2.28221e-07
  8  7.55591e-07
  9  0.000379998
  10  2.34712e-07
  11  5.62117
  12  1.9021e-06
  13  2.83862e-05
  14  9.54715e-08
  15  6.03997e-08
  16  3.24336e-07
  17  5.53263
  18  9.86521e-07
  19  4.1719
  20  5.07164e-05
  21  2.49497e-06
  22  2.04491e-07
  23  8.02587e-06
  24  0.202989
  25  0.238162
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.347e-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:  6.258e-01  2.382e-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.275e+00  2.030e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36231/likelihoodResults_422582401_422841601_4FGL_J1257.2+3646_daily_bin707.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) = 5616.99783349
delta logL = -0.00125839478551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5616.99657511
delta logL = -7.15590431355e-09

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.0211       1.0000          .0000       10.000    
     3 'Normalizat'    1.2749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62578       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5616.997     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    145.87        .14166E-02** at limit **
   2  Index         1.9498        8.3137        .50000        .60566E-05
   3  Normalizat    1.2749        .27325E-01    .20837E-03    .28917E-05
   4  Prefactor     .62577        .32629E-01    .34273E-03    .15922E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5616.997     FROM SIMPLEX   STATUS=UNCHANGED    144 CALLS      384 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    145.87        .34540E-03** at limit **
   2  Index         1.9498        8.3137        .75477E-04    .60566E-05
   3  Normalizat    1.2749        .27325E-01    .93516E-06    .28917E-05
   4  Prefactor     .62577        .32629E-01    .13710E-05    .15922E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5616.997     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      423 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    874.81        .28333E-03** at limit **
   2  Index         1.8875        5.1179        .50000        .79672E-07
   3  Normalizat    1.2749        .15171        .83348E-05    .58925E-04
   4  Prefactor     .62577        .17009        .13709E-04    .35327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88755
  Normalizat = 1.2749
  Prefactor  = 0.625768
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.997     FROM HESSE     STATUS=OK            29 CALLS      452 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0411        .56665E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8875        7.5124        .50000       -.67192    
   3  Normalizat    1.2749        .19839        .16670E-05   -.84319    
   4  Prefactor     .62577        .23701        .27418E-05   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47275e-11
Minuit parameter uncertainties:
  1  2.05697e-06
  2  167.944
  3  0.198505
  4  0.237387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36231': 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): 0
logL (Free Index) = 5616.99657486
delta logL = 2.36870619119e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.057e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.888e+00  1.679e+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:  6.258e-01  2.374e-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.275e+00  1.985e-01  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/36231/cmap_HighResolution_422582401_422841601_4FGL_J1257.2+3646_daily_bin707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-09-06 11:53:46.783036', job_id='36231', GAL2='0.63', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630954426.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='707' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:53:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 36231: <4FGL_J1257.2+3646_daily_bin707> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin707 194.31 36.7706 422582401 422841601 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 :                                   655.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

