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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin462
RA = 194.31, Dec = 36.7706
tmin = 359078401, tmax = 359337601
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='34493', job_status='RUN', time_executed='2021-09-06 11:37:36.173260', time_epoch_executed='1630953456.17' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34493/ft1_4FGL_J1257.2+3646_daily_bin462.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34493/ft2_4FGL_J1257.2+3646_daily_bin462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34493/ft1_4FGL_J1257.2+3646_daily_bin462.fits outfile=/scratch/kocevski/34493/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin462.fits ra=194.31 dec=36.7706 rad=12.0 tmin=359078401.0 tmax=359337601.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.74
user 3.52
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34493/ft1_filtered_4FGL_J1257.2+3646_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/34493/ft2_4FGL_J1257.2+3646_daily_bin462.fits sctable="SC_DATA" expcube=/scratch/kocevski/34493/ltcube_359078401_359337601_4FGL_J1257.2+3646_daily_bin462.fits outfile=/scratch/kocevski/34493/expmap_359078401_359337601_4FGL_J1257.2+3646_daily_bin462.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/34493/ltcube_359078401_359337601_4FGL_J1257.2+3646_daily_bin462.fits
.....................!
real 191.85
user 186.22
sys 4.88

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/34493/ft1_filtered_4FGL_J1257.2+3646_daily_bin462.fits scfile=/scratch/kocevski/34493/ft2_4FGL_J1257.2+3646_daily_bin462.fits outfile=/scratch/kocevski/34493/cmap_359078401_359337601_4FGL_J1257.2+3646_daily_bin462.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.80
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34493/ft1_filtered_4FGL_J1257.2+3646_daily_bin462.fits scfile=/scratch/kocevski/34493/ft2_4FGL_J1257.2+3646_daily_bin462.fits outfile=/scratch/kocevski/34493/cmap_HighResolution_359078401_359337601_4FGL_J1257.2+3646_daily_bin462.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.59
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.8115       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.967       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.203       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.011       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9167       1.0000         .10000E-03   10000.    
    18 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13676E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.433       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17585E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78951       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=   5819.301     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     3297 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.098       -.40973E-05** at limit **
   2  norm          8.8112        3.9185        .82354E-07    .65162E-04
   3  Prefactor     .10000E-03    3.7444       -.28992E-07** at limit **
   4  Prefactor     5.3551        3.1662       -.10225E-06    .14395E-03
   5  Prefactor     .10000E-03    .93457        .13051E-06** at limit **
   6  Prefactor     12.842        9.3025       -.14259E-05    .23163E-03
   7  Prefactor     .10000E-03    11.570        .22528E-06** at limit **
   8  Prefactor     .10000E-03    11.461        .52795E-06** at limit **
   9  Prefactor     40.989        69.251       -.36364E-05   -.14709E-04
  10  Prefactor     .10000E-03    1.8726        .12264E-06** at limit **
  11  norm          .10000E-03    2.1136       -.42868E-06** at limit **
  12  Prefactor     14.196        37.451       -.30753E-06    .46897E-04
  13  Prefactor     16.021        27.098        .60834E-06   -.27205E-04
  14  Prefactor     .10000E-03    3.5851        .12141E-06** at limit **
  15  norm          .10000E-03    1.3629        .19055E-06** at limit **
  16  norm          .10000E-03    14.755       -.23828E-05** at limit **
  17  norm          5.9198        4.0964       -.73949E-06   -.41422E-03
  18  norm          .10000E-03    2.6812        .76205E-06** at limit **
  19  Prefactor     .10000E-03    18.161       -.11928E-04** at limit **
  20  Prefactor     .10000E-03    7.8749        .75882E-06** at limit **
  21  Prefactor     31.403        29.653       -.11764E-06   -.46266E-04
  22  Prefactor     .10008E-03    26.126       -.99071E-05** at limit **
  23  Prefactor     .10000E-03    20.661        .17135E-05** at limit **
  24  Normalizat    1.0978        .16620       -.10638E-05   -.18463E-03
  25  Prefactor     .78991        .20391       -.46413E-06   -.16184E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.8112
  Prefactor  = 0.0001
  Prefactor  = 5.35514
  Prefactor  = 0.0001
  Prefactor  = 12.8423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.9895
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.1955
  Prefactor  = 16.021
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.91985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.403
  Prefactor  = 0.000100076
  Prefactor  = 0.0001
  Normalizat = 1.09779
  Prefactor  = 0.789907
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.301     FROM HESSE     STATUS=OK           431 CALLS     3728 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.8112        3.9438        .88369E-04   -1.5114    
   3  Prefactor     .10000E-03    3.7718        .14412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3551        3.1837        .91413E-04   -1.5245    
   5  Prefactor     .10000E-03    .94686        .71999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.842        9.2765        .55886E-03   -1.4991    
   7  Prefactor     .10000E-03    11.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.989        69.506        .62628E-04   -1.4427    
  10  Prefactor     .10000E-03    1.8783        .10195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1018        .10766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.196        37.486        .10628E-03   -1.4954    
  13  Prefactor     16.021        26.993        .10010E-03   -1.4907    
  14  Prefactor     .10000E-03    3.5884        .14107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3668        .86990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9198        4.0882        .11612E-03   -1.5221    
  18  norm          .10000E-03    2.7057        .12229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.534        .16600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.9329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.403        29.598        .71467E-04   -1.4587    
  22  Prefactor     .10008E-03    19.415        .78468E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0978        .19785        .20863E-03   -.89823    
  25  Prefactor     .78991        .24148        .30340E-03   -1.0010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70569e-10
