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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin79
RA = 194.31, Dec = 36.7706
tmin = 259804801, tmax = 260064001
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='31771', job_status='RUN', time_executed='2021-09-06 11:28:17.482684', time_epoch_executed='1630952897.48' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31771/ft1_4FGL_J1257.2+3646_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31771/ft2_4FGL_J1257.2+3646_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31771/ft1_4FGL_J1257.2+3646_daily_bin79.fits outfile=/scratch/kocevski/31771/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin79.fits ra=194.31 dec=36.7706 rad=12.0 tmin=259804801.0 tmax=260064001.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 2.69
user 2.45
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31771/ft1_filtered_4FGL_J1257.2+3646_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/31771/ft2_4FGL_J1257.2+3646_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/31771/ltcube_259804801_260064001_4FGL_J1257.2+3646_daily_bin79.fits outfile=/scratch/kocevski/31771/expmap_259804801_260064001_4FGL_J1257.2+3646_daily_bin79.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/31771/ltcube_259804801_260064001_4FGL_J1257.2+3646_daily_bin79.fits
.....................!
real 192.47
user 187.38
sys 4.61

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/31771/ft1_filtered_4FGL_J1257.2+3646_daily_bin79.fits scfile=/scratch/kocevski/31771/ft2_4FGL_J1257.2+3646_daily_bin79.fits outfile=/scratch/kocevski/31771/cmap_259804801_260064001_4FGL_J1257.2+3646_daily_bin79.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.20
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31771/ft1_filtered_4FGL_J1257.2+3646_daily_bin79.fits scfile=/scratch/kocevski/31771/ft2_4FGL_J1257.2+3646_daily_bin79.fits outfile=/scratch/kocevski/31771/cmap_HighResolution_259804801_260064001_4FGL_J1257.2+3646_daily_bin79.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.76
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1645       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4924       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8567       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7268       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.772       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4274       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7492       1.0000         .10000E-03   10000.    
    16 'norm      '    6.5124       1.0000         .10000E-03   10000.    
    17 'norm      '    10.445       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4247       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.053       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.141       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98406       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95311       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=   7161.749     FROM MIGRAD    STATUS=CONVERGED   1024 CALLS     3436 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.098        .18142E-02** at limit **
   2  norm          2.7470        2.3079        .10902E-03    .66741E-05
   3  Prefactor     8.0694        6.2998        .14114E-03   -.34233E-04
   4  Prefactor     3.1617        2.2668        .99878E-04    .16619E-04
   5  Prefactor     3.1645        1.8507        .84566E-04   -.45439E-04
   6  Prefactor     8.4927        7.1632        .13756E-03   -.34133E-04
   7  Prefactor     1.8553        48.587        .30587E-03    .14867E-04
   8  Prefactor     4.0484        11.792        .10018E-02    .24152E-03
   9  Prefactor     1.0158        76.337        .18587        .14675E-03
  10  Prefactor     4.7266        5.5819        .92539E-03    .57891E-03
  11  norm          4.2247        6.5397        .98011E-03    .94914E-03
  12  Prefactor     .10000E-03    15.705        .18142E-02** at limit **
  13  Prefactor     24.783        32.298        .80484E-04   -.11300E-04
  14  Prefactor     5.4321        18.536        .17249E-03   -.74479E-04
  15  norm          1.7479        4.7833        .26408E-03   -.10849E-04
  16  norm          6.5127        10.319        .15726E-03    .15615E-05
  17  norm          10.447        7.1838        .11054E-03   -.84846E-04
  18  norm          4.4224        9.8520        .95723E-03    .67145E-03
  19  Prefactor     .10000E-03    1.2313        .91174E-03** at limit **
  20  Prefactor     17.054        14.178        .96987E-04   -.15262E-03
  21  Prefactor     .10000E-03    44.678        .18142E-02** at limit **
  22  Prefactor     .10000E-03    9.1721        .18142E-02** at limit **
  23  Prefactor     64.146        66.733        .50108E-04   -.10210E-04
  24  Normalizat    .98395        .18760        .23469E-03    .30519E-05
  25  Prefactor     .95324        .22327        .29509E-03   -.35222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.74705
  Prefactor  = 8.06941
  Prefactor  = 3.16172
  Prefactor  = 3.1645
  Prefactor  = 8.49271
  Prefactor  = 1.85526
  Prefactor  = 4.04845
  Prefactor  = 1.01579
  Prefactor  = 4.72661
  norm       = 4.22466
  Prefactor  = 0.0001
  Prefactor  = 24.783
  Prefactor  = 5.43206
  norm       = 1.74789
  norm       = 6.51274
  norm       = 10.4465
  norm       = 4.42241
  Prefactor  = 0.0001
  Prefactor  = 17.0544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.1456
  Normalizat = 0.983948
  Prefactor  = 0.953244
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.749     FROM HESSE     STATUS=OK           411 CALLS     3847 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7470        2.3078        .43607E-05   -1.5376    
   3  Prefactor     8.0694        6.2997        .56457E-05   -1.5140    
   4  Prefactor     3.1617        2.2667        .39951E-05   -1.5352    
   5  Prefactor     3.1645        1.8507        .33827E-05   -1.5352    
   6  Prefactor     8.4927        7.1630        .55024E-05   -1.5125    
   7  Prefactor     1.8553        48.576        .12235E-04   -1.5436    
   8  Prefactor     4.0484        11.790        .40073E-04   -1.5306    
   9  Prefactor     1.0158        76.952        .18463       -1.5506    
  10  Prefactor     4.7266        5.5764        .37016E-04   -1.5273    
  11  norm          4.2247        6.5172        .39204E-04   -1.5297    
  12  Prefactor     .10000E-03    15.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.783        32.226        .32194E-05   -1.4712    
  14  Prefactor     5.4321        18.507        .68994E-05   -1.5242    
  15  norm          1.7479        4.7782        .10563E-04   -1.5444    
  16  norm          6.5127        10.319        .31452E-04   -1.5198    
  17  norm          10.447        7.1716        .44218E-05   -1.5061    
  18  norm          4.4224        9.8323        .38289E-04   -1.5287    
  19  Prefactor     .10000E-03    1.2314        .18235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.054        14.177        .38795E-05   -1.4882    
  21  Prefactor     .10000E-03    44.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.146        66.732        .10022E-04   -1.4104    
  24  Normalizat    .98395        .18776        .93874E-05   -.93570    
  25  Prefactor     .95324        .22348        .59019E-04   -.94305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59744e-09
