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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin220
RA = 194.31, Dec = 36.7706
tmin = 296352001, tmax = 296611201
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='32035', job_status='RUN', time_executed='2021-09-06 11:30:02.495307', time_epoch_executed='1630953002.5' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32035/ft1_4FGL_J1257.2+3646_daily_bin220.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32035/ft2_4FGL_J1257.2+3646_daily_bin220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32035/ft1_4FGL_J1257.2+3646_daily_bin220.fits outfile=/scratch/kocevski/32035/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin220.fits ra=194.31 dec=36.7706 rad=12.0 tmin=296352001.0 tmax=296611201.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 2.47
user 2.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32035/ft1_filtered_4FGL_J1257.2+3646_daily_bin220.fits evtable="EVENTS" scfile=/scratch/kocevski/32035/ft2_4FGL_J1257.2+3646_daily_bin220.fits sctable="SC_DATA" expcube=/scratch/kocevski/32035/ltcube_296352001_296611201_4FGL_J1257.2+3646_daily_bin220.fits outfile=/scratch/kocevski/32035/expmap_296352001_296611201_4FGL_J1257.2+3646_daily_bin220.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/32035/ltcube_296352001_296611201_4FGL_J1257.2+3646_daily_bin220.fits
.....................!
real 190.83
user 185.33
sys 4.10

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/32035/ft1_filtered_4FGL_J1257.2+3646_daily_bin220.fits scfile=/scratch/kocevski/32035/ft2_4FGL_J1257.2+3646_daily_bin220.fits outfile=/scratch/kocevski/32035/cmap_296352001_296611201_4FGL_J1257.2+3646_daily_bin220.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32035/ft1_filtered_4FGL_J1257.2+3646_daily_bin220.fits scfile=/scratch/kocevski/32035/ft2_4FGL_J1257.2+3646_daily_bin220.fits outfile=/scratch/kocevski/32035/cmap_HighResolution_296352001_296611201_4FGL_J1257.2+3646_daily_bin220.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.717       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5756       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49791       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.629       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.070       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0502       1.0000         .10000E-03   10000.    
    11 'norm      '    .11440E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18477       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.377       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.996       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8916       1.0000         .10000E-03   10000.    
    16 'norm      '    12.763       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7758       1.0000         .10000E-03   10000.    
    18 'norm      '    .10577E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4190       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0499       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.611       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.394       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94545       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6220.019     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     2892 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.719        3.3582       -.42232E-05    .12913E-02
   2  norm          3.5754        2.6365       -.14175E-05    .11849E-03
   3  Prefactor     .10000E-03    2.0740        .18898E-05** at limit **
   4  Prefactor     .49754        1.3412       -.10559E-07    .59571E-04
   5  Prefactor     2.0909        1.7899       -.43360E-06   -.72337E-04
   6  Prefactor     24.635        9.5769        .11958E-04    .11299E-01
   7  Prefactor     28.115        14.856       -.19584E-04    .62674E-02
   8  Prefactor     .10000E-03    10.063       -.10986E-05** at limit **
   9  Prefactor     37.233        3.9096        .29131E-05   -.23793E-02
  10  Prefactor     4.0493        4.5816       -.69718E-05   -.30092E-03
  11  norm          .10000E-03    3.3086        .11966E-05** at limit **
  12  Prefactor     .66529E-03    7147.6        .25792E-04** at limit **
  13  Prefactor     30.389        25.364       -.34488E-04   -.16158E-02
  14  Prefactor     15.998        6.4652        .78843E-05    .72165E-02
  15  norm          3.8874        5.4073        .32215E-05   -.26277E-03
  16  norm          12.770        8.2414       -.40609E-05    .96405E-02
  17  norm          6.7764        4.2027        .39567E-05   -.12519E-03
  18  norm          .10000E-03    15.002        .94530E-05** at limit **
  19  Prefactor     1.4289        4.5185        .36366E-05   -.19639E-03
  20  Prefactor     1.9991        49.837       -.21932E-04   -.32520E-03
  21  Prefactor     27.664        13.603       -.15171E-04    .62106E-02
  22  Prefactor     23.393        17.574       -.19157E-05   -.45495E-02
  23  Prefactor     .10000E-03    19.975       -.18806E-05** at limit **
  24  Normalizat    .94543        .19494        .71654E-05   -.90726E-04
  25  Prefactor     .97451        .23697       -.82738E-05   -.51904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.7195
  norm       = 3.57539
  Prefactor  = 0.0001
  Prefactor  = 0.497545
  Prefactor  = 2.09088
  Prefactor  = 24.6346
  Prefactor  = 28.1146
  Prefactor  = 0.0001
  Prefactor  = 37.233
  Prefactor  = 4.04933
  norm       = 0.0001
  Prefactor  = 0.000665291
  Prefactor  = 30.3886
  Prefactor  = 15.9976
  norm       = 3.88739
  norm       = 12.7697
  norm       = 6.77638
  norm       = 0.0001
  Prefactor  = 1.42895
  Prefactor  = 1.99907
  Prefactor  = 27.6642
  Prefactor  = 23.3931
  Prefactor  = 0.0001
  Normalizat = 0.945432
  Prefactor  = 0.97451
 **********
 **   18 **HESSE 
 **********

 FCN=   6220.019     FROM HESSE     STATUS=OK           505 CALLS     3397 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.719        33.555        .17514E-02   -1.4563    
   2  norm          3.5754        2.6301        .53430E-02   -1.5330    
   3  Prefactor     .10000E-03    2.0698        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49754        1.5242        .32673E-01   -1.5567    
   5  Prefactor     2.0909        1.7958        .71374E-02   -1.5419    
   6  Prefactor     24.635        11.641        .20179E-02   -1.4715    
   7  Prefactor     28.115        40.368        .18904E-02   -1.4647    
   8  Prefactor     .10000E-03    10.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.233        50.951        .16417E-02   -1.4487    
  10  Prefactor     4.0493        4.7375        .50089E-02   -1.5305    
  11  norm          .10000E-03    3.2449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66529E-03    66.077        .14706       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.389        29.633        .18174E-02   -1.4605    
  14  Prefactor     15.998        15.028        .25035E-02   -1.4908    
  15  norm          3.8874        5.7233        .51133E-02   -1.5314    
  16  norm          12.770        11.915        .28031E-02   -1.4993    
  17  norm          6.7764        4.9343        .38535E-02   -1.5187    
  18  norm          .10000E-03    6.2379        .61450E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4289        5.7399        .90813E-02   -1.5469    
  20  Prefactor     1.9991        80.263        .72184E-02   -1.5425    
  21  Prefactor     27.664        55.725        .19060E-02   -1.4656    
  22  Prefactor     23.393        19.178        .20704E-02   -1.4740    
  23  Prefactor     .10000E-03    19.992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94543        .16939        .45480E-01   -.94882    
  25  Prefactor     .97451        .20231        .66524E-01   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08155e-06
