/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 143 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin226
RA = 194.31, Dec = 36.7706
tmin = 297907201, tmax = 298166401
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='32757', job_status='RUN', time_executed='2021-09-06 11:33:06.921792', time_epoch_executed='1630953186.92' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32757/ft1_4FGL_J1257.2+3646_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32757/ft2_4FGL_J1257.2+3646_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32757/ft1_4FGL_J1257.2+3646_daily_bin226.fits outfile=/scratch/kocevski/32757/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin226.fits ra=194.31 dec=36.7706 rad=12.0 tmin=297907201.0 tmax=298166401.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.57
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32757/ft1_filtered_4FGL_J1257.2+3646_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/32757/ft2_4FGL_J1257.2+3646_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/32757/ltcube_297907201_298166401_4FGL_J1257.2+3646_daily_bin226.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/32757/ft2_4FGL_J1257.2+3646_daily_bin226.fits
.....................!
real 12.98
user 12.42
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32757/ft1_filtered_4FGL_J1257.2+3646_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/32757/ft2_4FGL_J1257.2+3646_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/32757/ltcube_297907201_298166401_4FGL_J1257.2+3646_daily_bin226.fits outfile=/scratch/kocevski/32757/expmap_297907201_298166401_4FGL_J1257.2+3646_daily_bin226.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/32757/ltcube_297907201_298166401_4FGL_J1257.2+3646_daily_bin226.fits
.....................!
real 191.22
user 185.44
sys 5.37

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/32757/ft1_filtered_4FGL_J1257.2+3646_daily_bin226.fits scfile=/scratch/kocevski/32757/ft2_4FGL_J1257.2+3646_daily_bin226.fits outfile=/scratch/kocevski/32757/cmap_297907201_298166401_4FGL_J1257.2+3646_daily_bin226.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32757/ft1_filtered_4FGL_J1257.2+3646_daily_bin226.fits scfile=/scratch/kocevski/32757/ft2_4FGL_J1257.2+3646_daily_bin226.fits outfile=/scratch/kocevski/32757/cmap_HighResolution_297907201_298166401_4FGL_J1257.2+3646_daily_bin226.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    2.7279       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9592       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17013E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.826       1.0000         .10000E-03   10000.    
     9 'Prefactor '    88.843       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5650       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0694       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.904       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.665       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    33.605       1.0000         .10000E-03   10000.    
    17 'norm      '    10.236       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4004       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.637       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9525       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3427       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0098       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.

 FCN=   7657.252     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2913 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.946        .90712E-02** at limit **
   2  norm          2.7280        2.6538        .61637E-02   -.10927E-03
   3  Prefactor     15.517        9.6429        .25419E-02   -.10730E-02
   4  Prefactor     3.9592        2.4689        .50680E-02   -.35101E-03
   5  Prefactor     10.056        3.8982        .31588E-02   -.17503E-02
   6  Prefactor     .10001E-03    5.1903        .10184    ** at limit **
   7  Prefactor     .10000E-03    36.134        .90712E-02** at limit **
   8  Prefactor     10.826        10.634        .30442E-02   -.10326E-03
   9  Prefactor     88.843        76.330        .10657E-02    .30202E-03
  10  Prefactor     1.5651        3.3431        .84999E-02    .74196E-03
  11  norm          3.0687        3.9088        .57883E-02    .25409E-03
  12  Prefactor     47.904        66.945        .14484E-02    .58006E-04
  13  Prefactor     20.677        26.298        .22027E-02    .16618E-02
  14  Prefactor     .10000E-03    5.8894        .90712E-02** at limit **
  15  norm          .10000E-03    3.1066        .90712E-02** at limit **
  16  norm          33.605        17.816        .17281E-02    .40445E-04
  17  norm          10.242        5.1448        .31309E-02   -.13779E-03
  18  norm          .10000E-03    3.0630        .90712E-02** at limit **
  19  Prefactor     1.3809        4.3658        .91663E-02    .18964E-02
  20  Prefactor     .10000E-03    13.073        .90712E-02** at limit **
  21  Prefactor     .10012E-03    266.20        .90712E-02** at limit **
  22  Prefactor     12.638        13.431        .28170E-02    .57977E-04
  23  Prefactor     9.9472        46.729        .31754E-02    .20096E-03
  24  Normalizat    1.3428        .18719        .57145E-01    .13918E-04
  25  Prefactor     1.0096        .21959        .78560E-01   -.14965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 2.72795
  Prefactor  = 15.5171
  Prefactor  = 3.95917
  Prefactor  = 10.0559
  Prefactor  = 0.00010001
  Prefactor  = 0.000100002
  Prefactor  = 10.826
  Prefactor  = 88.843
  Prefactor  = 1.56513
  norm       = 3.06873
  Prefactor  = 47.9037
  Prefactor  = 20.6773
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.605
  norm       = 10.2416
  norm       = 0.0001
  Prefactor  = 1.38089
  Prefactor  = 0.0001
  Prefactor  = 0.000100117
  Prefactor  = 12.6379
  Prefactor  = 9.94724
  Normalizat = 1.34284
  Prefactor  = 1.00958
 **********
 **   18 **HESSE 
 **********

 FCN=   7657.252     FROM HESSE     STATUS=OK           425 CALLS     3338 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7280        2.6507        .13046E-03   -1.5378    
   3  Prefactor     15.517        9.6427        .10168E-03   -1.4920    
   4  Prefactor     3.9592        2.4669        .10089E-03   -1.5310    
   5  Prefactor     10.056        3.8524        .99537E-04   -1.5074    
   6  Prefactor     .10001E-03    59.852        .38100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.826        10.636        .12177E-03   -1.5050    
   9  Prefactor     88.843        76.244        .42628E-04   -1.3820    
  10  Prefactor     1.5651        3.2966        .22674E-03   -1.5458    
  11  norm          3.0687        3.8845        .18140E-03   -1.5358    
  12  Prefactor     47.904        67.119        .57935E-04   -1.4323    
  13  Prefactor     20.677        26.236        .88108E-04   -1.4798    
  14  Prefactor     .10000E-03    5.8976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1387        .15048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          33.605        17.813        .69126E-04   -1.4548    
  17  norm          10.242        5.0917        .12524E-03   -1.5068    
  18  norm          .10000E-03    3.0689        .14926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3809        4.2823        .28664E-03   -1.5473    
  20  Prefactor     .10000E-03    13.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10012E-03    268.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.638        13.435        .11268E-03   -1.4997    
  23  Prefactor     9.9472        46.802        .12702E-03   -1.5077    
  24  Normalizat    1.3428        .22711        .25270E-03   -.82296    
  25  Prefactor     1.0096        .26424        .34770E-03   -.92411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24126e-08
