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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin632
RA = 194.31, Dec = 36.7706
tmin = 403142401, tmax = 403401601
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='36114', job_status='RUN', time_executed='2021-09-06 11:44:31.276078', time_epoch_executed='1630953871.28' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36114/ft1_4FGL_J1257.2+3646_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36114/ft2_4FGL_J1257.2+3646_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36114/ft1_4FGL_J1257.2+3646_daily_bin632.fits outfile=/scratch/kocevski/36114/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin632.fits ra=194.31 dec=36.7706 rad=12.0 tmin=403142401.0 tmax=403401601.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 4.15
user 3.29
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36114/ft1_filtered_4FGL_J1257.2+3646_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/36114/ft2_4FGL_J1257.2+3646_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/36114/ltcube_403142401_403401601_4FGL_J1257.2+3646_daily_bin632.fits outfile=/scratch/kocevski/36114/expmap_403142401_403401601_4FGL_J1257.2+3646_daily_bin632.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/36114/ltcube_403142401_403401601_4FGL_J1257.2+3646_daily_bin632.fits
.....................!
real 191.41
user 185.90
sys 4.93

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/36114/ft1_filtered_4FGL_J1257.2+3646_daily_bin632.fits scfile=/scratch/kocevski/36114/ft2_4FGL_J1257.2+3646_daily_bin632.fits outfile=/scratch/kocevski/36114/cmap_403142401_403401601_4FGL_J1257.2+3646_daily_bin632.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.69
user 0.36
sys 0.19

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.7099       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85237       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.644       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.489       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9903       1.0000         .10000E-03   10000.    
    16 'norm      '    36.405       1.0000         .10000E-03   10000.    
    17 'norm      '    29.819       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5685       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69764       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5975       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=   6484.212     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2853 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0694       -.81354E-06** at limit **
   2  norm          5.7092        4.2673       -.79052E-06   -.24098E-03
   3  Prefactor     10.236        9.8026       -.17989E-08   -.29369E-04
   4  Prefactor     .85351        3.1784        .10557E-05   -.14601E-03
   5  Prefactor     6.4076        4.0418        .15633E-06   -.17977E-03
   6  Prefactor     .10000E-03    7.7026        .29124E-06** at limit **
   7  Prefactor     .10000E-03    16.719       -.26233E-05** at limit **
   8  Prefactor     .10000E-03    16.233       -.11475E-05** at limit **
   9  Prefactor     .10000E-03    38.804       -.10842E-04** at limit **
  10  Prefactor     .10000E-03    2.5343       -.32389E-07** at limit **
  11  norm          4.4560        5.3277        .77916E-07   -.12200E-02
  12  Prefactor     62.469        51.929        .89187E-06    .75449E-05
  13  Prefactor     40.644        42.379       -.89260E-06   -.24049E-04
  14  Prefactor     11.487        18.927       -.63171E-06   -.19408E-04
  15  norm          2.9873        3.4614        .46161E-06   -.21378E-02
  16  norm          36.406        20.440        .23050E-06    .77655E-05
  17  norm          29.823        7.7634        .59411E-07   -.18752E-03
  18  norm          .10000E-03    5.4799       -.73793E-07** at limit **
  19  Prefactor     4.5683        4.4919        .78606E-06   -.15499E-03
  20  Prefactor     .10000E-03    14.839        .60852E-05** at limit **
  21  Prefactor     .10000E-03    19.403       -.73374E-05** at limit **
  22  Prefactor     .10000E-03    28.716        .73329E-05** at limit **
  23  Prefactor     .10000E-03    29.986        .78596E-05** at limit **
  24  Normalizat    .69766        .19665       -.83568E-06   -.89685E-04
  25  Prefactor     1.5973        .23973        .18307E-06   -.12038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.70916
  Prefactor  = 10.2361
  Prefactor  = 0.85351
  Prefactor  = 6.40763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45595
  Prefactor  = 62.4689
  Prefactor  = 40.6441
  Prefactor  = 11.4871
  norm       = 2.98733
  norm       = 36.4063
  norm       = 29.8229
  norm       = 0.0001
  Prefactor  = 4.56825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.697659
  Prefactor  = 1.59735
 **********
 **   18 **HESSE 
 **********

 FCN=   6484.212     FROM HESSE     STATUS=OK           423 CALLS     3276 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7092        4.1338        .11279E-03   -1.5230    
   3  Prefactor     10.236        9.8009        .12524E-03   -1.5068    
   4  Prefactor     .85351        3.0064        .21130E-03   -1.5523    
   5  Prefactor     6.4076        3.9739        .11579E-03   -1.5202    
   6  Prefactor     .10000E-03    7.7267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5384        .12515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4560        5.7129        .95379E-03   -1.5286    
  12  Prefactor     62.469        51.973        .50770E-04   -1.4126    
  13  Prefactor     40.644        43.149        .62875E-04   -1.4432    
  14  Prefactor     11.487        19.676        .11819E-03   -1.5030    
  15  norm          2.9873        6.3532        .11738E-02   -1.5362    
  16  norm          36.406        20.453        .66422E-04   -1.4500    
  17  norm          29.823        7.7457        .73371E-04   -1.4615    
  18  norm          .10000E-03    5.4894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5683        4.4799        .15452E-03   -1.5280    
  20  Prefactor     .10000E-03    14.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69766        .23431        .32265E-03   -1.0399    
  25  Prefactor     1.5973        .28799        .28104E-03   -.74849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10911e-09
