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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin989
RA = 194.31, Dec = 36.7706
tmin = 495676801, tmax = 495936001
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='38411', job_status='RUN', time_executed='2021-09-06 11:45:48.015293', time_epoch_executed='1630953948.02' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='989'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38411

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38411/ft1_4FGL_J1257.2+3646_daily_bin989.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38411/ft2_4FGL_J1257.2+3646_daily_bin989.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38411/ft1_4FGL_J1257.2+3646_daily_bin989.fits outfile=/scratch/kocevski/38411/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin989.fits ra=194.31 dec=36.7706 rad=12.0 tmin=495676801.0 tmax=495936001.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.61
user 3.36
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38411/ft1_filtered_4FGL_J1257.2+3646_daily_bin989.fits evtable="EVENTS" scfile=/scratch/kocevski/38411/ft2_4FGL_J1257.2+3646_daily_bin989.fits sctable="SC_DATA" expcube=/scratch/kocevski/38411/ltcube_495676801_495936001_4FGL_J1257.2+3646_daily_bin989.fits outfile=/scratch/kocevski/38411/expmap_495676801_495936001_4FGL_J1257.2+3646_daily_bin989.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/38411/ltcube_495676801_495936001_4FGL_J1257.2+3646_daily_bin989.fits
.....................!
real 190.93
user 185.55
sys 4.65

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/38411/ft1_filtered_4FGL_J1257.2+3646_daily_bin989.fits scfile=/scratch/kocevski/38411/ft2_4FGL_J1257.2+3646_daily_bin989.fits outfile=/scratch/kocevski/38411/cmap_495676801_495936001_4FGL_J1257.2+3646_daily_bin989.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.03
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38411/ft1_filtered_4FGL_J1257.2+3646_daily_bin989.fits scfile=/scratch/kocevski/38411/ft2_4FGL_J1257.2+3646_daily_bin989.fits outfile=/scratch/kocevski/38411/cmap_HighResolution_495676801_495936001_4FGL_J1257.2+3646_daily_bin989.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.90
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7310       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6773       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.203       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33986       1.0000         .10000E-03   10000.    
    11 'norm      '    16.256       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.557       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.059       1.0000         .10000E-03   10000.    
    15 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1329       1.0000         .10000E-03   10000.    
    18 'norm      '    .22864E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4331       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1692       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72539       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=   5450.483     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2863 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.468        .89712E-05** at limit **
   2  norm          4.7317        3.1127        .36672E-06   -.12803E-03
   3  Prefactor     .10000E-03    3.1221       -.10515E-06** at limit **
   4  Prefactor     2.6769        2.1395       -.14226E-06   -.24485E-04
   5  Prefactor     .10000E-03    1.2601        .66858E-07** at limit **
   6  Prefactor     14.203        10.310        .89861E-07   -.30370E-04
   7  Prefactor     .10000E-03    20.164       -.70320E-05** at limit **
   8  Prefactor     .10000E-03    5.3483       -.38593E-05** at limit **
   9  Prefactor     .10000E-03    23.839        .30378E-05** at limit **
  10  Prefactor     .34284        5.9404       -.41658E-05   -.13170E-03
  11  norm          16.261        8.4875       -.68465E-05    .27008E-04
  12  Prefactor     .10000E-03    14.958        .87015E-06** at limit **
  13  Prefactor     14.590        40.188        .62255E-04    .11955E-03
  14  Prefactor     11.063        17.217       -.10560E-05    .43477E-03
  15  norm          .10000E-03    2.9289       -.57368E-06** at limit **
  16  norm          .10000E-03    5.3220        .38252E-05** at limit **
  17  norm          2.1400        3.6505       -.28389E-05   -.14354E-02
  18  norm          .10000E-03    4.7572        .13375E-05** at limit **
  19  Prefactor     6.4336        3.9707       -.27607E-06   -.24504E-03
  20  Prefactor     .10000E-03    23.087        .20452E-05** at limit **
  21  Prefactor     .10000E-03    22.222       -.15762E-05** at limit **
  22  Prefactor     .10000E-03    9.8395       -.20102E-05** at limit **
  23  Prefactor     .10000E-03    33.936       -.51488E-05** at limit **
  24  Normalizat    1.1693        .17840       -.33148E-05    .32564E-03
  25  Prefactor     .72542        .21059        .19467E-05   -.51805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.73168
  Prefactor  = 0.0001
  Prefactor  = 2.67693
  Prefactor  = 0.0001
  Prefactor  = 14.2031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.342843
  norm       = 16.2607
  Prefactor  = 0.0001
  Prefactor  = 14.5903
  Prefactor  = 11.0625
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 2.14
  norm       = 0.0001
  Prefactor  = 6.43359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16925
  Prefactor  = 0.725421
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.483     FROM HESSE     STATUS=OK           425 CALLS     3288 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7317        3.1227        .97059E-04   -1.5273    
   3  Prefactor     .10000E-03    3.1350        .12739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6769        2.1468        .88902E-04   -1.5381    
   5  Prefactor     .10000E-03    1.2934        .16166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.203        10.302        .10628E-03   -1.4954    
   7  Prefactor     .10000E-03    20.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3467        .16672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .34284        17.273        .31414E-02   -1.5591    
  11  norm          16.261        8.4600        .99337E-04   -1.4901    
  12  Prefactor     .10000E-03    14.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.590        40.194        .10498E-03   -1.4944    
  14  Prefactor     11.063        16.792        .12047E-03   -1.5043    
  15  norm          .10000E-03    2.9454        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3248        .16630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1400        3.2880        .15603E-03   -1.5415    
  18  norm          .10000E-03    9.9734        .28010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4336        3.9550        .10782E-03   -1.5201    
  20  Prefactor     .10000E-03    23.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.8692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1693        .20615        .21550E-03   -.87558    
  25  Prefactor     .72542        .24283        .32002E-03   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28729e-08
