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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin501
RA = 194.31, Dec = 36.7706
tmin = 369187201, tmax = 369446401
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='34551', job_status='RUN', time_executed='2021-09-06 11:38:20.454700', time_epoch_executed='1630953500.45' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34551

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34551/ft1_4FGL_J1257.2+3646_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34551/ft2_4FGL_J1257.2+3646_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34551/ft1_4FGL_J1257.2+3646_daily_bin501.fits outfile=/scratch/kocevski/34551/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin501.fits ra=194.31 dec=36.7706 rad=12.0 tmin=369187201.0 tmax=369446401.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.50
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34551/ft1_filtered_4FGL_J1257.2+3646_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/34551/ft2_4FGL_J1257.2+3646_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/34551/ltcube_369187201_369446401_4FGL_J1257.2+3646_daily_bin501.fits outfile=/scratch/kocevski/34551/expmap_369187201_369446401_4FGL_J1257.2+3646_daily_bin501.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/34551/ltcube_369187201_369446401_4FGL_J1257.2+3646_daily_bin501.fits
.....................!
real 192.89
user 187.15
sys 5.10

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/34551/ft1_filtered_4FGL_J1257.2+3646_daily_bin501.fits scfile=/scratch/kocevski/34551/ft2_4FGL_J1257.2+3646_daily_bin501.fits outfile=/scratch/kocevski/34551/cmap_369187201_369446401_4FGL_J1257.2+3646_daily_bin501.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34551/ft1_filtered_4FGL_J1257.2+3646_daily_bin501.fits scfile=/scratch/kocevski/34551/ft2_4FGL_J1257.2+3646_daily_bin501.fits outfile=/scratch/kocevski/34551/cmap_HighResolution_369187201_369446401_4FGL_J1257.2+3646_daily_bin501.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.58
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7496       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.220       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4864       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3861       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6506       1.0000         .10000E-03   10000.    
    16 'norm      '    .11476E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .18348E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    5.8179       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.968       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.374       1.0000         .10000E-03   10000.    
    23 'Prefactor '    60.978       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .58448       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3805       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=   5611.641     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2879 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.900        .81114E-05** at limit **
   2  norm          4.1049        3.1302       -.26441E-06   -.10359E-03
   3  Prefactor     12.510        10.063       -.17558E-05   -.44822E-04
   4  Prefactor     3.7497        2.5027       -.11316E-06   -.49459E-04
   5  Prefactor     3.1546        2.3520       -.26516E-06   -.14489E-03
   6  Prefactor     26.220        11.711       -.61242E-06    .34785E-04
   7  Prefactor     .10000E-03    16.083        .49525E-05** at limit **
   8  Prefactor     .10000E-03    6.7659        .80276E-07** at limit **
   9  Prefactor     .10000E-03    26.390       -.36075E-05** at limit **
  10  Prefactor     7.4867        5.1489       -.47074E-06    .17271E-03
  11  norm          .10000E-03    .98963       -.53812E-07** at limit **
  12  Prefactor     12.595        54.930       -.15979E-03    .18276E-04
  13  Prefactor     7.3890        12.521       -.10045E-05    .17434E-03
  14  Prefactor     .10000E-03    4.9960       -.51709E-07** at limit **
  15  norm          3.6510        4.3553       -.13303E-05   -.70730E-04
  16  norm          .10003E-03    17.944        .25151E-05** at limit **
  17  norm          .10004E-03    1.8756       -.14550E-05** at limit **
  18  norm          5.8244        5.4039        .85936E-06    .14982E-02
  19  Prefactor     .10000E-03    .95961        .24766E-07** at limit **
  20  Prefactor     16.970        12.404       -.11463E-05    .38986E-03
  21  Prefactor     .10000E-03    27.023       -.14213E-05** at limit **
  22  Prefactor     12.375        10.321       -.64196E-06    .70809E-04
  23  Prefactor     60.980        58.321        .11568E-05    .33262E-04
  24  Normalizat    .58446        .16812        .85031E-05    .20224E-03
  25  Prefactor     1.3806        .21820        .29534E-05    .24623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 4.10486
  Prefactor  = 12.5097
  Prefactor  = 3.74968
  Prefactor  = 3.1546
  Prefactor  = 26.2204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.48672
  norm       = 0.0001
  Prefactor  = 12.5952
  Prefactor  = 7.38897
  Prefactor  = 0.0001
  norm       = 3.65096
  norm       = 0.000100035
  norm       = 0.000100043
  norm       = 5.82442
  Prefactor  = 0.0001
  Prefactor  = 16.97
  Prefactor  = 0.0001
  Prefactor  = 12.3747
  Prefactor  = 60.98
  Normalizat = 0.584458
  Prefactor  = 1.38057
 **********
 **   18 **HESSE 
 **********

 FCN=   5611.641     FROM HESSE     STATUS=OK           425 CALLS     3304 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1049        3.1344        .10665E-03   -1.5303    
   3  Prefactor     12.510        10.062        .11325E-03   -1.5000    
   4  Prefactor     3.7497        2.5058        .89699E-04   -1.5321    
   5  Prefactor     3.1546        2.3451        .94142E-04   -1.5353    
   6  Prefactor     26.220        11.705        .78233E-04   -1.4683    
   7  Prefactor     .10000E-03    16.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4867        5.1482        .13650E-03   -1.5161    
  11  norm          .10000E-03    .99207        .72762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.595        55.083        .11254E-03   -1.4998    
  13  Prefactor     7.3890        12.441        .14758E-03   -1.5164    
  14  Prefactor     .10000E-03    5.0040        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6510        4.3431        .16407E-03   -1.5326    
  16  norm          .10003E-03    18.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10004E-03    16.640        .17209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.8244        4.8166        .14375E-03   -1.5225    
  19  Prefactor     .10000E-03    .96293        .71530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.970        12.308        .97230E-04   -1.4884    
  21  Prefactor     .10000E-03    27.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.375        10.321        .11387E-03   -1.5004    
  23  Prefactor     60.980        58.409        .51383E-04   -1.4145    
  24  Normalizat    .58446        .19894        .28043E-03   -1.0865    
  25  Prefactor     1.3806        .26033        .25208E-03   -.80942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20296e-09
