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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin868
RA = 194.31, Dec = 36.7706
tmin = 464313601, tmax = 464572801
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='36475', job_status='RUN', time_executed='2021-09-06 11:42:10.928050', time_epoch_executed='1630953730.93' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36475

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36475/ft1_4FGL_J1257.2+3646_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36475/ft2_4FGL_J1257.2+3646_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36475/ft1_4FGL_J1257.2+3646_daily_bin868.fits outfile=/scratch/kocevski/36475/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin868.fits ra=194.31 dec=36.7706 rad=12.0 tmin=464313601.0 tmax=464572801.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.48
user 3.20
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36475/ft1_filtered_4FGL_J1257.2+3646_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/36475/ft2_4FGL_J1257.2+3646_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/36475/ltcube_464313601_464572801_4FGL_J1257.2+3646_daily_bin868.fits outfile=/scratch/kocevski/36475/expmap_464313601_464572801_4FGL_J1257.2+3646_daily_bin868.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/36475/ltcube_464313601_464572801_4FGL_J1257.2+3646_daily_bin868.fits
.....................!
real 192.03
user 186.07
sys 5.51

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/36475/ft1_filtered_4FGL_J1257.2+3646_daily_bin868.fits scfile=/scratch/kocevski/36475/ft2_4FGL_J1257.2+3646_daily_bin868.fits outfile=/scratch/kocevski/36475/cmap_464313601_464572801_4FGL_J1257.2+3646_daily_bin868.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36475/ft1_filtered_4FGL_J1257.2+3646_daily_bin868.fits scfile=/scratch/kocevski/36475/ft2_4FGL_J1257.2+3646_daily_bin868.fits outfile=/scratch/kocevski/36475/cmap_HighResolution_464313601_464572801_4FGL_J1257.2+3646_daily_bin868.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/36475/ft1_filtered_4FGL_J1257.2+3646_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/36475/ft2_4FGL_J1257.2+3646_daily_bin868.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/36475/Model_4FGL_J1257.2+3646_daily_bin868.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/36475/ft1_filtered_4FGL_J1257.2+3646_daily_bin868.fits.....................!
real 49.66
user 48.16
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.741       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2718       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2200       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57158       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.735       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.615       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5853       1.0000         .10000E-03   10000.    
    16 'norm      '    14.017       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8483       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.110       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.234       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1878       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78140       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=   6026.712     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2856 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.744        33.631        .28510E-05    .57911E-05
   2  norm          5.2717        2.9676        .13041E-06    .11354E-03
   3  Prefactor     .10000E-03    12.205        .16267E-05** at limit **
   4  Prefactor     1.4861        1.4037       -.80950E-07    .29795E-03
   5  Prefactor     4.2200        3.0802        .14104E-06    .64745E-04
   6  Prefactor     .56807        6.6017       -.15450E-05   -.13033E-03
   7  Prefactor     .10000E-03    8.1600       -.72121E-05** at limit **
   8  Prefactor     .10000E-03    7.5484        .57850E-05** at limit **
   9  Prefactor     20.151        67.533       -.91150E-04    .13504E-04
  10  Prefactor     .10000E-03    2.0754        .33843E-07** at limit **
  11  norm          .10000E-03    1.0103        .22184E-06** at limit **
  12  Prefactor     10.735        45.047       -.11723E-05    .21987E-05
  13  Prefactor     .10000E-03    4.6542        .10130E-07** at limit **
  14  Prefactor     11.617        10.934       -.27322E-06   -.28232E-05
  15  norm          3.5854        3.0984        .16188E-05    .99256E-04
  16  norm          14.017        10.763       -.34684E-06    .24823E-04
  17  norm          .10000E-03    .69965       -.11624E-07** at limit **
  18  norm          .10000E-03    1.3669       -.19448E-07** at limit **
  19  Prefactor     2.8496        3.6444        .29779E-05    .96105E-04
  20  Prefactor     16.137        12.878        .24686E-05    .86604E-04
  21  Prefactor     15.059        59.771       -.12279E-03   -.48299E-05
  22  Prefactor     15.233        15.725       -.10850E-05   -.79145E-06
  23  Prefactor     .10000E-03    24.285       -.88720E-06** at limit **
  24  Normalizat    1.1876        .17024        .55709E-05   -.10937E-03
  25  Prefactor     .78155        .20691        .20929E-05    .15929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.7436
  norm       = 5.27175
  Prefactor  = 0.000100001
  Prefactor  = 1.48606
  Prefactor  = 4.22
  Prefactor  = 0.568067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1511
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7353
  Prefactor  = 0.0001
  Prefactor  = 11.6169
  norm       = 3.58535
  norm       = 14.0168
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.84963
  Prefactor  = 16.1372
  Prefactor  = 15.0587
  Prefactor  = 15.233
  Prefactor  = 0.0001
  Normalizat = 1.18765
  Prefactor  = 0.78155
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.712     FROM HESSE     STATUS=OK           433 CALLS     3289 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.744        33.646        .59939E-04   -1.4369    
   2  norm          5.2717        2.9641        .95355E-04   -1.5249    
   3  Prefactor     .10000E-03    12.689        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4861        1.4222        .86175E-04   -1.5464    
   5  Prefactor     4.2200        3.0477        .10816E-03   -1.5297    
   6  Prefactor     .56807        18.520        .37831E-02   -1.5557    
   7  Prefactor     .10000E-03    8.1651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.151        67.546        .89128E-04   -1.4810    
  10  Prefactor     .10000E-03    2.0816        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0124        .76194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.735        45.023        .12228E-03   -1.5053    
  13  Prefactor     .10000E-03    4.6560        .16357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.617        10.936        .11754E-03   -1.5026    
  15  norm          3.5854        3.0950        .12304E-03   -1.5329    
  16  norm          14.017        10.760        .10698E-03   -1.4959    
  17  norm          .10000E-03    .70094        .63403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3680        .88637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8496        3.6023        .14263E-03   -1.5370    
  20  Prefactor     16.137        12.832        .99704E-04   -1.4904    
  21  Prefactor     15.059        59.719        .10304E-03   -1.4932    
  22  Prefactor     15.233        15.725        .10262E-03   -1.4927    
  23  Prefactor     .10000E-03    24.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1876        .19615        .21476E-03   -.86985    
  25  Prefactor     .78155        .23785        .32098E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7673e-08
