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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin202
RA = 194.31, Dec = 36.7706
tmin = 291686401, tmax = 291945601
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='31997', job_status='RUN', time_executed='2021-09-06 11:26:12.737554', time_epoch_executed='1630952772.74' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31997/ft1_4FGL_J1257.2+3646_daily_bin202.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31997/ft2_4FGL_J1257.2+3646_daily_bin202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31997/ft1_4FGL_J1257.2+3646_daily_bin202.fits outfile=/scratch/kocevski/31997/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin202.fits ra=194.31 dec=36.7706 rad=12.0 tmin=291686401.0 tmax=291945601.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.68
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31997/ft1_filtered_4FGL_J1257.2+3646_daily_bin202.fits" evtable="EVENTS" scfile=/scratch/kocevski/31997/ft2_4FGL_J1257.2+3646_daily_bin202.fits sctable="SC_DATA" outfile=/scratch/kocevski/31997/ltcube_291686401_291945601_4FGL_J1257.2+3646_daily_bin202.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/31997/ft2_4FGL_J1257.2+3646_daily_bin202.fits
.....................!
real 12.02
user 11.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31997/ft1_filtered_4FGL_J1257.2+3646_daily_bin202.fits evtable="EVENTS" scfile=/scratch/kocevski/31997/ft2_4FGL_J1257.2+3646_daily_bin202.fits sctable="SC_DATA" expcube=/scratch/kocevski/31997/ltcube_291686401_291945601_4FGL_J1257.2+3646_daily_bin202.fits outfile=/scratch/kocevski/31997/expmap_291686401_291945601_4FGL_J1257.2+3646_daily_bin202.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/31997/ltcube_291686401_291945601_4FGL_J1257.2+3646_daily_bin202.fits
.....................!
real 190.93
user 185.57
sys 4.63

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/31997/ft1_filtered_4FGL_J1257.2+3646_daily_bin202.fits scfile=/scratch/kocevski/31997/ft2_4FGL_J1257.2+3646_daily_bin202.fits outfile=/scratch/kocevski/31997/cmap_291686401_291945601_4FGL_J1257.2+3646_daily_bin202.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31997/ft1_filtered_4FGL_J1257.2+3646_daily_bin202.fits scfile=/scratch/kocevski/31997/ft2_4FGL_J1257.2+3646_daily_bin202.fits outfile=/scratch/kocevski/31997/cmap_HighResolution_291686401_291945601_4FGL_J1257.2+3646_daily_bin202.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1209       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2811       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8734       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.465       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5943       1.0000         .10000E-03   10000.    
    11 'norm      '    .10929E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.464       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31135E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1626       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6006       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8834       1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5528       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11319E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13683E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2735       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59055       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=   6142.558     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2537 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1895        63.288       -.38876E-06   -.43135E-05
   2  norm          4.2811        3.3320       -.62177E-07    .10055E-03
   3  Prefactor     3.0947        6.5910       -.68474E-06    .49945E-04
   4  Prefactor     4.7452        2.7704       -.22931E-07    .93457E-04
   5  Prefactor     7.8737        3.1205        .71643E-08    .72842E-04
   6  Prefactor     12.464        9.1811        .67413E-07    .14592E-04
   7  Prefactor     .10000E-03    7.3363        .10457E-06** at limit **
   8  Prefactor     .10000E-03    21.117        .92149E-06** at limit **
   9  Prefactor     .10000E-03    29.187       -.59855E-06** at limit **
  10  Prefactor     1.6120        6.2270        .26326E-05   -.36395E-03
  11  norm          .10000E-03    2.3311        .26415E-06** at limit **
  12  Prefactor     .10000E-03    18.637        .25920E-08** at limit **
  13  Prefactor     41.486        25.750       -.74412E-06   -.10163E-03
  14  Prefactor     .10009E-03    17.393        .80633E-06** at limit **
  15  norm          2.1606        6.0891       -.16773E-05   -.30641E-03
  16  norm          7.6013        7.5796       -.10751E-06    .80855E-06
  17  norm          1.8858        3.0978        .11369E-06    .94023E-06
  18  norm          .10000E-03    3.0010        .54736E-08** at limit **
  19  Prefactor     3.5517        3.7333        .76412E-08   -.18357E-03
  20  Prefactor     .10000E-03    12.294        .23417E-06** at limit **
  21  Prefactor     .10000E-03    20.980        .37288E-06** at limit **
  22  Prefactor     .10002E-03    27.039        .44173E-05** at limit **
  23  Prefactor     .10000E-03    38.745        .12746E-05** at limit **
  24  Normalizat    1.2734        .17617        .22939E-06   -.40429E-03
  25  Prefactor     .59053        .21159       -.25275E-05   -.40480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.18951
  norm       = 4.28108
  Prefactor  = 3.09474
  Prefactor  = 4.74525
  Prefactor  = 7.87373
  Prefactor  = 12.4638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.61195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.4862
  Prefactor  = 0.000100087
  norm       = 2.16064
  norm       = 7.60127
  norm       = 1.88582
  norm       = 0.0001
  Prefactor  = 3.5517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Normalizat = 1.2734
  Prefactor  = 0.590527
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.558     FROM HESSE     STATUS=OK           437 CALLS     2974 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1895        63.094        .16228E-03   -1.5210    
   2  norm          4.2811        3.3380        .11269E-03   -1.5294    
   3  Prefactor     3.0947        6.5089        .23037E-03   -1.5356    
   4  Prefactor     4.7452        2.7817        .89445E-04   -1.5272    
   5  Prefactor     7.8737        3.1181        .82675E-04   -1.5147    
   6  Prefactor     12.464        9.1794        .11346E-03   -1.5002    
   7  Prefactor     .10000E-03    7.3390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6120        10.813        .16797E-02   -1.5454    
  11  norm          .10000E-03    2.3878        .11698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.486        25.610        .62253E-04   -1.4419    
  14  Prefactor     .10009E-03    31.595        .80931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1606        6.0671        .28009E-03   -1.5414    
  16  norm          7.6013        7.5815        .72731E-03   -1.5156    
  17  norm          1.8858        3.0448        .16298E-03   -1.5433    
  18  norm          .10000E-03    3.0043        .13219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5517        3.6918        .13895E-03   -1.5331    
  20  Prefactor     .10000E-03    12.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    71.182        .55842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2734        .19175        .20438E-03   -.84364    
  25  Prefactor     .59053        .22460        .35223E-03   -1.0799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00986e-09
