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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin564
RA = 194.31, Dec = 36.7706
tmin = 385516801, tmax = 385776001
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='34649', job_status='RUN', time_executed='2021-09-06 11:39:53.589493', time_epoch_executed='1630953593.59' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34649

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34649/ft1_4FGL_J1257.2+3646_daily_bin564.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34649/ft2_4FGL_J1257.2+3646_daily_bin564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34649/ft1_4FGL_J1257.2+3646_daily_bin564.fits outfile=/scratch/kocevski/34649/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin564.fits ra=194.31 dec=36.7706 rad=12.0 tmin=385516801.0 tmax=385776001.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 4.87
user 4.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34649/ft1_filtered_4FGL_J1257.2+3646_daily_bin564.fits" evtable="EVENTS" scfile=/scratch/kocevski/34649/ft2_4FGL_J1257.2+3646_daily_bin564.fits sctable="SC_DATA" outfile=/scratch/kocevski/34649/ltcube_385516801_385776001_4FGL_J1257.2+3646_daily_bin564.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/34649/ft2_4FGL_J1257.2+3646_daily_bin564.fits
.....................!
real 12.16
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34649/ft1_filtered_4FGL_J1257.2+3646_daily_bin564.fits evtable="EVENTS" scfile=/scratch/kocevski/34649/ft2_4FGL_J1257.2+3646_daily_bin564.fits sctable="SC_DATA" expcube=/scratch/kocevski/34649/ltcube_385516801_385776001_4FGL_J1257.2+3646_daily_bin564.fits outfile=/scratch/kocevski/34649/expmap_385516801_385776001_4FGL_J1257.2+3646_daily_bin564.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/34649/ltcube_385516801_385776001_4FGL_J1257.2+3646_daily_bin564.fits
.....................!
real 191.44
user 185.56
sys 5.50

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/34649/ft1_filtered_4FGL_J1257.2+3646_daily_bin564.fits scfile=/scratch/kocevski/34649/ft2_4FGL_J1257.2+3646_daily_bin564.fits outfile=/scratch/kocevski/34649/cmap_385516801_385776001_4FGL_J1257.2+3646_daily_bin564.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34649/ft1_filtered_4FGL_J1257.2+3646_daily_bin564.fits scfile=/scratch/kocevski/34649/ft2_4FGL_J1257.2+3646_daily_bin564.fits outfile=/scratch/kocevski/34649/cmap_HighResolution_385516801_385776001_4FGL_J1257.2+3646_daily_bin564.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6822       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.018       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5865       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.157       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19984E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5665       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4467       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2410       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40426E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.363       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8644       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2862       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75344       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=   5648.746     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2940 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.616        .42053E-07** at limit **
   2  norm          .10000E-03    1.9310       -.39454E-07** at limit **
   3  Prefactor     .10000E-03    26.019       -.68936E-06** at limit **
   4  Prefactor     2.6821        1.8399        .61049E-08   -.50886E-04
   5  Prefactor     5.7013        2.7312       -.16020E-07   -.88805E-04
   6  Prefactor     1.3432        6.5695        .31195E-05    .24753E-03
   7  Prefactor     56.974        44.541        .29323E-07   -.69955E-04
   8  Prefactor     5.5922        19.135        .60806E-06   -.32400E-04
   9  Prefactor     38.237        59.878       -.38635E-05   -.18084E-03
  10  Prefactor     .10000E-03    5.1078        .13160E-07** at limit **
  11  norm          .10001E-03    4.9209        .33640E-05** at limit **
  12  Prefactor     .10000E-03    16.959       -.22114E-06** at limit **
  13  Prefactor     .10000E-03    13.055        .26566E-06** at limit **
  14  Prefactor     6.5718        12.389       -.15711E-06   -.11033E-03
  15  norm          .10000E-03    1.7610        .58668E-07** at limit **
  16  norm          .10000E-03    4.2310       -.45045E-07** at limit **
  17  norm          1.4468        4.4560        .12753E-06   -.50876E-03
  18  norm          5.2458        8.8739       -.26613E-06   -.39109E-03
  19  Prefactor     .10000E-03    .78664        .20606E-06** at limit **
  20  Prefactor     .10062E-03    6.7142        .11013E-05** at limit **
  21  Prefactor     36.411        50.692        .13304E-06   -.76416E-05
  22  Prefactor     5.8643        19.294        .85374E-07   -.48690E-04
  23  Prefactor     .10000E-03    59.039        .11174E-06** at limit **
  24  Normalizat    1.2861        .18157        .68002E-06   -.82038E-03
  25  Prefactor     .75360        .21463       -.33656E-05   -.48784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.68211
  Prefactor  = 5.70128
  Prefactor  = 1.34323
  Prefactor  = 56.974
  Prefactor  = 5.59215
  Prefactor  = 38.2372
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.57182
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.44682
  norm       = 5.24582
  Prefactor  = 0.0001
  Prefactor  = 0.000100618
  Prefactor  = 36.4108
  Prefactor  = 5.86432
  Prefactor  = 0.0001
  Normalizat = 1.28612
  Prefactor  = 0.753602
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.746     FROM HESSE     STATUS=OK           433 CALLS     3373 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.9751        .20284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.948        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6821        1.8319        .81485E-04   -1.5380    
   5  Prefactor     5.7013        2.7260        .82583E-04   -1.5230    
   6  Prefactor     1.3432        6.6567        .37573E-03   -1.5476    
   7  Prefactor     56.974        44.806        .53127E-04   -1.4197    
   8  Prefactor     5.5922        19.121        .16997E-03   -1.5235    
   9  Prefactor     38.237        60.840        .64885E-04   -1.4470    
  10  Prefactor     .10000E-03    5.1404        .16556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    7.0943        .25967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5718        12.382        .15661E-03   -1.5195    
  15  norm          .10000E-03    1.7683        .97386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2329        .15098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4468        4.8933        .16832E-03   -1.5467    
  18  norm          5.2458        9.8938        .17558E-03   -1.5250    
  19  Prefactor     .10000E-03    .78945        .65121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10062E-03    8.8921        .67805E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.411        50.606        .66460E-04   -1.4500    
  22  Prefactor     5.8643        19.329        .16583E-03   -1.5224    
  23  Prefactor     .10000E-03    59.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2861        .21431        .21734E-03   -.83982    
  25  Prefactor     .75360        .24981        .32844E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56058e-09
