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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin363
RA = 194.31, Dec = 36.7706
tmin = 333417601, tmax = 333676801
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='32965', job_status='RUN', time_executed='2021-09-06 11:34:25.489404', time_epoch_executed='1630953265.49' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32965

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32965/ft1_4FGL_J1257.2+3646_daily_bin363.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32965/ft2_4FGL_J1257.2+3646_daily_bin363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32965/ft1_4FGL_J1257.2+3646_daily_bin363.fits outfile=/scratch/kocevski/32965/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin363.fits ra=194.31 dec=36.7706 rad=12.0 tmin=333417601.0 tmax=333676801.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.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32965/ft1_filtered_4FGL_J1257.2+3646_daily_bin363.fits" evtable="EVENTS" scfile=/scratch/kocevski/32965/ft2_4FGL_J1257.2+3646_daily_bin363.fits sctable="SC_DATA" outfile=/scratch/kocevski/32965/ltcube_333417601_333676801_4FGL_J1257.2+3646_daily_bin363.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/32965/ft2_4FGL_J1257.2+3646_daily_bin363.fits
.....................!
real 11.82
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32965/ft1_filtered_4FGL_J1257.2+3646_daily_bin363.fits evtable="EVENTS" scfile=/scratch/kocevski/32965/ft2_4FGL_J1257.2+3646_daily_bin363.fits sctable="SC_DATA" expcube=/scratch/kocevski/32965/ltcube_333417601_333676801_4FGL_J1257.2+3646_daily_bin363.fits outfile=/scratch/kocevski/32965/expmap_333417601_333676801_4FGL_J1257.2+3646_daily_bin363.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/32965/ltcube_333417601_333676801_4FGL_J1257.2+3646_daily_bin363.fits
.....................!
real 189.55
user 185.07
sys 4.11

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/32965/ft1_filtered_4FGL_J1257.2+3646_daily_bin363.fits scfile=/scratch/kocevski/32965/ft2_4FGL_J1257.2+3646_daily_bin363.fits outfile=/scratch/kocevski/32965/cmap_333417601_333676801_4FGL_J1257.2+3646_daily_bin363.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.56
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32965/ft1_filtered_4FGL_J1257.2+3646_daily_bin363.fits scfile=/scratch/kocevski/32965/ft2_4FGL_J1257.2+3646_daily_bin363.fits outfile=/scratch/kocevski/32965/cmap_HighResolution_333417601_333676801_4FGL_J1257.2+3646_daily_bin363.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/32965/ft1_filtered_4FGL_J1257.2+3646_daily_bin363.fits evtable="EVENTS" scfile=/scratch/kocevski/32965/ft2_4FGL_J1257.2+3646_daily_bin363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32965/Model_4FGL_J1257.2+3646_daily_bin363.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/32965/ft1_filtered_4FGL_J1257.2+3646_daily_bin363.fits.....................!
real 51.40
user 50.06
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4838       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5561       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6988       1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.659       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1515       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7343       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4289       1.0000         .10000E-03   10000.    
    17 'norm      '    5.9863       1.0000         .10000E-03   10000.    
    18 'norm      '    13.215       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2657       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.692       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4615       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .49721       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=   6038.110     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     2350 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    3.4967       -.64028E-05** at limit **
   2  norm          .10000E-03    1.7455        .10483E-05** at limit **
   3  Prefactor     3.4837        1.0109        .29074E-07    .17932E-03
   4  Prefactor     5.5562        2.4400        .24510E-05    .74489E-02
   5  Prefactor     .10000E-03    1.1108       -.33438E-06** at limit **
   6  Prefactor     11.597        1.0025        .47719E-07    .38919E-03
   7  Prefactor     .10000E-03    2.8667       -.28826E-05** at limit **
   8  Prefactor     7.6981        1.0062       -.98318E-07    .26321E-03
   9  Prefactor     64.659        1.0005        .11196E-07   -.32749E-03
  10  Prefactor     4.1512        1.0081       -.20005E-07   -.17808E-03
  11  norm          1.7343        2.8263       -.41843E-06   -.12608E-03
  12  Prefactor     .10104E-03    16.403       -.52701E-05** at limit **
  13  Prefactor     .10005E-03    4.4429        .60463E-05** at limit **
  14  Prefactor     .10000E-03    3.0003        .55012E-05** at limit **
  15  norm          .10001E-03    2.5655       -.58604E-05** at limit **
  16  norm          2.4287        1.0232        .12568E-07   -.20293E-04
  17  norm          5.9771        1.2389       -.47216E-06   -.12688E-02
  18  norm          13.229        1.2941        .39045E-06   -.31448E-02
  19  Prefactor     4.2648        2.3585       -.80842E-06   -.59105E-02
  20  Prefactor     .10000E-03    4.1980        .22119E-05** at limit **
  21  Prefactor     59.692        1.0004       -.48432E-08   -.24729E-03
  22  Prefactor     .10001E-03    10.215        .63644E-05** at limit **
  23  Prefactor     .10091E-03    14.782        .22971E-05** at limit **
  24  Normalizat    1.4617        .19604       -.42516E-06   -.94227E-04
  25  Prefactor     .49698        .23284       -.17500E-05   -.59721E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100066
  norm       = 0.0001
  Prefactor  = 3.48367
  Prefactor  = 5.5562
  Prefactor  = 0.0001
  Prefactor  = 11.597
  Prefactor  = 0.000100003
  Prefactor  = 7.69806
  Prefactor  = 64.6594
  Prefactor  = 4.15118
  norm       = 1.73432
  Prefactor  = 0.000101036
  Prefactor  = 0.000100053
  Prefactor  = 0.000100003
  norm       = 0.000100008
  norm       = 2.42872
  norm       = 5.97707
  norm       = 13.2292
  Prefactor  = 4.26483
  Prefactor  = 0.000100004
  Prefactor  = 59.6917
  Prefactor  = 0.000100006
  Prefactor  = 0.000100905
  Normalizat = 1.46169
  Prefactor  = 0.496978
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.110     FROM HESSE     STATUS=OK           481 CALLS     2831 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    8.2371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4837        4.3497        .54159E-02   -1.5335    
   4  Prefactor     5.5562        2.8481        .42611E-02   -1.5236    
   5  Prefactor     .10000E-03    1.0978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.597        10.330        .29409E-02   -1.5027    
   7  Prefactor     .10000E-03    7.7255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6981        16.988        .36131E-02   -1.5153    
   9  Prefactor     64.659        57.315        .12477E-02   -1.4098    
  10  Prefactor     4.1512        4.5466        .49455E-02   -1.5300    
  11  norm          1.7343        2.8830        .79676E-02   -1.5445    
  12  Prefactor     .10104E-03    31.668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    7.0638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    3.6325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4287        18.906        .65646E-02   -1.5396    
  17  norm          5.9771        6.7737        .41029E-02   -1.5219    
  18  norm          13.229        11.966        .27547E-02   -1.4980    
  19  Prefactor     4.2648        3.3344        .48769E-02   -1.5295    
  20  Prefactor     .10000E-03    4.3819        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     59.692        51.261        .12982E-02   -1.4161    
  22  Prefactor     .10001E-03    10.867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10091E-03    29.098        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4617        .17636        .45704E-01   -.78861    
  25  Prefactor     .49698        .21119        .88682E-01   -1.1212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94566e-07
