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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin939
RA = 194.31, Dec = 36.7706
tmin = 482716801, tmax = 482976001
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='36596', job_status='RUN', time_executed='2021-09-06 11:44:19.939623', time_epoch_executed='1630953859.94' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36596

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36596/ft1_4FGL_J1257.2+3646_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36596/ft2_4FGL_J1257.2+3646_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36596/ft1_4FGL_J1257.2+3646_daily_bin939.fits outfile=/scratch/kocevski/36596/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin939.fits ra=194.31 dec=36.7706 rad=12.0 tmin=482716801.0 tmax=482976001.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.88
user 3.39
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36596/ft1_filtered_4FGL_J1257.2+3646_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/36596/ft2_4FGL_J1257.2+3646_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/36596/ltcube_482716801_482976001_4FGL_J1257.2+3646_daily_bin939.fits outfile=/scratch/kocevski/36596/expmap_482716801_482976001_4FGL_J1257.2+3646_daily_bin939.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/36596/ltcube_482716801_482976001_4FGL_J1257.2+3646_daily_bin939.fits
.....................!
real 192.67
user 186.67
sys 4.72

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/36596/ft1_filtered_4FGL_J1257.2+3646_daily_bin939.fits scfile=/scratch/kocevski/36596/ft2_4FGL_J1257.2+3646_daily_bin939.fits outfile=/scratch/kocevski/36596/cmap_482716801_482976001_4FGL_J1257.2+3646_daily_bin939.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.67
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    24.163       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9445       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8585       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2629       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6073       1.0000         .10000E-03   10000.    
    11 'norm      '    53.697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.929       1.0000         .10000E-03   10000.    
    15 'norm      '    .81518E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.464       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3860       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4154       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.345       1.0000         .10000E-03   10000.    
    23 'Prefactor '    115.22       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84690       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0604       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=   6545.571     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2851 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.675       -.37587E-05** at limit **
   2  norm          24.164        5.1719       -.17735E-05   -.54986E-04
   3  Prefactor     6.9455        6.9463       -.79526E-07   -.29625E-04
   4  Prefactor     .10000E-03    1.2536        .25992E-06** at limit **
   5  Prefactor     2.2128        2.5774        .80124E-06   -.51685E-03
   6  Prefactor     4.8586        6.8043       -.12542E-06   -.98879E-04
   7  Prefactor     .10000E-03    9.8860        .22214E-05** at limit **
   8  Prefactor     8.2605        19.360       -.13516E-05   -.28920E-04
   9  Prefactor     .10000E-03    44.717        .28520E-04** at limit **
  10  Prefactor     8.6098        7.1995        .12225E-05   -.87426E-04
  11  norm          53.697        9.7406        .14330E-06   -.21983E-03
  12  Prefactor     .10000E-03    50.542       -.28435E-04** at limit **
  13  Prefactor     .10000E-03    13.942       -.99606E-06** at limit **
  14  Prefactor     11.895        17.749       -.65453E-05   -.14829E-03
  15  norm          .10005E-03    3.2858        .47708E-06** at limit **
  16  norm          18.463        11.980        .13453E-06    .55566E-04
  17  norm          6.3852        4.0190        .17789E-07   -.18310E-03
  18  norm          .10000E-03    3.9812       -.13850E-06** at limit **
  19  Prefactor     1.4155        2.1941       -.41203E-07   -.52318E-03
  20  Prefactor     .10000E-03    7.2802       -.28128E-06** at limit **
  21  Prefactor     .10000E-03    18.034        .25269E-05** at limit **
  22  Prefactor     19.348        16.061       -.25184E-06   -.19727E-04
  23  Prefactor     115.24        74.002        .17002E-04   -.12735E-04
  24  Normalizat    .84667        .16800       -.16417E-05    .47549E-04
  25  Prefactor     1.0607        .20254        .10371E-05   -.76953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 24.164
  Prefactor  = 6.9455
  Prefactor  = 0.0001
  Prefactor  = 2.21276
  Prefactor  = 4.85862
  Prefactor  = 0.0001
  Prefactor  = 8.2605
  Prefactor  = 0.0001
  Prefactor  = 8.60984
  norm       = 53.6971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8953
  norm       = 0.000100055
  norm       = 18.4633
  norm       = 6.38519
  norm       = 0.0001
  Prefactor  = 1.41548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3476
  Prefactor  = 115.245
  Normalizat = 0.846667
  Prefactor  = 1.06069
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.571     FROM HESSE     STATUS=OK           431 CALLS     3282 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          24.164        5.1500        .80035E-04   -1.4724    
   3  Prefactor     6.9455        6.9483        .15224E-03   -1.5181    
   4  Prefactor     .10000E-03    1.2664        .88311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2128        2.5561        .13161E-03   -1.5410    
   6  Prefactor     4.8586        6.7946        .18250E-03   -1.5267    
   7  Prefactor     .10000E-03    9.8960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.2605        19.331        .13947E-03   -1.5133    
   9  Prefactor     .10000E-03    44.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6098        7.1761        .13663E-03   -1.5121    
  11  norm          53.697        9.7391        .54736E-04   -1.4241    
  12  Prefactor     .10000E-03    50.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.895        16.992        .11598E-03   -1.5018    
  15  norm          .10005E-03    11.822        .26585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.463        11.981        .93210E-04   -1.4848    
  17  norm          6.3852        3.9965        .12050E-03   -1.5203    
  18  norm          .10000E-03    4.0000        .15715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4155        2.1440        .14201E-03   -1.5470    
  20  Prefactor     .10000E-03    7.3088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.348        16.077        .91064E-04   -1.4828    
  23  Prefactor     115.24        74.114        .18740E-03   -1.3557    
  24  Normalizat    .84667        .19655        .25905E-03   -.98360    
  25  Prefactor     1.0607        .23642        .29439E-03   -.90733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08797e-09
