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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1088
RA = 194.31, Dec = 36.7706
tmin = 521337601, tmax = 521596801
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='38556', job_status='RUN', time_executed='2021-09-06 11:46:04.845172', time_epoch_executed='1630953964.85' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38556/ft1_4FGL_J1257.2+3646_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38556/ft2_4FGL_J1257.2+3646_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38556/ft1_4FGL_J1257.2+3646_daily_bin1088.fits outfile=/scratch/kocevski/38556/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1088.fits ra=194.31 dec=36.7706 rad=12.0 tmin=521337601.0 tmax=521596801.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 5.25
user 4.85
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38556/ft1_filtered_4FGL_J1257.2+3646_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/38556/ft2_4FGL_J1257.2+3646_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/38556/ltcube_521337601_521596801_4FGL_J1257.2+3646_daily_bin1088.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/38556/ft2_4FGL_J1257.2+3646_daily_bin1088.fits
.....................!
real 11.68
user 11.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38556/ft1_filtered_4FGL_J1257.2+3646_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/38556/ft2_4FGL_J1257.2+3646_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/38556/ltcube_521337601_521596801_4FGL_J1257.2+3646_daily_bin1088.fits outfile=/scratch/kocevski/38556/expmap_521337601_521596801_4FGL_J1257.2+3646_daily_bin1088.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/38556/ltcube_521337601_521596801_4FGL_J1257.2+3646_daily_bin1088.fits
.....................!
real 192.08
user 186.44
sys 4.49

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/38556/ft1_filtered_4FGL_J1257.2+3646_daily_bin1088.fits scfile=/scratch/kocevski/38556/ft2_4FGL_J1257.2+3646_daily_bin1088.fits outfile=/scratch/kocevski/38556/cmap_521337601_521596801_4FGL_J1257.2+3646_daily_bin1088.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 1.08
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38556/ft1_filtered_4FGL_J1257.2+3646_daily_bin1088.fits scfile=/scratch/kocevski/38556/ft2_4FGL_J1257.2+3646_daily_bin1088.fits outfile=/scratch/kocevski/38556/cmap_HighResolution_521337601_521596801_4FGL_J1257.2+3646_daily_bin1088.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 1.17
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.420       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4586       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.986       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92153E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6219       1.0000         .10000E-03   10000.    
    11 'norm      '    7.2054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8551       1.0000         .10000E-03   10000.    
    15 'norm      '    18.315       1.0000         .10000E-03   10000.    
    16 'norm      '    20.790       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7823       1.0000         .10000E-03   10000.    
    18 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11120E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.920       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.122       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4341       1.0000         .10000E-03   10000.    
    23 'Prefactor '    88.736       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81324       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1760       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=   6372.419     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2881 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.425        31.016        .24384E-06    .15425E-04
   2  norm          3.7217        2.4754        .21305E-06   -.15303E-03
   3  Prefactor     1.3135        5.2078        .14116E-05   -.14020E-03
   4  Prefactor     1.4587        1.3949       -.59382E-07    .45384E-04
   5  Prefactor     .10000E-03    .87587       -.52089E-07** at limit **
   6  Prefactor     22.981        10.770       -.30609E-06   -.83320E-04
   7  Prefactor     16.680        20.755        .13437E-06    .61108E-06
   8  Prefactor     .10000E-03    6.4015       -.16785E-06** at limit **
   9  Prefactor     .10000E-03    154.98       -.41656E-05** at limit **
  10  Prefactor     5.6225        5.1892        .51968E-08    .79988E-04
  11  norm          7.1862        5.6746        .46475E-06    .33801E-03
  12  Prefactor     .10000E-03    10.438       -.26956E-07** at limit **
  13  Prefactor     .10000E-03    35.942        .34200E-06** at limit **
  14  Prefactor     7.8601        13.401        .23467E-06    .77964E-04
  15  norm          18.319        7.0959        .20317E-06    .48878E-03
  16  norm          20.792        13.311        .13953E-07    .18330E-05
  17  norm          6.7799        4.7200        .16671E-06    .51132E-03
  18  norm          .10000E-03    5.2963       -.19694E-06** at limit **
  19  Prefactor     .10000E-03    3.0079       -.18851E-05** at limit **
  20  Prefactor     16.943        16.966        .10250E-05    .49459E-03
  21  Prefactor     26.129        57.021        .22703E-05    .11070E-03
  22  Prefactor     2.4382        21.759        .80877E-06    .11021E-04
  23  Prefactor     88.765        66.098        .28801E-05    .11095E-03
  24  Normalizat    .81304        .16984       -.81117E-06    .29582E-03
  25  Prefactor     1.1761        .20597        .26939E-06    .15860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4254
  norm       = 3.72165
  Prefactor  = 1.31349
  Prefactor  = 1.45866
  Prefactor  = 0.0001
  Prefactor  = 22.9813
  Prefactor  = 16.68
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.62255
  norm       = 7.18619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.86008
  norm       = 18.3189
  norm       = 20.7922
  norm       = 6.77988
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 16.9433
  Prefactor  = 26.1287
  Prefactor  = 2.43817
  Prefactor  = 88.7646
  Normalizat = 0.813035
  Prefactor  = 1.17606
 **********
 **   18 **HESSE 
 **********

 FCN=   6372.419     FROM HESSE     STATUS=OK           431 CALLS     3312 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.425        31.053        .68305E-04   -1.4534    
   2  norm          3.7217        2.4645        .48906E-03   -1.5322    
   3  Prefactor     1.3135        5.1989        .34829E-03   -1.5479    
   4  Prefactor     1.4587        1.4161        .88524E-04   -1.5466    
   5  Prefactor     .10000E-03    .88556        .72891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.981        10.780        .83548E-04   -1.4749    
   7  Prefactor     16.680        20.753        .98077E-04   -1.4891    
   8  Prefactor     .10000E-03    6.4070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    157.15        .20815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6225        5.1830        .16644E-03   -1.5234    
  11  norm          7.1862        5.6929        .14943E-03   -1.5172    
  12  Prefactor     .10000E-03    10.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8601        13.379        .14307E-03   -1.5147    
  15  norm          18.319        7.1059        .93588E-04   -1.4852    
  16  norm          20.792        13.314        .87844E-04   -1.4796    
  17  norm          6.7799        4.6993        .13028E-03   -1.5187    
  18  norm          .10000E-03    5.3218        .17884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0735        .23540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.943        17.128        .97369E-04   -1.4884    
  21  Prefactor     26.129        57.289        .78380E-04   -1.4685    
  22  Prefactor     2.4382        21.659        .26228E-03   -1.5396    
  23  Prefactor     88.765        66.567        .21327E-03   -1.3821    
  24  Normalizat    .81304        .19813        .25741E-03   -.99587    
  25  Prefactor     1.1761        .24174        .27753E-03   -.87071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23583e-09
