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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin736
RA = 194.31, Dec = 36.7706
tmin = 430099201, tmax = 430358401
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='36275', job_status='RUN', time_executed='2021-09-06 11:41:00.271886', time_epoch_executed='1630953660.27' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36275/ft1_4FGL_J1257.2+3646_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36275/ft2_4FGL_J1257.2+3646_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36275/ft1_4FGL_J1257.2+3646_daily_bin736.fits outfile=/scratch/kocevski/36275/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin736.fits ra=194.31 dec=36.7706 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.13
user 10.69
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36275/ft1_filtered_4FGL_J1257.2+3646_daily_bin736.fits" evtable="EVENTS" scfile=/scratch/kocevski/36275/ft2_4FGL_J1257.2+3646_daily_bin736.fits sctable="SC_DATA" outfile=/scratch/kocevski/36275/ltcube_430099201_430358401_4FGL_J1257.2+3646_daily_bin736.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/36275/ft2_4FGL_J1257.2+3646_daily_bin736.fits
.....................!
real 12.98
user 11.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36275/ft1_filtered_4FGL_J1257.2+3646_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/36275/ft2_4FGL_J1257.2+3646_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/36275/ltcube_430099201_430358401_4FGL_J1257.2+3646_daily_bin736.fits outfile=/scratch/kocevski/36275/expmap_430099201_430358401_4FGL_J1257.2+3646_daily_bin736.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/36275/ltcube_430099201_430358401_4FGL_J1257.2+3646_daily_bin736.fits
.....................!
real 191.25
user 185.79
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/36275/ft1_filtered_4FGL_J1257.2+3646_daily_bin736.fits scfile=/scratch/kocevski/36275/ft2_4FGL_J1257.2+3646_daily_bin736.fits outfile=/scratch/kocevski/36275/cmap_430099201_430358401_4FGL_J1257.2+3646_daily_bin736.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36275/ft1_filtered_4FGL_J1257.2+3646_daily_bin736.fits scfile=/scratch/kocevski/36275/ft2_4FGL_J1257.2+3646_daily_bin736.fits outfile=/scratch/kocevski/36275/cmap_HighResolution_430099201_430358401_4FGL_J1257.2+3646_daily_bin736.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.724       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.787       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    141.67       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8352       1.0000         .10000E-03   10000.    
    15 'norm      '    9.2785       1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4072       1.0000         .10000E-03   10000.    
    18 'norm      '    8.2190       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0898       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0464       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0748       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=   5251.095     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2903 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.773        .10767E-05** at limit **
   2  norm          10.725        5.0375       -.12198E-05   -.10051E-03
   3  Prefactor     .10000E-03    13.489       -.38209E-06** at limit **
   4  Prefactor     .10000E-03    1.4641        .64217E-07** at limit **
   5  Prefactor     3.2967        3.8084        .80580E-06   -.30296E-04
   6  Prefactor     .10000E-03    5.3340        .86867E-08** at limit **
   7  Prefactor     20.791        34.441        .14791E-05   -.46264E-06
   8  Prefactor     .10000E-03    6.0285       -.89018E-07** at limit **
   9  Prefactor     141.67        115.76        .37563E-05   -.25424E-05
  10  Prefactor     .10000E-03    2.7609        .90191E-08** at limit **
  11  norm          11.247        7.5294        .34022E-05   -.15837E-04
  12  Prefactor     .10000E-03    36.917        .22963E-05** at limit **
  13  Prefactor     .10000E-03    53.720        .33120E-05** at limit **
  14  Prefactor     6.8338        15.436       -.30785E-06   -.37954E-04
  15  norm          9.2793        7.2087       -.16503E-05   -.17361E-03
  16  norm          .10000E-03    7.6490       -.45306E-07** at limit **
  17  norm          2.4076        2.8319        .68820E-06   -.20153E-02
  18  norm          8.2183        7.3524       -.86476E-06   -.13546E-03
  19  Prefactor     4.0912        4.4727       -.55608E-06   -.77519E-03
  20  Prefactor     .10000E-03    58.527        .20499E-04** at limit **
  21  Prefactor     .10000E-03    49.659       -.76256E-05** at limit **
  22  Prefactor     .10051E-03    11.443       -.14051E-05** at limit **
  23  Prefactor     .10000E-03    46.080       -.12704E-04** at limit **
  24  Normalizat    1.0465        .19600       -.11017E-05   -.60248E-04
  25  Prefactor     1.0747        .23555        .24659E-06   -.69802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.7246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2967
  Prefactor  = 0.0001
  Prefactor  = 20.7906
  Prefactor  = 0.0001
  Prefactor  = 141.672
  Prefactor  = 0.0001
  norm       = 11.2471
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 6.83383
  norm       = 9.27925
  norm       = 0.0001
  norm       = 2.40757
  norm       = 8.21826
  Prefactor  = 4.09119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100514
  Prefactor  = 0.0001
  Normalizat = 1.04648
  Prefactor  = 1.07473
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.095     FROM HESSE     STATUS=OK           427 CALLS     3330 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.725        5.0314        .10447E-03   -1.5053    
   3  Prefactor     .10000E-03    13.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4689        .85510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2967        3.7952        .14225E-03   -1.5345    
   6  Prefactor     .10000E-03    5.3438        .16343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.791        34.479        .87850E-04   -1.4796    
   8  Prefactor     .10000E-03    6.0292        .17378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     141.67        115.88        .16924E-03   -1.3322    
  10  Prefactor     .10000E-03    2.7746        .11753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.247        7.6251        .11944E-03   -1.5037    
  12  Prefactor     .10000E-03    36.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8338        15.404        .15346E-03   -1.5185    
  15  norm          9.2793        7.1865        .13157E-03   -1.5099    
  16  norm          .10000E-03    7.6678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4076        8.2447        .10604E-02   -1.5398    
  18  norm          8.2183        11.216        .13984E-03   -1.5135    
  19  Prefactor     4.0912        4.5168        .14783E-03   -1.5303    
  20  Prefactor     .10000E-03    59.968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10051E-03    125.48        .47038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    46.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0465        .23338        .24454E-03   -.91489    
  25  Prefactor     1.0747        .27877        .29885E-03   -.90278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39952e-08
