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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin1294
RA = 194.31, Dec = 36.7706
tmin = 574732801, tmax = 574992001
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='38941', job_status='RUN', time_executed='2021-09-06 11:46:31.487995', time_epoch_executed='1630953991.49' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38941/ft1_4FGL_J1257.2+3646_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38941/ft2_4FGL_J1257.2+3646_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38941/ft1_4FGL_J1257.2+3646_daily_bin1294.fits outfile=/scratch/kocevski/38941/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin1294.fits ra=194.31 dec=36.7706 rad=12.0 tmin=574732801.0 tmax=574992001.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 5.60
user 5.06
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38941/ft1_filtered_4FGL_J1257.2+3646_daily_bin1294.fits" evtable="EVENTS" scfile=/scratch/kocevski/38941/ft2_4FGL_J1257.2+3646_daily_bin1294.fits sctable="SC_DATA" outfile=/scratch/kocevski/38941/ltcube_574732801_574992001_4FGL_J1257.2+3646_daily_bin1294.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/38941/ft2_4FGL_J1257.2+3646_daily_bin1294.fits
.....................!
real 12.47
user 11.41
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38941/ft1_filtered_4FGL_J1257.2+3646_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/38941/ft2_4FGL_J1257.2+3646_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/38941/ltcube_574732801_574992001_4FGL_J1257.2+3646_daily_bin1294.fits outfile=/scratch/kocevski/38941/expmap_574732801_574992001_4FGL_J1257.2+3646_daily_bin1294.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/38941/ltcube_574732801_574992001_4FGL_J1257.2+3646_daily_bin1294.fits
.....................!
real 195.31
user 185.23
sys 5.54

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/38941/ft1_filtered_4FGL_J1257.2+3646_daily_bin1294.fits scfile=/scratch/kocevski/38941/ft2_4FGL_J1257.2+3646_daily_bin1294.fits outfile=/scratch/kocevski/38941/cmap_574732801_574992001_4FGL_J1257.2+3646_daily_bin1294.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.75
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38941/ft1_filtered_4FGL_J1257.2+3646_daily_bin1294.fits scfile=/scratch/kocevski/38941/ft2_4FGL_J1257.2+3646_daily_bin1294.fits outfile=/scratch/kocevski/38941/cmap_HighResolution_574732801_574992001_4FGL_J1257.2+3646_daily_bin1294.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 1.47
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15334E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23248       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16193E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1822       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.521       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8476       1.0000         .10000E-03   10000.    
    15 'norm      '    .13724E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    7.5194       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9004       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    83.701       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3822       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15894E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76199       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=   5470.581     FROM MIGRAD    STATUS=CONVERGED   1083 CALLS     4205 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.293        .18142E-02** at limit **
   2  norm          11.592        4.3933        .78147E-04    .16162E-02
   3  Prefactor     .10000E-03    3.3540        .13152E-02** at limit **
   4  Prefactor     .15548        8.4141        .16192E-02    .10420E-02
   5  Prefactor     .23228        4.4556        .19093E-02    .12687E-02
   6  Prefactor     .10000E-03    4.5404        .15356E-02** at limit **
   7  Prefactor     5.9621        34.531        .16451E-03   -.48375E-05
   8  Prefactor     .10000E-03    6.3431        .18142E-02** at limit **
   9  Prefactor     .10003E-03    69.019        .17635    ** at limit **
  10  Prefactor     3.1824        3.7675        .15012E-03    .28021E-03
  11  norm          .10000E-03    1.4602        .87070E-03** at limit **
  12  Prefactor     44.505        42.358        .60086E-04   -.70763E-05
  13  Prefactor     .10000E-03    19.224        .18142E-02** at limit **
  14  Prefactor     3.8559        13.771        .20574E-03   -.14301E-03
  15  norm          .10087E-03    3.6666        .45363E-01** at limit **
  16  norm          7.5122        12.711        .14625E-03    .18656E-04
  17  norm          .10000E-03    1.5008        .87716E-03** at limit **
  18  norm          1.9006        3.4581        .91054E-03    .78834E-04
  19  Prefactor     .10000E-03    1.1546        .77217E-03** at limit **
  20  Prefactor     .10000E-03    4.6607        .15578E-02** at limit **
  21  Prefactor     83.697        59.818        .43906E-04   -.57897E-04
  22  Prefactor     3.3715        22.787        .22001E-03   -.14055E-04
  23  Prefactor     .10001E-03    196.38        .18142E-02** at limit **
  24  Normalizat    1.1716        .19709        .20542E-03    .42235E-03
  25  Prefactor     .76216        .23590        .30964E-03    .22826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 11.5917
  Prefactor  = 0.0001
  Prefactor  = 0.155477
  Prefactor  = 0.232285
  Prefactor  = 0.0001
  Prefactor  = 5.96209
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 3.18243
  norm       = 0.0001
  Prefactor  = 44.505
  Prefactor  = 0.0001
  Prefactor  = 3.85585
  norm       = 0.000100867
  norm       = 7.51221
  norm       = 0.0001
  norm       = 1.90061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.6973
  Prefactor  = 3.37152
  Prefactor  = 0.000100011
  Normalizat = 1.17158
  Prefactor  = 0.762157
 **********
 **   18 **HESSE 
 **********

 FCN=   5470.581     FROM HESSE     STATUS=OK           427 CALLS     4632 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.592        4.2840        .15629E-04   -1.5027    
   3  Prefactor     .10000E-03    3.3548        .26305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15548        8.0458        .64766E-04   -1.5629    
   5  Prefactor     .23228        4.4098        .76372E-04   -1.5612    
   6  Prefactor     .10000E-03    4.5410        .30712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9621        34.529        .65804E-05   -1.5220    
   8  Prefactor     .10000E-03    6.3433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    73.759        .16864       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1824        3.7672        .60048E-05   -1.5351    
  11  norm          .10000E-03    1.4603        .17414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.505        42.357        .12017E-04   -1.4373    
  13  Prefactor     .10000E-03    19.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8559        13.767        .82296E-05   -1.5315    
  15  norm          .10087E-03    3.6832        .45178E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5122        12.711        .58501E-05   -1.5160    
  17  norm          .10000E-03    1.5010        .17543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9006        3.4575        .36422E-04   -1.5432    
  19  Prefactor     .10000E-03    1.1547        .15443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.6609        .31156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     83.697        59.817        .87813E-05   -1.3876    
  22  Prefactor     3.3715        22.779        .88005E-05   -1.5341    
  23  Prefactor     .10001E-03    196.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1716        .19715        .41084E-04   -.87486    
  25  Prefactor     .76216        .23602        .12386E-04   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32704e-09
