/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 170 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 = 7486
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin70
RA = 194.31, Dec = 36.7706
tmin = 257472001, tmax = 257731201
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='31757', job_status='RUN', time_executed='2021-09-06 11:28:37.478459', time_epoch_executed='1630952917.48' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31757/ft1_4FGL_J1257.2+3646_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31757/ft2_4FGL_J1257.2+3646_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31757/ft1_4FGL_J1257.2+3646_daily_bin70.fits outfile=/scratch/kocevski/31757/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin70.fits ra=194.31 dec=36.7706 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.03
user 1.80
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31757/ft2_4FGL_J1257.2+3646_daily_bin70.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/31757/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin70.fits evtable="EVENTS" outfile="/scratch/kocevski/31757/ft1_filtered_4FGL_J1257.2+3646_daily_bin70.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/31757/ft1_filtered_4FGL_J1257.2+3646_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/31757/ft2_4FGL_J1257.2+3646_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/31757/ltcube_257472001_257731201_4FGL_J1257.2+3646_daily_bin70.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/31757/ft2_4FGL_J1257.2+3646_daily_bin70.fits
.....................!
real 13.12
user 12.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31757/ft1_filtered_4FGL_J1257.2+3646_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/31757/ft2_4FGL_J1257.2+3646_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/31757/ltcube_257472001_257731201_4FGL_J1257.2+3646_daily_bin70.fits outfile=/scratch/kocevski/31757/expmap_257472001_257731201_4FGL_J1257.2+3646_daily_bin70.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/31757/ltcube_257472001_257731201_4FGL_J1257.2+3646_daily_bin70.fits
.....................!
real 191.33
user 185.97
sys 4.74

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/31757/ft1_filtered_4FGL_J1257.2+3646_daily_bin70.fits scfile=/scratch/kocevski/31757/ft2_4FGL_J1257.2+3646_daily_bin70.fits outfile=/scratch/kocevski/31757/cmap_257472001_257731201_4FGL_J1257.2+3646_daily_bin70.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31757/ft1_filtered_4FGL_J1257.2+3646_daily_bin70.fits scfile=/scratch/kocevski/31757/ft2_4FGL_J1257.2+3646_daily_bin70.fits outfile=/scratch/kocevski/31757/cmap_HighResolution_257472001_257731201_4FGL_J1257.2+3646_daily_bin70.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1407       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4471       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11835E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.448       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6986       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.704       1.0000         .10000E-03   10000.    
    15 'norm      '    14.598       1.0000         .10000E-03   10000.    
    16 'norm      '    12.693       1.0000         .10000E-03   10000.    
    17 'norm      '    6.8171       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    61.796       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97477       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86235       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=   5438.445     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2970 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1374        24.742       -.12510E-05    .19512E-04
   2  norm          .10000E-03    1.2324       -.27156E-07** at limit **
   3  Prefactor     .10000E-03    2.6816       -.70280E-07** at limit **
   4  Prefactor     3.4467        2.1718        .75198E-07    .24483E-03
   5  Prefactor     5.6051        2.4696        .60791E-07    .38535E-03
   6  Prefactor     .10184E-03    4.9974       -.12012E-05** at limit **
   7  Prefactor     40.450        34.180        .93554E-06   -.79481E-05
   8  Prefactor     17.335        18.964        .46858E-07   -.46792E-04
   9  Prefactor     .10000E-03    34.375       -.28375E-04** at limit **
  10  Prefactor     2.6988        3.6221        .95463E-06   -.12752E-03
  11  norm          3.4170        4.8910        .44404E-07   -.12716E-02
  12  Prefactor     .10000E-03    17.967       -.14628E-05** at limit **
  13  Prefactor     .10001E-03    53.668        .37376E-04** at limit **
  14  Prefactor     12.704        17.854       -.22805E-06   -.15512E-03
  15  norm          14.596        7.1161       -.14553E-06   -.37669E-03
  16  norm          12.694        11.956        .23678E-07    .45720E-05
  17  norm          6.8172        3.8783        .20035E-05   -.74500E-03
  18  norm          .10000E-03    2.6130       -.64532E-06** at limit **
  19  Prefactor     .10000E-03    2.8339        .27324E-06** at limit **
  20  Prefactor     .10000E-03    6.8636       -.14646E-06** at limit **
  21  Prefactor     .10000E-03    25.869        .11591E-04** at limit **
  22  Prefactor     .10000E-03    7.4744       -.11621E-06** at limit **
  23  Prefactor     61.806        63.244        .92516E-05   -.17755E-04
  24  Normalizat    .97450        .17180       -.21788E-05   -.15415E-04
  25  Prefactor     .86266        .20959        .45505E-06   -.14647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13735
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44666
  Prefactor  = 5.60507
  Prefactor  = 0.000101841
  Prefactor  = 40.4504
  Prefactor  = 17.3351
  Prefactor  = 0.0001
  Prefactor  = 2.69884
  norm       = 3.41698
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 12.7036
  norm       = 14.5956
  norm       = 12.6938
  norm       = 6.81723
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.8055
  Normalizat = 0.974502
  Prefactor  = 0.862658
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.445     FROM HESSE     STATUS=OK           431 CALLS     3401 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1374        171.74        .69991E-02   -1.5495    
   2  norm          .10000E-03    1.2537        .79753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6886        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4467        2.1643        .82658E-04   -1.5337    
   5  Prefactor     5.6051        2.4549        .73549E-04   -1.5234    
   6  Prefactor     .10184E-03    91.543        .31501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.450        34.189        .63027E-04   -1.4435    
   8  Prefactor     17.335        18.961        .96194E-04   -1.4875    
   9  Prefactor     .10000E-03    34.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6988        3.6064        .15546E-03   -1.5379    
  11  norm          3.4170        4.8575        .18256E-03   -1.5338    
  12  Prefactor     .10000E-03    17.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    53.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.704        17.863        .11239E-03   -1.4995    
  15  norm          14.596        7.1033        .10483E-03   -1.4944    
  16  norm          12.694        11.958        .11243E-03   -1.4995    
  17  norm          6.8172        3.8630        .10265E-03   -1.5186    
  18  norm          .10000E-03    2.6192        .11637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.9445        .24153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     61.806        63.469        .51044E-04   -1.4134    
  24  Normalizat    .97450        .20771        .22020E-03   -.93890    
  25  Prefactor     .86266        .25265        .29211E-03   -.97458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97961e-08
