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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin644
RA = 194.31, Dec = 36.7706
tmin = 406252801, tmax = 406512001
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='36133', job_status='RUN', time_executed='2021-09-06 11:43:38.669164', time_epoch_executed='1630953818.67' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36133

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36133/ft1_4FGL_J1257.2+3646_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36133/ft2_4FGL_J1257.2+3646_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36133/ft1_4FGL_J1257.2+3646_daily_bin644.fits outfile=/scratch/kocevski/36133/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin644.fits ra=194.31 dec=36.7706 rad=12.0 tmin=406252801.0 tmax=406512001.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.01
user 3.59
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36133/ft2_4FGL_J1257.2+3646_daily_bin644.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/36133/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin644.fits evtable="EVENTS" outfile="/scratch/kocevski/36133/ft1_filtered_4FGL_J1257.2+3646_daily_bin644.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.58
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36133/ft1_filtered_4FGL_J1257.2+3646_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/36133/ft2_4FGL_J1257.2+3646_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/36133/ltcube_406252801_406512001_4FGL_J1257.2+3646_daily_bin644.fits outfile=/scratch/kocevski/36133/expmap_406252801_406512001_4FGL_J1257.2+3646_daily_bin644.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/36133/ltcube_406252801_406512001_4FGL_J1257.2+3646_daily_bin644.fits
.....................!
real 193.29
user 187.54
sys 5.14

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/36133/ft1_filtered_4FGL_J1257.2+3646_daily_bin644.fits scfile=/scratch/kocevski/36133/ft2_4FGL_J1257.2+3646_daily_bin644.fits outfile=/scratch/kocevski/36133/cmap_406252801_406512001_4FGL_J1257.2+3646_daily_bin644.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36133/ft1_filtered_4FGL_J1257.2+3646_daily_bin644.fits scfile=/scratch/kocevski/36133/ft2_4FGL_J1257.2+3646_daily_bin644.fits outfile=/scratch/kocevski/36133/cmap_HighResolution_406252801_406512001_4FGL_J1257.2+3646_daily_bin644.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.23
user 0.37
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15615E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2569       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.721       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.647       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9377       1.0000         .10000E-03   10000.    
    16 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11259E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0799       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.516       1.0000         .10000E-03   10000.    
    21 'Prefactor '    85.796       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68334       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4193       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=   5894.137     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2887 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.199       -.11662E-06** at limit **
   2  norm          12.632        4.3263        .17823E-07    .10448E-04
   3  Prefactor     32.888        12.796        .90954E-07   -.12318E-04
   4  Prefactor     .10000E-03    .97974        .85333E-09** at limit **
   5  Prefactor     6.2583        3.4759        .82856E-07   -.52493E-04
   6  Prefactor     .10000E-03    16.012       -.68908E-07** at limit **
   7  Prefactor     .10000E-03    14.365       -.52593E-07** at limit **
   8  Prefactor     8.4342        11.819        .52352E-08   -.35180E-05
   9  Prefactor     28.716        44.137       -.18775E-06   -.14326E-04
  10  Prefactor     .10000E-03    3.9660       -.81195E-07** at limit **
  11  norm          1.0368        3.0146        .61413E-06   -.55805E-04
  12  Prefactor     69.654        64.965        .33373E-06    .47551E-05
  13  Prefactor     11.969        18.620       -.74733E-06   -.34862E-04
  14  Prefactor     .10000E-03    29.867       -.29065E-06** at limit **
  15  norm          2.9398        4.0008       -.22809E-06   -.11737E-03
  16  norm          .10000E-03    7.1659        .67089E-07** at limit **
  17  norm          .10000E-03    3.3966       -.54382E-06** at limit **
  18  norm          .10000E-03    2.2621       -.90066E-07** at limit **
  19  Prefactor     1.0699        3.1113        .28407E-05   -.27174E-04
  20  Prefactor     12.537        15.442       -.17982E-05   -.11639E-03
  21  Prefactor     85.878        70.133       -.19403E-05    .60038E-04
  22  Prefactor     .10000E-03    10.316       -.33463E-07** at limit **
  23  Prefactor     .10000E-03    19.567        .75222E-07** at limit **
  24  Normalizat    .68335        .17367       -.11920E-05   -.33280E-04
  25  Prefactor     1.4193        .22036        .54427E-06   -.95340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.6316
  Prefactor  = 32.8879
  Prefactor  = 0.0001
  Prefactor  = 6.25825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.43419
  Prefactor  = 28.7156
  Prefactor  = 0.0001
  norm       = 1.03684
  Prefactor  = 69.6543
  Prefactor  = 11.969
  Prefactor  = 0.0001
  norm       = 2.9398
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.06989
  Prefactor  = 12.5373
  Prefactor  = 85.8781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.683349
  Prefactor  = 1.41925
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.137     FROM HESSE     STATUS=OK           427 CALLS     3314 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.632        4.3230        .88199E-04   -1.4997    
   3  Prefactor     32.888        12.797        .69862E-04   -1.4560    
   4  Prefactor     .10000E-03    .98362        .74122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2583        3.4697        .10019E-03   -1.5208    
   6  Prefactor     .10000E-03    16.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4342        11.815        .13803E-03   -1.5127    
   9  Prefactor     28.716        44.062        .74757E-04   -1.4636    
  10  Prefactor     .10000E-03    4.0165        .14921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0368        2.9112        .21326E-03   -1.5504    
  12  Prefactor     69.654        65.014        .48099E-04   -1.4037    
  13  Prefactor     11.969        18.507        .11578E-03   -1.5016    
  14  Prefactor     .10000E-03    30.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9398        3.9802        .17148E-03   -1.5365    
  16  norm          .10000E-03    7.1713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5168        .27472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2677        .11274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0699        3.1195        .20237E-03   -1.5501    
  20  Prefactor     12.537        15.426        .11322E-03   -1.5000    
  21  Prefactor     85.878        69.491        .21686E-03   -1.3852    
  22  Prefactor     .10000E-03    10.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68335        .20434        .27758E-03   -1.0455    
  25  Prefactor     1.4193        .26114        .26259E-03   -.79827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0166e-11
