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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin947
RA = 194.31, Dec = 36.7706
tmin = 484790401, tmax = 485049601
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='36608', job_status='RUN', time_executed='2021-09-06 11:44:07.327127', time_epoch_executed='1630953847.33' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36608/ft1_4FGL_J1257.2+3646_daily_bin947.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36608/ft2_4FGL_J1257.2+3646_daily_bin947.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36608/ft1_4FGL_J1257.2+3646_daily_bin947.fits outfile=/scratch/kocevski/36608/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin947.fits ra=194.31 dec=36.7706 rad=12.0 tmin=484790401.0 tmax=485049601.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.76
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36608/ft1_filtered_4FGL_J1257.2+3646_daily_bin947.fits" evtable="EVENTS" scfile=/scratch/kocevski/36608/ft2_4FGL_J1257.2+3646_daily_bin947.fits sctable="SC_DATA" outfile=/scratch/kocevski/36608/ltcube_484790401_485049601_4FGL_J1257.2+3646_daily_bin947.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/36608/ft2_4FGL_J1257.2+3646_daily_bin947.fits
.....................!
real 12.84
user 11.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36608/ft1_filtered_4FGL_J1257.2+3646_daily_bin947.fits evtable="EVENTS" scfile=/scratch/kocevski/36608/ft2_4FGL_J1257.2+3646_daily_bin947.fits sctable="SC_DATA" expcube=/scratch/kocevski/36608/ltcube_484790401_485049601_4FGL_J1257.2+3646_daily_bin947.fits outfile=/scratch/kocevski/36608/expmap_484790401_485049601_4FGL_J1257.2+3646_daily_bin947.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/36608/ltcube_484790401_485049601_4FGL_J1257.2+3646_daily_bin947.fits
.....................!
real 192.97
user 185.27
sys 5.02

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/36608/ft1_filtered_4FGL_J1257.2+3646_daily_bin947.fits scfile=/scratch/kocevski/36608/ft2_4FGL_J1257.2+3646_daily_bin947.fits outfile=/scratch/kocevski/36608/cmap_484790401_485049601_4FGL_J1257.2+3646_daily_bin947.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.86
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36608/ft1_filtered_4FGL_J1257.2+3646_daily_bin947.fits scfile=/scratch/kocevski/36608/ft2_4FGL_J1257.2+3646_daily_bin947.fits outfile=/scratch/kocevski/36608/cmap_HighResolution_484790401_485049601_4FGL_J1257.2+3646_daily_bin947.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 1.47
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8456       1.0000         .10000E-03   10000.    
     2 'norm      '    13.815       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9860       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.011       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.576       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .41982       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2467       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4786       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.070       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10877E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92057       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0307       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=   6032.718     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2928 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8460        13.556        .97099E-05   -.40691E-03
   2  norm          13.814        3.9998       -.26989E-07   -.45904E-05
   3  Prefactor     .10000E-03    4.2625        .66215E-08** at limit **
   4  Prefactor     .10000E-03    .97386       -.79374E-09** at limit **
   5  Prefactor     4.1493        2.3131       -.16075E-07    .61658E-04
   6  Prefactor     3.9862        6.1483        .11695E-06   -.35759E-05
   7  Prefactor     .10000E-03    9.6240        .67039E-06** at limit **
   8  Prefactor     13.894        22.204       -.26877E-08    .37980E-06
   9  Prefactor     1.4880        489.01       -.53459E-04   -.71155E-04
  10  Prefactor     .10000E-03    5.4641        .82871E-07** at limit **
  11  norm          16.019        6.2604        .28458E-06    .65444E-03
  12  Prefactor     .10000E-03    10.000       -.90264E-06** at limit **
  13  Prefactor     .10000E-03    5.8566       -.83652E-07** at limit **
  14  Prefactor     .10000E-03    10.770        .35228E-06** at limit **
  15  norm          18.581        6.9973       -.29109E-07    .17951E-03
  16  norm          .10000E-03    3.8973        .11322E-08** at limit **
  17  norm          .36706        20.573       -.42768E-05   -.63746E-05
  18  norm          2.3125        7.9632        .29069E-05   -.12701E-03
  19  Prefactor     2.4650        4.8839       -.82576E-07    .25378E-03
  20  Prefactor     21.153        21.501        .58285E-07    .37570E-03
  21  Prefactor     .10000E-03    62.395        .25299E-05** at limit **
  22  Prefactor     .10000E-03    19.235        .25894E-06** at limit **
  23  Prefactor     .10000E-03    82.644        .38714E-05** at limit **
  24  Normalizat    .92093        .16570        .29590E-07    .20326E-03
  25  Prefactor     1.0304        .20697       -.33558E-06    .17433E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.846
  norm       = 13.8143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.14932
  Prefactor  = 3.98617
  Prefactor  = 0.0001
  Prefactor  = 13.8941
  Prefactor  = 1.48804
  Prefactor  = 0.0001
  norm       = 16.0186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5807
  norm       = 0.0001
  norm       = 0.367056
  norm       = 2.31249
  Prefactor  = 2.46502
  Prefactor  = 21.1529
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.920929
  Prefactor  = 1.03039
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.718     FROM HESSE     STATUS=OK           423 CALLS     3351 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8460        15.709        .12052E-02   -1.5371    
   2  norm          13.814        3.9914        .80078E-04   -1.4964    
   3  Prefactor     .10000E-03    4.3601        .15657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .98348        .74689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1493        2.3123        .42325E-03   -1.5301    
   6  Prefactor     3.9862        6.1368        .20202E-03   -1.5309    
   7  Prefactor     .10000E-03    9.6385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.894        22.177        .10740E-03   -1.4962    
   9  Prefactor     1.4880        552.15        .34683E-03   -1.5464    
  10  Prefactor     .10000E-03    5.5385        .17692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.019        6.2652        .10010E-03   -1.4907    
  12  Prefactor     .10000E-03    10.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.581        6.9786        .92929E-04   -1.4846    
  16  norm          .10000E-03    3.8989        .14975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .36706        48.335        .28366E-03   -1.5587    
  18  norm          2.3125        15.378        .16713E-03   -1.5404    
  19  Prefactor     2.4650        4.7251        .17574E-03   -1.5394    
  20  Prefactor     21.153        21.309        .87260E-04   -1.4788    
  21  Prefactor     .10000E-03    62.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    83.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92093        .20033        .23682E-03   -.95729    
  25  Prefactor     1.0304        .24937        .28456E-03   -.91723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85227e-09