Minuit parameter uncertainties:
  1  28.0326
  2  2.15765e-06
  3  5.45517e-06
  4  2.16439
  5  2.4549
  6  0.0260019
  7  34.2053
  8  18.9671
  9  9.69565e-07
  10  3.60672
  11  4.85805
  12  7.63712e-06
  13  0.00103987
  14  17.8703
  15  7.10371
  16  11.9604
  17  3.86311
  18  3.79135e-05
  19  3.74036e-05
  20  3.42346e-05
  21  2.15058e-05
  22  8.00598e-07
  23  63.539
  24  0.207883
  25  0.252992
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.699e+00  3.607e+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:  8.627e-01  2.530e-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:  9.745e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.02e-08 +/- 1.37e-08
Energy Flux (Fixed Index): 6.62e-06 +/- 8.85e-06

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

Saving results to:
/scratch/kocevski/31757/likelihoodResults_257472001_257731201_4FGL_J1257.2+3646_daily_bin70.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) = 5438.38855754
delta logL = 0.0569232174066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5438.38697438
delta logL = 0.0585063839626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2564       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6942       1.0000          .0000       10.000    
     3 'Normalizat'    .97886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85932       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=   5438.387     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      262 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2562        4.3087        .16844E-03    .15216E-02
   2  Index         1.6942        .89889        .12674E-01    .19672E-03
   3  Normalizat    .97887        .19867        .21978E-03   -.10656E-03
   4  Prefactor     .85931        .25018        .29261E-03   -.10766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.25623
  Index      = 1.69418
  Normalizat = 0.978869
  Prefactor  = 0.85931
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.387     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2562        4.2775        .33688E-04   -1.5347    
   2  Index         1.6942        .89267        .50698E-03   -.72237    
   3  Normalizat    .97887        .19888        .87910E-05   -.93742    
   4  Prefactor     .85931        .25048        .11704E-04   -.97578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99896e-09
Minuit parameter uncertainties:
  1  4.27791
  2  0.901317
  3  0.199032
  4  0.25081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31757': 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) = 5438.38697437
delta logL = 0.0585063858989

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.256e+00  4.278e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.694e+00  9.013e-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:  8.593e-01  2.508e-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:  9.789e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.69 +/- 0.90
Photon Flux (Free Index): 6.81e-09 +/- 1.20e-08
Energy Flux (Free Index): 1.13e-05 +/- 2.42e-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/31757/cmap_HighResolution_257472001_257731201_4FGL_J1257.2+3646_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', comment='SUCCESS', photon_flux='1.02e-08', energy_flux2='1.13e-05', photon_flux_error='1.37e-08', dlogl='5.85e-02', energy_flux='6.62e-06', photon_flux2='6.81e-09', job_status='DONE', time_completed='2021-09-06 11:39:57.463127', photon_index_error2='0.90', photon_index2='1.69', ts='1.27', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='5.62e-08', energy_flux_error2='2.42e-05', EG='0.97', time_epoch_completed='1630953597.46', return_code='0', job_id='31757', GAL2='0.86', EG2='0.98', return_code2='0', energy_flux_error='8.85e-06', photon_flux_error2='1.20e-08', ts2='1.39', photon_index='2.03' WHERE bin_id='70' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 31757: <4FGL_J1257.2+3646_daily_bin70> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin70> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:35 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:36 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:25:36 2021
Terminated at Mon Sep  6 11:39:58 2021
Results reported at Mon Sep  6 11:39:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin70 194.31 36.7706 257472001 257731201 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 :                                   677.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