Minuit parameter uncertainties:
  1  39.577
  2  3.33815
  3  6.51036
  4  2.7818
  5  3.11817
  6  9.18048
  7  4.30408e-07
  8  1.30907e-05
  9  4.56885e-05
  10  8.35181
  11  8.54374e-06
  12  1.45388e-05
  13  25.6168
  14  0.00331293
  15  6.06878
  16  7.58244
  17  3.04501
  18  8.51517e-06
  19  3.69208
  20  3.59168e-05
  21  2.71539e-05
  22  0.00237808
  23  5.92446e-05
  24  0.19186
  25  0.224943
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.612e+00  8.352e+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:  5.905e-01  2.249e-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.273e+00  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/31997/likelihoodResults_291686401_291945601_4FGL_J1257.2+3646_daily_bin202.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) = 6142.48257736
delta logL = 0.0757190418481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6142.48212901
delta logL = 0.0761673904972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6150       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1233       1.0000          .0000       10.000    
     3 'Normalizat'    1.2753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59109       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=   6142.482     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6087        4.4347        .83298E-02    .35844E-03
   2  Index         1.1223        .93817        .36762       -.60215E-04
   3  Normalizat    1.2753        .16365        .33263E-01    .72182E-05
   4  Prefactor     .59104        .19993        .79509E-01    .45656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60867
  Index      = 1.12235
  Normalizat = 1.27531
  Prefactor  = 0.591045
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.482     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6087        4.8801        .24809E-03   -1.5454    
   2  Index         1.1223        1.2266        .21377E-01   -.88755    
   3  Normalizat    1.2753        .18263        .20425E-03   -.84306    
   4  Prefactor     .59104        .22261        .35211E-03   -1.0796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67593e-08
Minuit parameter uncertainties:
  1  4.88131
  2  1.25979
  3  0.182717
  4  0.222946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31997': 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) = 6142.48212829
delta logL = 0.0761681080448

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.609e+00  4.881e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.122e+00  1.260e+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:  5.910e-01  2.229e-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.275e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/31997/cmap_HighResolution_291686401_291945601_4FGL_J1257.2+3646_daily_bin202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-09-06 11:37:51.333389', job_id='31997', GAL2='0.59', fit_tolerance='1e-08', EG2='1.28', EG='1.27', time_epoch_completed='1630953471.33', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='7.62e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='202' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:37:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 31997: <4FGL_J1257.2+3646_daily_bin202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin202 194.31 36.7706 291686401 291945601 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            723 sec.

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