Minuit parameter uncertainties:
  1  0.000265491
  2  4.2841
  3  3.48251e-05
  4  2.23651
  5  2.02392
  6  1.5595e-05
  7  28.7209
  8  4.6071e-07
  9  0.00310612
  10  3.76743
  11  2.915e-07
  12  42.3855
  13  7.05934e-05
  14  13.7786
  15  0.00357382
  16  12.7153
  17  1.95067e-06
  18  3.45789
  19  8.58471e-06
  20  4.9431e-06
  21  59.8602
  22  17.5366
  23  0.00300777
  24  0.197273
  25  0.236333
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.182e+00  3.767e+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.622e-01  2.363e-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.172e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 7.81e-06 +/- 9.25e-06

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

Saving results to:
/scratch/kocevski/38941/likelihoodResults_574732801_574992001_4FGL_J1257.2+3646_daily_bin1294.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) = 5470.44472544
delta logL = 0.13674829855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5470.43451751
delta logL = 0.146956233079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7408       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5245       1.0000          .0000       10.000    
     3 'Normalizat'    1.1795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75677       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=   5470.435     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7395        228.80        .52190E-02   -.86323E-04
   2  Index         1.5242        6.9993        .29535       -.17518E-04
   3  Normalizat    1.1795        .15613        .35414E-01    .51071E-06
   4  Prefactor     .75678        .10466        .70187E-01    .15810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7395
  Index      = 1.52421
  Normalizat = 1.17953
  Prefactor  = 0.756777
 **********
 **   18 **HESSE 
 **********

 FCN=   5470.435     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7395        4.3474        .16204E-03   -1.5321    
   2  Index         1.5242        .80491        .13095E-01   -.76864    
   3  Normalizat    1.1795        .18734        .20480E-03   -.87238    
   4  Prefactor     .75678        .23323        .31058E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53894e-10
Minuit parameter uncertainties:
  1  4.34781
  2  0.811792
  3  0.187451
  4  0.233532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38941': 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) = 5470.43451739
delta logL = 0.146956349732

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.739e+00  4.348e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.524e+00  8.118e-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.568e-01  2.335e-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.180e+00  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.52 +/- 0.81
Photon Flux (Free Index): 6.16e-09 +/- 9.69e-09
Energy Flux (Free Index): 1.80e-05 +/- 3.64e-05

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/38941/cmap_HighResolution_574732801_574992001_4FGL_J1257.2+3646_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='1.80e-05', photon_flux_error='1.43e-08', dlogl='1.47e-01', energy_flux='7.81e-06', photon_flux2='6.16e-09', job_status='DONE', time_completed='2021-09-06 11:59:56.309561', photon_index_error2='0.81', photon_index2='1.52', ts='1.88', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='5.77e-08', energy_flux_error2='3.64e-05', EG='1.17', time_epoch_completed='1630954796.31', return_code='0', job_id='38941', GAL2='0.76', EG2='1.18', return_code2='0', energy_flux_error='9.25e-06', photon_flux_error2='9.69e-09', ts2='2.18', photon_index='2.03' WHERE bin_id='1294' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:59:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 38941: <4FGL_J1257.2+3646_daily_bin1294> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin1294> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:46:06 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:46:10 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:46:10 2021
Terminated at Mon Sep  6 11:59:57 2021
Results reported at Mon Sep  6 11:59:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin1294 194.31 36.7706 574732801 574992001 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            831 sec.

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