Minuit parameter uncertainties:
  1  3.49958e-05
  2  5.15008
  3  6.94914
  4  2.88499e-05
  5  2.55624
  6  6.79568
  7  3.38548e-06
  8  19.346
  9  4.48226e-06
  10  7.17684
  11  9.73938
  12  0.000139296
  13  2.02942e-05
  14  16.9989
  15  0.00160636
  16  11.983
  17  3.99663
  18  1.41169e-06
  19  2.14415
  20  2.9587e-06
  21  1.10304e-05
  22  16.0807
  23  74.1734
  24  0.196714
  25  0.23665
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  8.610e+00  7.177e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.061e+00  2.366e-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:  8.467e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/36596/likelihoodResults_482716801_482976001_4FGL_J1257.2+3646_daily_bin939.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) = 6545.56739546
delta logL = 0.00375950146918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6545.56583198
delta logL = 0.00532298933103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2155       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0934       1.0000          .0000       10.000    
     3 'Normalizat'    .84350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0627       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=   6545.566     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      255 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2158        7.9444        .13987E-03   -.48036E-04
   2  Index         2.0934        .67076        .74041E-02   -.45332E-04
   3  Normalizat    .84350        .18857        .25946E-03    .94730E-04
   4  Prefactor     1.0627        .23503        .29413E-03    .11789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.21583
  Index      = 2.09335
  Normalizat = 0.843503
  Prefactor  = 1.0627
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.566     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2158        7.5657        .55949E-05   -1.5135    
   2  Index         2.0934        .63833        .29616E-03   -.62036    
   3  Normalizat    .84350        .18835        .10379E-04   -.98475    
   4  Prefactor     1.0627        .23505        .11765E-04   -.90668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10852e-10
Minuit parameter uncertainties:
  1  7.56663
  2  0.640977
  3  0.188496
  4  0.235278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36596': 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) = 6545.56583197
delta logL = 0.00532299311635

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  8.216e+00  7.567e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.093e+00  6.410e-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.063e+00  2.353e-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:  8.435e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.09 +/- 0.64
Photon Flux (Free Index): 3.56e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/36596/cmap_HighResolution_482716801_482976001_4FGL_J1257.2+3646_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.98e-05', photon_flux_error='2.72e-08', dlogl='5.32e-03', energy_flux='2.11e-05', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-09-06 11:57:07.195614', photon_index_error2='0.64', photon_index2='2.09', ts='3.49', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.29e-08', energy_flux_error2='1.93e-05', EG='0.85', time_epoch_completed='1630954627.2', return_code='0', job_id='36596', GAL2='1.06', EG2='0.84', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='3.91e-08', ts2='3.51', photon_index='2.03' WHERE bin_id='939' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 36596: <4FGL_J1257.2+3646_daily_bin939> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin939 194.31 36.7706 482716801 482976001 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 :                                   755.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            951 sec.

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