Minuit parameter uncertainties:
  1  4.61833e-05
  2  8.81575e-07
  3  2.23589e-05
  4  1.83189
  5  2.72602
  6  5.98129
  7  44.8326
  8  19.1421
  9  60.9391
  10  4.35355e-06
  11  0.000518544
  12  2.1149e-05
  13  2.06991e-06
  14  12.3864
  15  1.88871e-06
  16  3.04954e-08
  17  4.89462
  18  9.89689
  19  3.37565e-06
  20  0.00468783
  21  50.6659
  22  19.3492
  23  2.17503e-05
  24  0.214462
  25  0.250181
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.354e-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:  7.536e-01  2.502e-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.286e+00  2.145e-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: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34649/likelihoodResults_385516801_385776001_4FGL_J1257.2+3646_daily_bin564.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) = 5648.74734011
delta logL = -0.000926040736886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.74641421
delta logL = -1.36438757181e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0174       1.0000          .0000       10.000    
     3 'Normalizat'    1.2862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5648.746     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    101.28        .90712E-02** at limit **
   2  Index         2.0076        8.8137        .50000        .14858E-04
   3  Normalizat    1.2861        .20066E-01    .49161E-01    .34823E-04
   4  Prefactor     .75360        .23992E-01    .74206E-01    .41158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00756
  Normalizat = 1.28612
  Prefactor  = 0.753602
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.746     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    407.22        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0076        6.8768        .50000       -.64161    
   3  Normalizat    1.2861        .43571E-01    .21734E-03   -.83982    
   4  Prefactor     .75360        .52002E-01    .32845E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12973e-08
Minuit parameter uncertainties:
  1  0.000136775
  2  35.7946
  3  0.0435725
  4  0.0520054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34649': 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): 102
logL (Free Index) = 5648.746414
delta logL = 7.65112417866e-08

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.368e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.008e+00  3.579e+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:  7.536e-01  5.201e-02  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.286e+00  4.357e-02  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/34649/cmap_HighResolution_385516801_385776001_4FGL_J1257.2+3646_daily_bin564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-09-06 11:51:24.014402', job_id='34649', GAL2='0.75', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630954284.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='7.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='564' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 34649: <4FGL_J1257.2+3646_daily_bin564> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin564> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:45 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:35:47 2021
Terminated at Mon Sep  6 11:51:25 2021
Results reported at Mon Sep  6 11:51:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin564 194.31 36.7706 385516801 385776001 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 :                                   685.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