Minuit parameter uncertainties:
  1  33.5741
  2  2.63014
  3  6.65382e-06
  4  1.52436
  5  1.79587
  6  11.6424
  7  40.4073
  8  7.07208e-06
  9  51.0111
  10  4.73794
  11  2.04172e-06
  12  0.386964
  13  29.6469
  14  15.0319
  15  5.72406
  16  11.9167
  17  4.93457
  18  3.98241e-05
  19  5.72861
  20  25.3699
  21  55.83
  22  19.1827
  23  5.33268e-05
  24  0.16949
  25  0.202472
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.049e+00  4.738e+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:  9.745e-01  2.025e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.454e-01  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.54e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 9.94e-06 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/32035/likelihoodResults_296352001_296611201_4FGL_J1257.2+3646_daily_bin220.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) = 6220.01667799
delta logL = 0.00278931147204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6220.01533979
delta logL = 0.00412750897976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7753       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0908       1.0000          .0000       10.000    
     3 'Normalizat'    .94450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97513       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=   6220.015     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7731        171.02        .51943E-02    .33169E-03
   2  Index         2.0915        5.8108        .14822        .15442E-03
   3  Normalizat    .94452        .71069E-01    .45468E-01   -.55889E-04
   4  Prefactor     .97512        .78731E-01    .66505E-01   -.61273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7731
  Index      = 2.09149
  Normalizat = 0.944517
  Prefactor  = 0.975121
 **********
 **   18 **HESSE 
 **********

 FCN=   6220.015     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7731        5.6390        .16718E-03   -1.5319    
   2  Index         2.0915        .75133        .88173E-02   -.62082    
   3  Normalizat    .94452        .18755        .23794E-03   -.94913    
   4  Prefactor     .97512        .23587        .29415E-03   -.93563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.352e-10
Minuit parameter uncertainties:
  1  5.63978
  2  0.755672
  3  0.187684
  4  0.236116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32035': 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) = 6220.01533929
delta logL = 0.00412801214861

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.773e+00  5.640e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.091e+00  7.557e-01  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:  9.751e-01  2.361e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.445e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.09 +/- 0.76
Photon Flux (Free Index): 1.63e-08 +/- 2.03e-08
Energy Flux (Free Index): 9.10e-06 +/- 1.43e-05

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/32035/cmap_HighResolution_296352001_296611201_4FGL_J1257.2+3646_daily_bin220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', comment='SUCCESS', photon_flux='1.54e-08', energy_flux2='9.10e-06', photon_flux_error='1.80e-08', dlogl='4.13e-03', energy_flux='9.94e-06', photon_flux2='1.63e-08', job_status='DONE', time_completed='2021-09-06 11:42:16.687078', photon_index_error2='0.76', photon_index2='2.09', ts='1.74', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.52e-08', energy_flux_error2='1.43e-05', EG='0.95', time_epoch_completed='1630953736.69', return_code='0', job_id='32035', GAL2='0.98', EG2='0.94', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.03e-08', ts2='1.75', photon_index='2.03' WHERE bin_id='220' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:42:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 32035: <4FGL_J1257.2+3646_daily_bin220> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin220> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:54 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:56 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:25:56 2021
Terminated at Mon Sep  6 11:42:17 2021
Results reported at Mon Sep  6 11:42:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin220 194.31 36.7706 296352001 296611201 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 :                                   727.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