Minuit parameter uncertainties:
  1  1.31711e-05
  2  3.12277
  3  2.05766e-06
  4  2.1469
  5  8.23652e-07
  6  10.3035
  7  3.86921e-05
  8  4.7147e-06
  9  7.61715e-06
  10  4.86778
  11  8.46066
  12  8.19763e-06
  13  40.2689
  14  16.7991
  15  7.86226e-05
  16  3.3961e-06
  17  3.28824
  18  1.71271e-05
  19  3.9552
  20  0.000171144
  21  1.10044e-05
  22  7.12785e-06
  23  2.64459e-05
  24  0.206297
  25  0.243186
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.428e-01  4.868e+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:  7.254e-01  2.432e-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.169e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/38411/likelihoodResults_495676801_495936001_4FGL_J1257.2+3646_daily_bin989.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) = 5450.48154166
delta logL = 0.00184858110333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5450.48152518
delta logL = 0.00186506463706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34290       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72530       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=   5450.481     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      237 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37177        9.7526        .45702E-01    .75788E-03
   2  Index         2.1859        .61204        .50000        .37944E-04
   3  Normalizat    1.1690        .67346E-02    .35700E-01    .21898E-04
   4  Prefactor     .72523        .81068E-02    .72313E-01    .40567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.371772
  Index      = 2.1859
  Normalizat = 1.169
  Prefactor  = 0.725232
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.481     FROM HESSE     STATUS=OK            35 CALLS      272 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37177        13.656        .28655E-02   -1.5586    
   2  Index         2.1859        2.5889        .68179E-02   -.59779    
   3  Normalizat    1.1690        .20049        .21552E-03   -.87566    
   4  Prefactor     .72523        .24134        .32005E-03   -1.0255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67753e-08
Minuit parameter uncertainties:
  1  4.50686
  2  2.79776
  3  0.200624
  4  0.241687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38411': 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) = 5450.481489
delta logL = 0.00190124070468

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.718e-01  4.507e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.186e+00  2.798e+00  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  2.417e-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.169e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/38411/cmap_HighResolution_495676801_495936001_4FGL_J1257.2+3646_daily_bin989.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-06 11:57:03.992802', job_id='38411', GAL2='0.73', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630954623.99', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.90e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='989' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 38411: <4FGL_J1257.2+3646_daily_bin989> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin989> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:45:32 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:45:34 2021
Terminated at Mon Sep  6 11:57:04 2021
Results reported at Mon Sep  6 11:57:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin989 194.31 36.7706 495676801 495936001 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 :                                   658.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