Minuit parameter uncertainties:
  1  13.3779
  2  3.99144
  3  2.6508e-06
  4  2.63952e-07
  5  2.31234
  6  6.13778
  7  6.65001e-05
  8  22.1906
  9  57.8715
  10  1.20697e-05
  11  6.26548
  12  9.57002e-05
  13  6.18888e-06
  14  4.61226e-05
  15  6.97895
  16  5.75195e-07
  17  8.43001
  18  11.9307
  19  4.72583
  20  21.3163
  21  0.000653861
  22  4.64987e-05
  23  0.00111464
  24  0.200493
  25  0.24965
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.207e-05  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.030e+00  2.496e-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.209e-01  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36608/likelihoodResults_484790401_485049601_4FGL_J1257.2+3646_daily_bin947.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) = 6032.7192131
delta logL = -0.000860913986799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6032.71835222
delta logL = -4.17903720518e-08

Fit tolerance = 1e-08

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

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

 FCN=   6032.718     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10400E-03    .53045E-01    .52244E-01** at limit **
   2  Index         2.1510        6.4598        .50000       -.33503E-04
   3  Normalizat    .92093        .50800E-03    .23682E-03   -.15026E-03
   4  Prefactor     1.0304        .64489E-03    .28456E-03    .79224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104001
  Index      = 2.15104
  Normalizat = 0.920925
  Prefactor  = 1.03039
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.718     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      280 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10400E-03    14.218        .27575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1510        7.2493        .50000       -.60625    
   3  Normalizat    .92093        .60860E-02    .94729E-05   -.95729    
   4  Prefactor     1.0304        .77261E-02    .11382E-04   -.91723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.9435e-08
Minuit parameter uncertainties:
  1  0.0150887
  2  125.214
  3  0.00608604
  4  0.0077261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36608': 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) = 6032.71835152
delta logL = 6.61254489387e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.040e-04  1.509e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.151e+00  1.252e+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.030e+00  7.726e-03  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.209e-01  6.086e-03  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/36608/cmap_HighResolution_484790401_485049601_4FGL_J1257.2+3646_daily_bin947.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-06 11:56:34.796273', job_id='36608', GAL2='1.03', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630954594.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='6.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='947' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:56:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 36608: <4FGL_J1257.2+3646_daily_bin947> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin947 194.31 36.7706 484790401 485049601 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 :                                   717.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

