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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin414
RA = 194.31, Dec = 36.7706
tmin = 346636801, tmax = 346896001
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='33037', job_status='RUN', time_executed='2021-09-06 11:33:16.027971', time_epoch_executed='1630953196.03' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33037

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33037/ft1_4FGL_J1257.2+3646_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33037/ft2_4FGL_J1257.2+3646_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33037/ft1_4FGL_J1257.2+3646_daily_bin414.fits outfile=/scratch/kocevski/33037/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin414.fits ra=194.31 dec=36.7706 rad=12.0 tmin=346636801.0 tmax=346896001.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.41
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33037/ft1_filtered_4FGL_J1257.2+3646_daily_bin414.fits" evtable="EVENTS" scfile=/scratch/kocevski/33037/ft2_4FGL_J1257.2+3646_daily_bin414.fits sctable="SC_DATA" outfile=/scratch/kocevski/33037/ltcube_346636801_346896001_4FGL_J1257.2+3646_daily_bin414.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/33037/ft2_4FGL_J1257.2+3646_daily_bin414.fits
.....................!
real 12.44
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33037/ft1_filtered_4FGL_J1257.2+3646_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/33037/ft2_4FGL_J1257.2+3646_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/33037/ltcube_346636801_346896001_4FGL_J1257.2+3646_daily_bin414.fits outfile=/scratch/kocevski/33037/expmap_346636801_346896001_4FGL_J1257.2+3646_daily_bin414.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/33037/ltcube_346636801_346896001_4FGL_J1257.2+3646_daily_bin414.fits
.....................!
real 191.83
user 185.51
sys 5.28

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/33037/ft1_filtered_4FGL_J1257.2+3646_daily_bin414.fits scfile=/scratch/kocevski/33037/ft2_4FGL_J1257.2+3646_daily_bin414.fits outfile=/scratch/kocevski/33037/cmap_346636801_346896001_4FGL_J1257.2+3646_daily_bin414.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33037/ft1_filtered_4FGL_J1257.2+3646_daily_bin414.fits scfile=/scratch/kocevski/33037/ft2_4FGL_J1257.2+3646_daily_bin414.fits outfile=/scratch/kocevski/33037/cmap_HighResolution_346636801_346896001_4FGL_J1257.2+3646_daily_bin414.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15111E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7577       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.007       1.0000         .10000E-03   10000.    
     9 'Prefactor '    83.170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4911       1.0000         .10000E-03   10000.    
    11 'norm      '    .54529       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4436       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4201       1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4939       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.256       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1929       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87128       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=   6300.504     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2927 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    124.07       -.12725E-05** at limit **
   2  norm          .10000E-03    1.5318       -.34041E-07** at limit **
   3  Prefactor     .10000E-03    1.6119       -.24786E-07** at limit **
   4  Prefactor     5.7574        2.4950        .34560E-08    .47042E-04
   5  Prefactor     4.4134        2.3396       -.28924E-08    .29774E-04
   6  Prefactor     .10000E-03    3.3655       -.13664E-07** at limit **
   7  Prefactor     .10000E-03    89.119       -.24937E-05** at limit **
   8  Prefactor     10.007        11.926       -.37980E-07   -.19365E-04
   9  Prefactor     83.289        77.704       -.39255E-05   -.34747E-03
  10  Prefactor     4.4928        5.2815       -.14343E-06    .60047E-03
  11  norm          .51355        10.728       -.73447E-05    .25537E-03
  12  Prefactor     .10000E-03    78.470        .10479E-05** at limit **
  13  Prefactor     1.4696        92.993        .81259E-05    .28692E-04
  14  Prefactor     .10000E-03    20.933        .12968E-05** at limit **
  15  norm          .10000E-03    1.2161       -.42600E-07** at limit **
  16  norm          .10000E-03    6.8583       -.97188E-07** at limit **
  17  norm          6.4196        3.8292       -.10785E-07   -.24578E-03
  18  norm          .10000E-03    5.7064       -.56688E-06** at limit **
  19  Prefactor     .10000E-03    .96646       -.12818E-06** at limit **
  20  Prefactor     .10000E-03    8.1545       -.27385E-06** at limit **
  21  Prefactor     .10000E-03    15.122       -.59800E-07** at limit **
  22  Prefactor     4.4951        8.7116        .11542E-06    .40095E-03
  23  Prefactor     21.239        54.238        .13670E-05    .39101E-04
  24  Normalizat    1.1929        .16970       -.15037E-06   -.96139E-04
  25  Prefactor     .87117        .21048        .70728E-06   -.72879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.75743
  Prefactor  = 4.41343
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.007
  Prefactor  = 83.289
  Prefactor  = 4.49281
  norm       = 0.513547
  Prefactor  = 0.0001
  Prefactor  = 1.46964
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.41958
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49514
  Prefactor  = 21.239
  Normalizat = 1.19294
  Prefactor  = 0.871165
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.504     FROM HESSE     STATUS=OK           423 CALLS     3350 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    128.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5634        .19052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6135        .98419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7574        2.4785        .79020E-04   -1.5228    
   5  Prefactor     4.4134        2.3377        .85086E-04   -1.5288    
   6  Prefactor     .10000E-03    3.3733        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    91.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.007        11.924        .12667E-03   -1.5075    
   9  Prefactor     83.289        83.902        .22023E-03   -1.3880    
  10  Prefactor     4.4928        5.3671        .94994E-03   -1.5284    
  11  norm          .51355        12.131        .23574E-02   -1.5565    
  12  Prefactor     .10000E-03    78.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4696        87.133        .35891E-03   -1.5466    
  14  Prefactor     .10000E-03    21.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2173        .85473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.8754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4196        3.7669        .11037E-03   -1.5201    
  18  norm          .10000E-03    5.7695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .97880        .76202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.2668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4951        8.7905        .94964E-03   -1.5284    
  23  Prefactor     21.239        54.379        .86876E-04   -1.4786    
  24  Normalizat    1.1929        .19923        .21545E-03   -.86821    
  25  Prefactor     .87117        .24660        .31142E-03   -.97156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80431e-09