Minuit parameter uncertainties:
  1  1.21307e-06
  2  3.94393
  3  2.05013e-05
  4  3.18377
  5  1.14235e-05
  6  9.27756
  7  1.71774e-05
  8  2.539e-05
  9  69.6436
  10  4.01223e-06
  11  3.71628e-05
  12  37.5479
  13  27.0131
  14  5.48002e-06
  15  2.21076e-06
  16  6.86133e-05
  17  4.08843
  18  2.05341e-05
  19  9.10277e-05
  20  4.02248e-05
  21  29.6115
  22  0.00242451
  23  5.46371e-05
  24  0.197982
  25  0.241804
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.012e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.899e-01  2.418e-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.098e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/34493/likelihoodResults_359078401_359337601_4FGL_J1257.2+3646_daily_bin462.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5819.30311266
delta logL = -0.00249643270581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5819.30061634
delta logL = -1.12122506835e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0055       1.0000          .0000       10.000    
     3 'Normalizat'    1.0978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78993       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5819.301     FROM MIGRAD    STATUS=FAILED        89 CALLS      238 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10135E-03    29.407        .10396E-02** at limit **
   2  Index         1.9474        8.1446        .50000        .77682E-04
   3  Normalizat    1.0978        .15125E-01    .20863E-03   -.59559E-04
   4  Prefactor     .78991        .19035E-01    .30340E-03   -.57893E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5819.301     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      360 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10135E-03    29.407        .24035E-03** at limit **
   2  Index         1.9474        8.1446        .61480E-03    .77682E-04
   3  Normalizat    1.0978        .15125E-01    .24368E-05   -.59559E-04
   4  Prefactor     .78991        .19035E-01    .36389E-05   -.57893E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5819.301     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      406 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.527        .20791E-02** at limit **
   2  Index         1.5888        9.1903        .50000        .36803E-06
   3  Normalizat    1.0978        .14551E-01    .83454E-05    .13620E-02
   4  Prefactor     .78991        .18313E-01    .12136E-04    .94278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58877
  Normalizat = 1.09779
  Prefactor  = 0.78991
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.301     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      435 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    143.53        .41582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5888        9.0534        .50000       -.75083    
   3  Normalizat    1.0978        .33037E-01    .16691E-05   -.89823    
   4  Prefactor     .78991        .41574E-01    .24272E-05   -1.0010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.34719e-10
Minuit parameter uncertainties:
  1  0.000317205
  2  521.079
  3  0.0330379
  4  0.0415757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34493': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5819.30061113
delta logL = 5.09596975462e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.172e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.589e+00  5.211e+02  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.899e-01  4.158e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.098e+00  3.304e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/34493/cmap_HighResolution_359078401_359337601_4FGL_J1257.2+3646_daily_bin462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-03', job_status='DONE', photon_flux_upper_limit='3.63e-08', time_completed='2021-09-06 11:50:16.577102', job_id='34493', GAL2='0.79', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630954216.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='5.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='462' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 34493: <4FGL_J1257.2+3646_daily_bin462> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin462> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:29 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:30 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:35:30 2021
Terminated at Mon Sep  6 11:50:17 2021
Results reported at Mon Sep  6 11:50:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin462 194.31 36.7706 359078401 359337601 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 :                                   755.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