Minuit parameter uncertainties:
  1  33.6604
  2  2.96423
  3  0.000251138
  4  1.42223
  5  3.04776
  6  6.48868
  7  1.63989e-05
  8  1.706e-05
  9  67.8039
  10  6.47611e-06
  11  3.00332e-05
  12  44.0266
  13  1.4676e-05
  14  10.9381
  15  3.09512
  16  10.7619
  17  2.5474e-06
  18  5.28511e-07
  19  3.60261
  20  12.8341
  21  59.958
  22  15.7292
  23  1.14697e-05
  24  0.196267
  25  0.238164
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.476e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.816e-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.188e+00  1.963e-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: 3.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36475/likelihoodResults_464313601_464572801_4FGL_J1257.2+3646_daily_bin868.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) = 6026.71445569
delta logL = -0.00225071000114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6026.71220491
delta logL = 6.89751686878e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0121       1.0000          .0000       10.000    
     3 'Normalizat'    1.1877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78156       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=   6026.712     FROM MIGRAD    STATUS=FAILED        85 CALLS      236 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10104E-03    41.056        .11024E-02** at limit **
   2  Index         1.9557        7.4765        .50000        .49533E-04
   3  Normalizat    1.1877        .18097E-01    .21476E-03    .55636E-04
   4  Prefactor     .78155        .22495E-01    .32098E-03    .33081E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6026.712     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      372 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10104E-03    41.056        .22672E-03** at limit **
   2  Index         1.9557        7.4765        .40829E-03    .49533E-04
   3  Normalizat    1.1877        .18097E-01    .41153E-05    .55636E-04
   4  Prefactor     .78155        .22495E-01    .46613E-05    .33081E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6026.712     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      417 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.397        .22049E-02** at limit **
   2  Index         1.6356        5.2044        .50000        .77785E-07
   3  Normalizat    1.1876        .17346E-01    .85905E-05   -.53915E-03
   4  Prefactor     .78154        .21562E-01    .12839E-04   -.36021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.63556
  Normalizat = 1.18765
  Prefactor  = 0.781545
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.712     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    187.63        .44097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6356        9.1645        .50000       -.73811    
   3  Normalizat    1.1876        .40197E-01    .17181E-05   -.86985    
   4  Prefactor     .78154        .49955E-01    .25678E-05   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.536e-11
Minuit parameter uncertainties:
  1  5.5977e-05
  2  757.932
  3  0.0401979
  4  0.0499575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36475': 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) = 6026.71220202
delta logL = 2.96308189718e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.598e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.636e+00  7.579e+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:  7.815e-01  4.996e-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.188e+00  4.020e-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/36475/cmap_HighResolution_464313601_464572801_4FGL_J1257.2+3646_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-03', job_status='DONE', photon_flux_upper_limit='3.90e-08', time_completed='2021-09-06 11:54:33.764615', job_id='36475', GAL2='0.78', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630954473.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='868' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 36475: <4FGL_J1257.2+3646_daily_bin868> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin868 194.31 36.7706 464313601 464572801 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