Minuit parameter uncertainties:
  1  0.000796839
  2  1.89907e-06
  3  1.52655e-06
  4  2.47851
  5  2.33771
  6  2.02353e-06
  7  0.000805927
  8  11.927
  9  84.0215
  10  5.36769
  11  4.9926
  12  0.000133072
  13  22.6662
  14  0.00032867
  15  2.68627e-06
  16  1.74031e-05
  17  3.76707
  18  6.66415e-05
  19  7.35664e-06
  20  4.41828e-05
  21  1.62495e-05
  22  8.79303
  23  54.5058
  24  0.199354
  25  0.246912
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.493e+00  5.368e+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:  8.712e-01  2.469e-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.193e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.70e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/33037/likelihoodResults_346636801_346896001_4FGL_J1257.2+3646_daily_bin414.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) = 6300.12871448
delta logL = 0.374931760654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6300.10599719
delta logL = 0.397649056802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6330       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90252       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=   6300.106     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6282        28.133        .82713E-02    .58169E-03
   2  Index         2.9027        2.8818        .98195E-01    .18463E-03
   3  Normalizat    1.1533        .50548E-01    .36155E-01   -.41519E-04
   4  Prefactor     .90237        .60217E-01    .69285E-01   -.24226E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62815
  Index      = 2.90273
  Normalizat = 1.15334
  Prefactor  = 0.902374
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.106     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6282        43.673        .80857E-04   -1.5453    
   2  Index         2.9027        6.4460        .52317E-02   -.43284    
   3  Normalizat    1.1533        .25228        .21852E-03   -.88057    
   4  Prefactor     .90237        .29674        .30652E-03   -.96058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00385e-10
Minuit parameter uncertainties:
  1  16.8782
  2  4.8689
  3  0.252541
  4  0.29727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33037': 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) = 6300.10599592
delta logL = 0.397650324265

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.628e+00  1.688e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.903e+00  4.869e+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:  9.024e-01  2.973e-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.153e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.90 +/- 4.87
Photon Flux (Free Index): 4.39e-08 +/- 7.29e-08
Energy Flux (Free Index): 9.23e-06 +/- 1.45e-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/33037/cmap_HighResolution_346636801_346896001_4FGL_J1257.2+3646_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', comment='SUCCESS', photon_flux='1.70e-08', energy_flux2='9.23e-06', photon_flux_error='2.04e-08', dlogl='3.98e-01', energy_flux='1.10e-05', photon_flux2='4.39e-08', job_status='DONE', time_completed='2021-09-06 11:45:48.550285', photon_index_error2='4.87', photon_index2='2.90', ts='1.23', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='6.97e-08', energy_flux_error2='1.45e-05', EG='1.19', time_epoch_completed='1630953948.55', return_code='0', job_id='33037', GAL2='0.90', EG2='1.15', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='7.29e-08', ts2='2.04', photon_index='2.03' WHERE bin_id='414' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 33037: <4FGL_J1257.2+3646_daily_bin414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin414 194.31 36.7706 346636801 346896001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

