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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin456
RA = 194.31, Dec = 36.7706
tmin = 357523201, tmax = 357782401
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='34484', job_status='RUN', time_executed='2021-09-06 11:39:36.311700', time_epoch_executed='1630953576.31' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34484/ft1_4FGL_J1257.2+3646_daily_bin456.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34484/ft2_4FGL_J1257.2+3646_daily_bin456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34484/ft1_4FGL_J1257.2+3646_daily_bin456.fits outfile=/scratch/kocevski/34484/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin456.fits ra=194.31 dec=36.7706 rad=12.0 tmin=357523201.0 tmax=357782401.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.51
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34484/ft1_filtered_4FGL_J1257.2+3646_daily_bin456.fits" evtable="EVENTS" scfile=/scratch/kocevski/34484/ft2_4FGL_J1257.2+3646_daily_bin456.fits sctable="SC_DATA" outfile=/scratch/kocevski/34484/ltcube_357523201_357782401_4FGL_J1257.2+3646_daily_bin456.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/34484/ft2_4FGL_J1257.2+3646_daily_bin456.fits
.....................!
real 11.96
user 11.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34484/ft1_filtered_4FGL_J1257.2+3646_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/34484/ft2_4FGL_J1257.2+3646_daily_bin456.fits sctable="SC_DATA" expcube=/scratch/kocevski/34484/ltcube_357523201_357782401_4FGL_J1257.2+3646_daily_bin456.fits outfile=/scratch/kocevski/34484/expmap_357523201_357782401_4FGL_J1257.2+3646_daily_bin456.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/34484/ltcube_357523201_357782401_4FGL_J1257.2+3646_daily_bin456.fits
.....................!
real 189.65
user 185.06
sys 4.19

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/34484/ft1_filtered_4FGL_J1257.2+3646_daily_bin456.fits scfile=/scratch/kocevski/34484/ft2_4FGL_J1257.2+3646_daily_bin456.fits outfile=/scratch/kocevski/34484/cmap_357523201_357782401_4FGL_J1257.2+3646_daily_bin456.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34484/ft1_filtered_4FGL_J1257.2+3646_daily_bin456.fits scfile=/scratch/kocevski/34484/ft2_4FGL_J1257.2+3646_daily_bin456.fits outfile=/scratch/kocevski/34484/cmap_HighResolution_357523201_357782401_4FGL_J1257.2+3646_daily_bin456.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.6549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9697       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6512       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.972       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.106       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.573       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.179       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8236       1.0000         .10000E-03   10000.    
    18 'norm      '    .51488E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5611       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9050       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7890       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1164       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96476       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6168.800     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     2043 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.181        .13468E-05** at limit **
   2  norm          7.6549        3.3707        .60710E-07    .13779E-04
   3  Prefactor     .10000E-03    1.8741       -.71996E-06** at limit **
   4  Prefactor     1.9696        1.6952       -.32631E-07   -.58112E-04
   5  Prefactor     1.1522        1.9486        .25712E-07   -.37500E-04
   6  Prefactor     8.1786        1.2927       -.12653E-05   -.47998E-03
   7  Prefactor     3.6475        1.0327       -.19113E-06    .16354E-03
   8  Prefactor     .10000E-03    28.440        .32043E-05** at limit **
   9  Prefactor     24.999        3.7715        .15016E-05   -.43102E-02
  10  Prefactor     23.105        8.9978       -.83033E-05   -.12497E-02
  11  norm          .10000E-03    1.9046       -.18472E-07** at limit **
  12  Prefactor     .10059E-03    108.55        .21348E-05** at limit **
  13  Prefactor     .10000E-03    7.6116        .99625E-06** at limit **
  14  Prefactor     27.575        1.9126       -.13138E-05   -.16439E-03
  15  norm          .10000E-03    2.9221        .62021E-06** at limit **
  16  norm          16.179        1.2599       -.68690E-06    .10363E-02
  17  norm          3.7676        6.1690       -.26055E-05    .49026E-03
  18  norm          .15291        138.02        .29342E-05    .26686E-04
  19  Prefactor     8.5626        4.1873       -.20791E-07   -.52784E-03
  20  Prefactor     .10000E-03    3.6585       -.48777E-07** at limit **
  21  Prefactor     .10219E-03    46.562        .49509E-05** at limit **
  22  Prefactor     4.9075        1.4037       -.18040E-05    .51741E-03
  23  Prefactor     4.7807        1.8630       -.17088E-05    .10047E-02
  24  Normalizat    1.1169        .21505        .67173E-05   -.10185E-03
  25  Prefactor     .96422        .25750       -.54995E-05   -.23960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 7.65485
  Prefactor  = 0.0001
  Prefactor  = 1.96963
  Prefactor  = 1.15215
  Prefactor  = 8.17864
  Prefactor  = 3.64748
  Prefactor  = 0.000100001
  Prefactor  = 24.9993
  Prefactor  = 23.1048
  norm       = 0.0001
  Prefactor  = 0.000100589
  Prefactor  = 0.0001
  Prefactor  = 27.5754
  norm       = 0.0001
  norm       = 16.1787
  norm       = 3.76764
  norm       = 0.152913
  Prefactor  = 8.56261
  Prefactor  = 0.0001
  Prefactor  = 0.000102188
  Prefactor  = 4.9075
  Prefactor  = 4.78068
  Normalizat = 1.11694
  Prefactor  = 0.964219
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.800     FROM HESSE     STATUS=OK           487 CALLS     2530 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.144        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.6549        3.3631        .36235E-02   -1.5155    
   3  Prefactor     .10000E-03    1.8747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9696        1.6904        .73865E-02   -1.5427    
   5  Prefactor     1.1522        2.0098        .10772E-01   -1.5493    
   6  Prefactor     8.1786        7.7099        .35046E-02   -1.5136    
   7  Prefactor     3.6475        26.086        .52852E-02   -1.5326    
   8  Prefactor     .10000E-03    28.028        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.999        50.438        .20040E-02   -1.4708    
  10  Prefactor     23.105        9.7295        .20833E-02   -1.4746    
  11  norm          .10000E-03    1.8899        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10059E-03    139.82        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.575        20.464        .19074E-02   -1.4657    
  15  norm          .10000E-03    2.9006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.179        15.726        .24893E-02   -1.4903    
  17  norm          3.7676        4.4493        .51601E-02   -1.5320    
  18  norm          .15291        8.4070        .58112E-01   -1.5630    
  19  Prefactor     8.5626        4.2076        .34251E-02   -1.5123    
  20  Prefactor     .10000E-03    3.6576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10219E-03    168.23        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9075        11.724        .45403E-02   -1.5265    
  23  Prefactor     4.7807        315.85        .45961E-02   -1.5271    
  24  Normalizat    1.1169        .18190        .55152E-01   -.89210    
  25  Prefactor     .96422        .21591        .71045E-01   -.93932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33321e-07
