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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin783
RA = 194.31, Dec = 36.7706
tmin = 442281601, tmax = 442540801
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='36348', job_status='RUN', time_executed='2021-09-06 11:42:56.047512', time_epoch_executed='1630953776.05' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36348/ft1_4FGL_J1257.2+3646_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36348/ft2_4FGL_J1257.2+3646_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36348/ft1_4FGL_J1257.2+3646_daily_bin783.fits outfile=/scratch/kocevski/36348/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin783.fits ra=194.31 dec=36.7706 rad=12.0 tmin=442281601.0 tmax=442540801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.52
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36348/ft1_filtered_4FGL_J1257.2+3646_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/36348/ft2_4FGL_J1257.2+3646_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/36348/ltcube_442281601_442540801_4FGL_J1257.2+3646_daily_bin783.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/36348/ft2_4FGL_J1257.2+3646_daily_bin783.fits
.....................!
real 12.42
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36348/ft1_filtered_4FGL_J1257.2+3646_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/36348/ft2_4FGL_J1257.2+3646_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/36348/ltcube_442281601_442540801_4FGL_J1257.2+3646_daily_bin783.fits outfile=/scratch/kocevski/36348/expmap_442281601_442540801_4FGL_J1257.2+3646_daily_bin783.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/36348/ltcube_442281601_442540801_4FGL_J1257.2+3646_daily_bin783.fits
.....................!
real 192.03
user 185.45
sys 4.73

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/36348/ft1_filtered_4FGL_J1257.2+3646_daily_bin783.fits scfile=/scratch/kocevski/36348/ft2_4FGL_J1257.2+3646_daily_bin783.fits outfile=/scratch/kocevski/36348/cmap_442281601_442540801_4FGL_J1257.2+3646_daily_bin783.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.58
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    10.181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12370       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1149       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.408       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6335       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7895       1.0000         .10000E-03   10000.    
    16 'norm      '    7.9050       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1681       1.0000         .10000E-03   10000.    
    18 'norm      '    11.237       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13204E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11124E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11520E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.488       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2584       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72505       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=   5804.125     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2926 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.399        .48293E-05** at limit **
   2  norm          10.181        3.9598       -.12421E-06    .63715E-03
   3  Prefactor     12.679        8.0569       -.99820E-06    .50001E-04
   4  Prefactor     .12410        2.1632       -.73394E-06   -.68728E-03
   5  Prefactor     .10000E-03    2.0397       -.10801E-06** at limit **
   6  Prefactor     3.9999        10.101       -.19247E-05   -.10309E-03
   7  Prefactor     .10000E-03    27.428        .93161E-05** at limit **
   8  Prefactor     7.1138        18.625       -.16704E-05   -.13603E-04
   9  Prefactor     .10000E-03    50.874        .14106E-04** at limit **
  10  Prefactor     .10000E-03    2.8723        .74443E-08** at limit **
  11  norm          11.407        5.7003       -.10196E-05    .10642E-03
  12  Prefactor     21.361        38.572       -.58131E-04    .10046E-04
  13  Prefactor     .10000E-03    20.483       -.31891E-05** at limit **
  14  Prefactor     2.6351        27.603       -.32530E-05   -.76641E-04
  15  norm          7.7911        5.9011       -.46212E-07    .14790E-03
  16  norm          7.9047        9.8433        .13401E-05    .32606E-04
  17  norm          4.1716        5.7687       -.70324E-06   -.11486E-03
  18  norm          11.233        9.9644        .52885E-06    .76146E-04
  19  Prefactor     .10000E-03    1.7474       -.14484E-06** at limit **
  20  Prefactor     .10000E-03    17.631       -.49854E-05** at limit **
  21  Prefactor     .10000E-03    121.79        .30599E-04** at limit **
  22  Prefactor     .10000E-03    41.519       -.22954E-04** at limit **
  23  Prefactor     48.440        57.370       -.46446E-04    .19208E-04
  24  Normalizat    1.2583        .17763        .55498E-05    .59715E-04
  25  Prefactor     .72521        .21358        .18978E-05    .32881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.1805
  Prefactor  = 12.6792
  Prefactor  = 0.124097
  Prefactor  = 0.0001
  Prefactor  = 3.99989
  Prefactor  = 0.0001
  Prefactor  = 7.11384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4074
  Prefactor  = 21.3608
  Prefactor  = 0.0001
  Prefactor  = 2.63511
  norm       = 7.79114
  norm       = 7.90473
  norm       = 4.17155
  norm       = 11.2327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.4396
  Normalizat = 1.25831
  Prefactor  = 0.725215
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.125     FROM HESSE     STATUS=OK           429 CALLS     3355 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.181        4.0828        .80811E-04   -1.5070    
   3  Prefactor     12.679        8.0643        .11249E-03   -1.4996    
   4  Prefactor     .12410        6.7605        .19156E-02   -1.5638    
   5  Prefactor     .10000E-03    2.1072        .21172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9999        10.047        .20162E-03   -1.5308    
   7  Prefactor     .10000E-03    27.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1138        18.624        .15039E-03   -1.5174    
   9  Prefactor     .10000E-03    50.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8755        .12588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.407        5.6922        .11861E-03   -1.5032    
  12  Prefactor     21.361        38.592        .86510E-04   -1.4783    
  13  Prefactor     .10000E-03    20.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6351        26.914        .25127E-03   -1.5383    
  15  norm          7.7911        5.7897        .14251E-03   -1.5150    
  16  norm          7.9047        9.8410        .14261E-03   -1.5146    
  17  norm          4.1716        5.8489        .14656E-03   -1.5299    
  18  norm          11.233        10.190        .11951E-03   -1.5038    
  19  Prefactor     .10000E-03    5.6290        .18940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    122.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.440        57.459        .57586E-04   -1.4315    
  24  Normalizat    1.2583        .20923        .21644E-03   -.84819    
  25  Prefactor     .72521        .25093        .33993E-03   -1.0255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94686e-09