Minuit parameter uncertainties:
  1  0.0014737
  2  8.31567e-06
  3  4.3501
  4  2.8482
  5  3.8207e-06
  6  10.332
  7  0.000303822
  8  16.9986
  9  57.3641
  10  4.54697
  11  2.8832
  12  0.0114595
  13  0.00122885
  14  0.000223027
  15  0.000336531
  16  13.5581
  17  6.77461
  18  11.9678
  19  3.33454
  20  0.000260157
  21  51.2991
  22  0.000503723
  23  0.0102696
  24  0.176436
  25  0.211529
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.151e+00  4.547e+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:  4.970e-01  2.115e-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.462e+00  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/32965/likelihoodResults_333417601_333676801_4FGL_J1257.2+3646_daily_bin363.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) = 6038.10623818
delta logL = 0.00393010657626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6038.10404064
delta logL = 0.006127644956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8002       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1159       1.0000          .0000       10.000    
     3 'Normalizat'    1.4598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49840       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=   6038.104     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      252 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7998        5.6139        .15685E-03    .12250E-04
   2  Index         2.1161        .85538        .73990E-02    .23434E-03
   3  Normalizat    1.4599        .19559        .20213E-03   -.27490E-03
   4  Prefactor     .49829        .23304        .39248E-03   -.16751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.79979
  Index      = 2.11608
  Normalizat = 1.45988
  Prefactor  = 0.498287
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.104     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7998        5.3341        .62738E-05   -1.5318    
   2  Index         2.1161        .81336        .14798E-02   -.61479    
   3  Normalizat    1.4599        .19556        .40425E-04   -.78912    
   4  Prefactor     .49829        .23306        .15699E-04   -1.1206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74189e-11
Minuit parameter uncertainties:
  1  5.33474
  2  0.818836
  3  0.195661
  4  0.233504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32965': 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) = 6038.10404038
delta logL = 0.00612790525884

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.800e+00  5.335e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.116e+00  8.188e-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:  4.983e-01  2.335e-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.460e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.12 +/- 0.82
Photon Flux (Free Index): 1.72e-08 +/- 2.26e-08
Energy Flux (Free Index): 9.14e-06 +/- 1.31e-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/32965/cmap_HighResolution_333417601_333676801_4FGL_J1257.2+3646_daily_bin363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='9.14e-06', photon_flux_error='1.72e-08', dlogl='6.13e-03', energy_flux='1.02e-05', photon_flux2='1.72e-08', job_status='DONE', time_completed='2021-09-06 11:45:49.106187', photon_index_error2='0.82', photon_index2='2.12', ts='1.50', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='6.19e-08', energy_flux_error2='1.31e-05', EG='1.46', time_epoch_completed='1630953949.11', return_code='0', job_id='32965', GAL2='0.50', EG2='1.46', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='2.26e-08', ts2='1.51', photon_index='2.03' WHERE bin_id='363' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 32965: <4FGL_J1257.2+3646_daily_bin363> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin363 194.31 36.7706 333417601 333676801 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 :                                   682.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