Minuit parameter uncertainties:
  1  31.0677
  2  2.46452
  3  5.20069
  4  1.41611
  5  1.25041e-06
  6  10.7812
  7  20.7618
  8  6.3713e-06
  9  0.00117359
  10  5.18343
  11  5.69331
  12  2.06875e-07
  13  0.000117666
  14  13.3842
  15  7.10624
  16  13.3156
  17  4.69957
  18  1.80837e-07
  19  0.000267908
  20  17.1328
  21  57.41
  22  14.5406
  23  66.6229
  24  0.198304
  25  0.241969
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.623e+00  5.183e+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.176e+00  2.420e-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.130e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.27e-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) = 6372.35076025
delta logL = 0.0685333489082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6372.34865757
delta logL = 0.0706360295953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9387       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6768       1.0000          .0000       10.000    
     3 'Normalizat'    .82301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1704       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=   6372.349     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9390        5.8306        .16478E-03   -.11205E-02
   2  Index         1.6769        .84699        .10860E-01   -.18099E-03
   3  Normalizat    .82301        .18834        .25606E-03    .18550E-03
   4  Prefactor     1.1704        .23979        .27816E-03    .18650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.93901
  Index      = 1.67687
  Normalizat = 0.823008
  Prefactor  = 1.1704
 **********
 **   18 **HESSE 
 **********

 FCN=   6372.349     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9390        5.8569        .65912E-05   -1.5221    
   2  Index         1.6769        .85043        .43438E-03   -.72699    
   3  Normalizat    .82301        .18844        .10242E-04   -.99221    
   4  Prefactor     1.1704        .23999        .55631E-04   -.87247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86632e-09
Minuit parameter uncertainties:
  1  5.85746
  2  0.857954
  3  0.188587
  4  0.240212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38556': 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) = 6372.34865756
delta logL = 0.0706360359973

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.939e+00  5.857e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.677e+00  8.580e-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.170e+00  2.402e-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.230e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.68 +/- 0.86
Photon Flux (Free Index): 1.21e-08 +/- 2.12e-08
Energy Flux (Free Index): 2.13e-05 +/- 3.47e-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/38556/cmap_HighResolution_521337601_521596801_4FGL_J1257.2+3646_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='2.13e-05', photon_flux_error='1.97e-08', dlogl='7.06e-02', energy_flux='1.38e-05', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-09-06 11:57:24.542989', photon_index_error2='0.86', photon_index2='1.68', ts='4.20', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.47e-05', EG='0.81', time_epoch_completed='1630954644.54', return_code='0', job_id='38556', GAL2='1.17', EG2='0.82', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='2.12e-08', ts2='4.35', photon_index='2.03' WHERE bin_id='1088' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:57:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 38556: <4FGL_J1257.2+3646_daily_bin1088> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1088> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:45:44 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:45:46 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:45:46 2021
Terminated at Mon Sep  6 11:57:25 2021
Results reported at Mon Sep  6 11:57:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1088 194.31 36.7706 521337601 521596801 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 :                                   659.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