Minuit parameter uncertainties:
  1  0.000695447
  2  2.65077
  3  9.64366
  4  2.46698
  5  3.85254
  6  0.00156226
  7  0.000576767
  8  10.6383
  9  76.328
  10  3.297
  11  3.88482
  12  67.2247
  13  26.2506
  14  2.34619e-05
  15  3.24679e-05
  16  17.816
  17  5.09187
  18  2.24902e-05
  19  4.28321
  20  3.87042e-05
  21  0.011262
  22  13.4384
  23  43.2082
  24  0.227276
  25  0.264577
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.565e+00  3.297e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.010e+00  2.646e-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.343e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 4.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32757/likelihoodResults_297907201_298166401_4FGL_J1257.2+3646_daily_bin226.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): 0
logL (Free Index) = 7657.24716883
delta logL = 0.00532926983487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7657.246081
delta logL = 0.00641710561831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7332       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8842       1.0000          .0000       10.000    
     3 'Normalizat'    1.3440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0087       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.

 FCN=   7657.246     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      225 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7351        43.384        .79706E-02    .55296E-03
   2  Index         1.8840        1.4039        .46437        .38681E-05
   3  Normalizat    1.3440        .22599E-01    .57124E-01    .50280E-05
   4  Prefactor     1.0087        .27026E-01    .78589E-01    .20757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73511
  Index      = 1.884
  Normalizat = 1.34403
  Prefactor  = 1.00872
 **********
 **   18 **HESSE 
 **********

 FCN=   7657.246     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7351        3.8047        .23557E-03   -1.5445    
   2  Index         1.8840        1.2239        .65600E-02   -.67283    
   3  Normalizat    1.3440        .21565        .25261E-03   -.82261    
   4  Prefactor     1.0087        .26267        .34783E-03   -.92439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49094e-11
Minuit parameter uncertainties:
  1  3.80518
  2  1.24477
  3  0.215794
  4  0.263006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32757': 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) = 7657.24608086
delta logL = 0.00641723621902

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.735e+00  3.805e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.884e+00  1.245e+00  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.009e+00  2.630e-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.344e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 194.310 36.771

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/32757/cmap_HighResolution_297907201_298166401_4FGL_J1257.2+3646_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-09-06 11:46:53.061722', job_id='32757', GAL2='1.01', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630954013.06', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.42e-03', ts2='0.35', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='226' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:46:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 32757: <4FGL_J1257.2+3646_daily_bin226> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin226> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:14 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:16 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:30:16 2021
Terminated at Mon Sep  6 11:46:53 2021
Results reported at Mon Sep  6 11:46:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin226 194.31 36.7706 297907201 298166401 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 :                                   819.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