Minuit parameter uncertainties:
  1  2.36406e-05
  2  5.03163
  3  2.98452e-05
  4  7.86875e-06
  5  3.79546
  6  4.11855e-06
  7  34.5125
  8  3.68366e-07
  9  116.071
  10  3.8413e-06
  11  7.62577
  12  3.06308e-05
  13  0.00094206
  14  15.4127
  15  7.18715
  16  3.05555e-06
  17  8.24858
  18  11.2185
  19  4.51718
  20  0.000115302
  21  3.93389e-05
  22  0.0161027
  23  9.01358e-05
  24  0.233612
  25  0.279145
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.841e-06  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.075e+00  2.791e-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.046e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36275/likelihoodResults_430099201_430358401_4FGL_J1257.2+3646_daily_bin736.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): 102
logL (Free Index) = 5251.09623134
delta logL = -0.00169367204398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5251.09453765
delta logL = 2.13403836824e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0202       1.0000          .0000       10.000    
     3 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0747       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5251.095     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    88.184        .11780E-02** at limit **
   2  Index         1.9607        5.3259        .50000        .16824E-04
   3  Normalizat    1.0465        .27230E-01    .24454E-03    .58111E-05
   4  Prefactor     1.0747        .33789E-01    .29885E-03    .65811E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5251.095     FROM SIMPLEX   STATUS=UNCHANGED    145 CALLS      382 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    88.184        .28250E-03** at limit **
   2  Index         1.9607        5.3259        .60351E-04    .16824E-04
   3  Normalizat    1.0465        .27230E-01    .74483E-06    .58111E-05
   4  Prefactor     1.0747        .33789E-01    .11251E-05    .65811E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5251.095     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      462 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1412        .47120E-04** at limit **
   2  Index         1.7408        6.6464        .50000       -.18434E-05
   3  Normalizat    1.0465        .22350        .19564E-05    .46489E-04
   4  Prefactor     1.0747        .27731        .23908E-05    .39943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74077
  Normalizat = 1.04648
  Prefactor  = 1.07474
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.095     FROM HESSE     STATUS=OK            27 CALLS      489 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9112        .94239E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7408        9.0872        .50000       -.71002    
   3  Normalizat    1.0465        .23435        .39127E-06   -.91489    
   4  Prefactor     1.0747        .29101        .47817E-06   -.90278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34925e-09
Minuit parameter uncertainties:
  1  5.98179e-05
  2  134.997
  3  0.234583
  4  0.291443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36275': 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) = 5251.09453687
delta logL = 7.97389475338e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.982e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.741e+00  1.350e+02  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.075e+00  2.914e-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.046e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

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/36275/cmap_HighResolution_430099201_430358401_4FGL_J1257.2+3646_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-06 11:53:18.420413', job_id='36275', GAL2='1.07', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630954398.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='7.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='736' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:53:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 36275: <4FGL_J1257.2+3646_daily_bin736> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin736 194.31 36.7706 430099201 430358401 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 :                                   709.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