Minuit parameter uncertainties:
  1  2.45388e-05
  2  2.3079
  3  6.30018
  4  2.26678
  5  1.85071
  6  7.16371
  7  19.003
  8  11.7964
  9  17.7052
  10  5.57699
  11  6.51825
  12  1.6305e-05
  13  32.2486
  14  18.5268
  15  4.77924
  16  10.3214
  17  7.17217
  18  9.83588
  19  3.97946e-06
  20  14.1802
  21  1.723e-05
  22  4.20724e-05
  23  66.8096
  24  0.187891
  25  0.2237
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.727e+00  5.577e+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:  9.532e-01  2.237e-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:  9.839e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.79e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/31771/likelihoodResults_259804801_260064001_4FGL_J1257.2+3646_daily_bin79.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) = 7161.67728548
delta logL = 0.0712595621617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7161.67420414
delta logL = 0.0743408953213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0593       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7935       1.0000          .0000       10.000    
     3 'Normalizat'    .98859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94877       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=   7161.674     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      277 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0598        7.0668        .16311E-03   -.10926E-02
   2  Index         1.7937        .58495        .97708E-02   -.26325E-03
   3  Normalizat    .98870        .17620        .23419E-03    .58496E-04
   4  Prefactor     .94863        .21974        .29572E-03    .16131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.05984
  Index      = 1.7937
  Normalizat = 0.988701
  Prefactor  = 0.94863
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.674     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0598        6.9322        .65243E-05   -1.5216    
   2  Index         1.7937        .57402        .39083E-03   -.69614    
   3  Normalizat    .98870        .17632        .93676E-05   -.93410    
   4  Prefactor     .94863        .21991        .11829E-04   -.94462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96447e-09
Minuit parameter uncertainties:
  1  6.93312
  2  0.576188
  3  0.176422
  4  0.220116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31771': 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) = 7161.67420379
delta logL = 0.0743412532174

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.060e+00  6.933e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.794e+00  5.762e-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:  9.486e-01  2.201e-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:  9.887e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.79 +/- 0.58
Photon Flux (Free Index): 1.49e-08 +/- 1.87e-08
Energy Flux (Free Index): 1.82e-05 +/- 2.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/31771/cmap_HighResolution_259804801_260064001_4FGL_J1257.2+3646_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', comment='SUCCESS', photon_flux='1.79e-08', energy_flux2='1.82e-05', photon_flux_error='2.12e-08', dlogl='7.43e-02', energy_flux='1.16e-05', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-09-06 11:42:08.568092', photon_index_error2='0.58', photon_index2='1.79', ts='1.42', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.83e-08', energy_flux_error2='2.82e-05', EG='0.98', time_epoch_completed='1630953728.57', return_code='0', job_id='31771', GAL2='0.95', EG2='0.99', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='1.87e-08', ts2='1.57', photon_index='2.03' WHERE bin_id='79' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:42:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 31771: <4FGL_J1257.2+3646_daily_bin79> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin79> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:36 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:37 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:37 2021
Terminated at Mon Sep  6 11:42:09 2021
Results reported at Mon Sep  6 11:42:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin79 194.31 36.7706 259804801 260064001 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 :                                   825.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