Minuit parameter uncertainties:
  1  8.89188e-05
  2  4.32314
  3  12.7983
  4  1.64218e-07
  5  3.46982
  6  2.45588e-05
  7  5.77083e-06
  8  11.8179
  9  44.1117
  10  3.05507e-06
  11  2.91164
  12  65.0801
  13  18.5163
  14  3.33992e-06
  15  3.98052
  16  2.18062e-06
  17  8.27058e-06
  18  1.06795e-06
  19  3.11997
  20  15.4311
  21  69.5569
  22  1.19588e-05
  23  7.29054e-06
  24  0.204566
  25  0.26138
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.055e-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.419e+00  2.614e-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.833e-01  2.046e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36133/likelihoodResults_406252801_406512001_4FGL_J1257.2+3646_daily_bin644.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) = 5894.13805
delta logL = -0.00118390553507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5894.13686611
delta logL = -1.26192389871e-08

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 'Index     '    2.0331       1.0000          .0000       10.000    
     3 'Normalizat'    .68336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4193       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=   5894.137     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.348        .90712E-02** at limit **
   2  Index         2.0389        7.7291        .50000       -.11887E-04
   3  Normalizat    .68335        .12669E-01    .62746E-01    .33944E-04
   4  Prefactor     1.4193        .16699E-01    .59382E-01    .14045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03886
  Normalizat = 0.683348
  Prefactor  = 1.41925
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.137     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    396.86        .14936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0389        8.8200        .50000       -.63382    
   3  Normalizat    .68335        .47381E-01    .27759E-03   -1.0455    
   4  Prefactor     1.4193        .62511E-01    .26259E-03   -.79827    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14693e-08
Minuit parameter uncertainties:
  1  9.51948e-05
  2  40.2944
  3  0.0473841
  4  0.0625146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36133': 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) = 5894.13686606
delta logL = 3.31910996465e-08

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.519e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.039e+00  4.029e+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:  1.419e+00  6.251e-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.833e-01  4.738e-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/36133/cmap_HighResolution_406252801_406512001_4FGL_J1257.2+3646_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-06 11:55:45.929071', job_id='36133', GAL2='1.42', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630954545.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='3.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='644' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 36133: <4FGL_J1257.2+3646_daily_bin644> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin644 194.31 36.7706 406252801 406512001 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