Minuit parameter uncertainties:
  1  0.000448854
  2  3.13457
  3  10.0635
  4  2.50583
  5  2.3452
  6  11.7062
  7  0.000123261
  8  1.11322e-05
  9  6.67254e-05
  10  5.14855
  11  3.48655e-06
  12  52.7611
  13  12.4454
  14  5.51268e-07
  15  4.34346
  16  0.00158885
  17  0.00169191
  18  4.81696
  19  2.546e-06
  20  12.3102
  21  6.83516e-05
  22  10.3225
  23  58.464
  24  0.199188
  25  0.260578
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.487e+00  5.149e+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.381e+00  2.606e-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:  5.845e-01  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.11
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.26e-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) = 5610.50122593
delta logL = 1.13944524326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5610.38531209
delta logL = 1.25535908239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.645       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3636       1.0000          .0000       10.000    
     3 'Normalizat'    .59886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3714       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=   5610.385     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.664        8.0992        .30700E-02   -.11247E-02
   2  Index         1.3642        .39387        .18482       -.11912E-03
   3  Normalizat    .59895        .16258        .62624E-01    .52453E-04
   4  Prefactor     1.3714        .21651        .57144E-01   -.47637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.664
  Index      = 1.3642
  Normalizat = 0.598945
  Prefactor  = 1.37144
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.385     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.664        7.4356        .61400E-03   -1.5055    
   2  Index         1.3642        .39333        .74995E-02   -.81418    
   3  Normalizat    .59895        .19385        .27708E-03   -1.0803    
   4  Prefactor     1.3714        .25892        .25268E-03   -.81207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91979e-10
Minuit parameter uncertainties:
  1  7.43627
  2  0.394192
  3  0.194071
  4  0.259167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34551': 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) = 5610.38530742
delta logL = 1.25536374965

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.066e+01  7.436e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.364e+00  3.942e-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.371e+00  2.592e-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:  5.989e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.60
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.36 +/- 0.39
Photon Flux (Free Index): 1.49e-08 +/- 1.23e-08
Energy Flux (Free Index): 7.42e-05 +/- 7.92e-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/34551/cmap_HighResolution_369187201_369446401_4FGL_J1257.2+3646_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='7.42e-05', photon_flux_error='1.95e-08', dlogl='1.26e+00', energy_flux='1.84e-05', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-09-06 11:48:39.541140', photon_index_error2='0.39', photon_index2='1.36', ts='9.11', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', energy_flux_error2='7.92e-05', EG='0.58', time_epoch_completed='1630954119.54', return_code='0', job_id='34551', GAL2='1.37', EG2='0.60', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='1.23e-08', ts2='11.60', photon_index='2.03' WHERE bin_id='501' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:48:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 34551: <4FGL_J1257.2+3646_daily_bin501> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin501 194.31 36.7706 369187201 369446401 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 :                                   614.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