Minuit parameter uncertainties:
  1  5.62492e-05
  2  4.08294
  3  8.06501
  4  1.83137
  5  1.49817e-05
  6  10.0514
  7  2.79754e-05
  8  18.6393
  9  8.43064e-05
  10  3.59831e-06
  11  5.69247
  12  38.6366
  13  2.6498e-05
  14  16.8524
  15  5.79015
  16  9.84305
  17  5.84965
  18  10.1919
  19  4.77652e-05
  20  5.19112e-05
  21  0.000215405
  22  0.000157775
  23  57.5252
  24  0.209369
  25  0.251326
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.598e-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.252e-01  2.513e-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.258e+00  2.094e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36348/likelihoodResults_442281601_442540801_4FGL_J1257.2+3646_daily_bin783.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) = 5804.12700746
delta logL = -0.0016434403542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5804.12536419
delta logL = -1.69519807969e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0146       1.0000          .0000       10.000    
     3 'Normalizat'    1.2584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72508       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=   5804.125     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    44.865        .12671E-02** at limit **
   2  Index         1.9701        8.0317        .50000        .28863E-04
   3  Normalizat    1.2583        .17003E-01    .21644E-03   -.56728E-05
   4  Prefactor     .72521        .20926E-01    .33993E-03   -.41805E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100662
  Index      = 1.97013
  Normalizat = 1.25832
  Prefactor  = 0.725208
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.125     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10066E-03    198.57        .25341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9701        8.3682        .50000       -.65099    
   3  Normalizat    1.2583        .38362E-01    .86576E-05   -.84819    
   4  Prefactor     .72521        .47170E-01    .13597E-04   -1.0255    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.28922e-08
Minuit parameter uncertainties:
  1  0.0230023
  2  568.88
  3  0.0383631
  4  0.0471724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36348': 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) = 5804.12536366
delta logL = 3.54007170245e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.007e-04  2.300e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.970e+00  5.689e+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:  7.252e-01  4.717e-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.258e+00  3.836e-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/36348/cmap_HighResolution_442281601_442540801_4FGL_J1257.2+3646_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-09-06 11:55:21.187844', job_id='36348', GAL2='0.73', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630954521.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='783' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 36348: <4FGL_J1257.2+3646_daily_bin783> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin783 194.31 36.7706 442281601 442540801 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 :                                   706.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            869 sec.

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