Minuit parameter uncertainties:
  1  0.000187848
  2  3.36318
  3  3.43951e-05
  4  1.69044
  5  2.00996
  6  7.71087
  7  19.5205
  8  0.00025437
  9  50.5246
  10  9.73013
  11  4.32558e-06
  12  0.0181994
  13  9.41709e-05
  14  20.4696
  15  3.38324e-05
  16  15.7296
  17  4.44965
  18  2.26722
  19  4.20774
  20  1.93238e-06
  21  0.038479
  22  11.7296
  23  78.1504
  24  0.182005
  25  0.216106
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.642e-01  2.161e-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.117e+00  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.78
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 8.77e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 5.67e-05 +/- 2.39e-05

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) = 6168.38915347
delta logL = 0.410659975557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6168.34708391
delta logL = 0.452729544265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.004       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6692       1.0000          .0000       10.000    
     3 'Normalizat'    1.1521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94407       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=   6168.347     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      217 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.021        254.16        .19639E-02   -.60863E-04
   2  Index         1.6702        5.7087        .16861        .29448E-04
   3  Normalizat    1.1525        .33612        .54472E-01   -.66137E-04
   4  Prefactor     .94388        .18979        .71798E-01   -.76871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0211
  Index      = 1.67017
  Normalizat = 1.15245
  Prefactor  = 0.943884
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.347     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.021        11.627        .78557E-04   -1.4687    
   2  Index         1.6702        .37167        .60861E-02   -.72879    
   3  Normalizat    1.1525        .21327        .24086E-03   -.88085    
   4  Prefactor     .94388        .25596        .31766E-03   -.94624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67758e-11
Minuit parameter uncertainties:
  1  11.6282
  2  0.372284
  3  0.213433
  4  0.256285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34484': 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) = 6168.34707578
delta logL = 0.452737672971

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.439e-01  2.563e-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.152e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.79
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.67 +/- 0.37
Photon Flux (Free Index): 5.24e-08 +/- 3.89e-08
Energy Flux (Free Index): 9.42e-05 +/- 7.13e-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/34484/cmap_HighResolution_357523201_357782401_4FGL_J1257.2+3646_daily_bin456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.77e-08', energy_flux2='9.42e-05', photon_flux_error='3.69e-08', dlogl='4.53e-01', energy_flux='5.67e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-06 11:49:27.161588', photon_index_error2='0.37', photon_index2='1.67', ts='21.78', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='7.13e-05', EG='1.12', time_epoch_completed='1630954167.16', return_code='0', job_id='34484', GAL2='0.94', EG2='1.15', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='3.89e-08', ts2='22.79', photon_index='2.03' WHERE bin_id='456' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 34484: <4FGL_J1257.2+3646_daily_bin456> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin456 194.31 36.7706 357523201 357782401 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 :                                   587.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