Minuit parameter uncertainties:
  1  7.65684e-06
  2  4.13401
  3  9.80242
  4  3.00698
  5  3.97405
  6  1.96832e-06
  7  3.7195e-05
  8  8.50107e-06
  9  0.00025115
  10  1.30742e-06
  11  5.71358
  12  52.0109
  13  43.1823
  14  19.687
  15  6.3546
  16  20.4565
  17  7.74596
  18  8.86165e-06
  19  4.48018
  20  3.55408e-05
  21  0.000134588
  22  9.43207e-05
  23  0.000164903
  24  0.234646
  25  0.288292
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.307e-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:  1.597e+00  2.883e-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:  6.977e-01  2.346e-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: 4.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36114/likelihoodResults_403142401_403401601_4FGL_J1257.2+3646_daily_bin632.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) = 6484.2142025
delta logL = -0.00182253465391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6484.21237992
delta logL = 5.10317477165e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0145       1.0000          .0000       10.000    
     3 'Normalizat'    .69766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5974       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=   6484.212     FROM MIGRAD    STATUS=FAILED        86 CALLS      241 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10121E-03    57.613        .12603E-02** at limit **
   2  Index         1.9440        7.2815        .50000        .32455E-04
   3  Normalizat    .69766        .22124E-01    .32265E-03    .21846E-04
   4  Prefactor     1.5973        .27955E-01    .28104E-03    .27532E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6484.212     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      376 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10121E-03    57.613        .21985E-03** at limit **
   2  Index         1.9440        7.2815        .53811E-03    .32455E-04
   3  Normalizat    .69766        .22124E-01    .69892E-05    .21846E-04
   4  Prefactor     1.5973        .27955E-01    .44938E-05    .27532E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6484.212     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      419 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.442        .25205E-02** at limit **
   2  Index         1.6878        8.4428        .50000        .13008E-06
   3  Normalizat    .69766        .19404E-01    .12906E-04   -.11786E-03
   4  Prefactor     1.5973        .24520E-01    .56207E-04   -.13374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68783
  Normalizat = 0.697658
  Prefactor  = 1.59735
 **********
 **   18 **HESSE 
 **********

 FCN=   6484.212     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      448 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    228.46        .50410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6878        5.7313        .50000       -.72406    
   3  Normalizat    .69766        .46623E-01    .25812E-05   -1.0399    
   4  Prefactor     1.5973        .58906E-01    .11241E-04   -.74849    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.92753e-09
Minuit parameter uncertainties:
  1  6.59339e-05
  2  919.88
  3  0.0466256
  4  0.0589084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36114': 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) = 6484.21237814
delta logL = 1.82973872143e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.593e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.688e+00  9.199e+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.597e+00  5.891e-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:  6.977e-01  4.663e-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/36114/cmap_HighResolution_403142401_403401601_4FGL_J1257.2+3646_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-09-06 11:57:05.869678', job_id='36114', GAL2='1.60', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630954625.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.60', dlogl='1.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='632' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 36114: <4FGL_J1257.2+3646_daily_bin632> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin632 194.31 36.7706 403142401 403401601 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 :                                   744.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

