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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin977
RA = 194.31, Dec = 36.7706
tmin = 492566401, tmax = 492825601
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='38394', job_status='RUN', time_executed='2021-09-06 11:45:45.702612', time_epoch_executed='1630953945.7' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='977'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38394/ft1_4FGL_J1257.2+3646_daily_bin977.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38394/ft2_4FGL_J1257.2+3646_daily_bin977.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38394/ft1_4FGL_J1257.2+3646_daily_bin977.fits outfile=/scratch/kocevski/38394/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin977.fits ra=194.31 dec=36.7706 rad=12.0 tmin=492566401.0 tmax=492825601.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.77
user 3.30
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38394/ft1_filtered_4FGL_J1257.2+3646_daily_bin977.fits evtable="EVENTS" scfile=/scratch/kocevski/38394/ft2_4FGL_J1257.2+3646_daily_bin977.fits sctable="SC_DATA" expcube=/scratch/kocevski/38394/ltcube_492566401_492825601_4FGL_J1257.2+3646_daily_bin977.fits outfile=/scratch/kocevski/38394/expmap_492566401_492825601_4FGL_J1257.2+3646_daily_bin977.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/38394/ltcube_492566401_492825601_4FGL_J1257.2+3646_daily_bin977.fits
.....................!
real 190.08
user 184.95
sys 4.72

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/38394/ft1_filtered_4FGL_J1257.2+3646_daily_bin977.fits scfile=/scratch/kocevski/38394/ft2_4FGL_J1257.2+3646_daily_bin977.fits outfile=/scratch/kocevski/38394/cmap_492566401_492825601_4FGL_J1257.2+3646_daily_bin977.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.26
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38394/ft1_filtered_4FGL_J1257.2+3646_daily_bin977.fits scfile=/scratch/kocevski/38394/ft2_4FGL_J1257.2+3646_daily_bin977.fits outfile=/scratch/kocevski/38394/cmap_HighResolution_492566401_492825601_4FGL_J1257.2+3646_daily_bin977.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.34
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4608       1.0000         .10000E-03   10000.    
     2 'norm      '    16.886       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9670       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8032       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.240       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3840       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17282E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.394       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9142       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3673       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .36972       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=   5822.336     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2471 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4566        88.254       -.17071E-05   -.34709E-04
   2  norm          16.886        4.5103        .14718E-07    .38787E-04
   3  Prefactor     6.7991        5.2314       -.17034E-06    .17562E-03
   4  Prefactor     1.9669        1.9733       -.17469E-08   -.20369E-05
   5  Prefactor     5.8034        2.7034        .29928E-07    .44541E-04
   6  Prefactor     .10000E-03    2.6486       -.44840E-07** at limit **
   7  Prefactor     .10000E-03    15.214        .45096E-07** at limit **
   8  Prefactor     14.704        16.999       -.39297E-06   -.32604E-04
   9  Prefactor     65.665        55.773       -.89766E-05   -.59507E-03
  10  Prefactor     .10000E-03    2.3967       -.40499E-06** at limit **
  11  norm          4.9695        4.1704        .37238E-06   -.63471E-06
  12  Prefactor     .10000E-03    59.383        .21774E-05** at limit **
  13  Prefactor     28.234        22.756       -.81705E-06   -.11266E-03
  14  Prefactor     3.3813        12.362        .90255E-05   -.59150E-03
  15  norm          .10000E-03    1.2139       -.21644E-06** at limit **
  16  norm          .10000E-03    5.1266        .98364E-07** at limit **
  17  norm          .10000E-03    3.1050       -.30973E-06** at limit **
  18  norm          11.384        7.2489        .13695E-06   -.10830E-04
  19  Prefactor     2.9139        2.8871       -.62747E-07   -.81111E-04
  20  Prefactor     .10000E-03    9.9738        .11131E-06** at limit **
  21  Prefactor     .10000E-03    27.825        .18179E-07** at limit **
  22  Prefactor     .10000E-03    3.9880        .12812E-07** at limit **
  23  Prefactor     .10000E-03    60.906       -.72725E-06** at limit **
  24  Normalizat    1.3670        .18604        .19325E-06    .48186E-05
  25  Prefactor     .37013        .22169       -.56924E-06    .37944E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.45662
  norm       = 16.8858
  Prefactor  = 6.79912
  Prefactor  = 1.96687
  Prefactor  = 5.80341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7035
  Prefactor  = 65.6648
  Prefactor  = 0.0001
  norm       = 4.96949
  Prefactor  = 0.000100001
  Prefactor  = 28.2342
  Prefactor  = 3.38133
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.3843
  Prefactor  = 2.91386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36696
  Prefactor  = 0.370133
 **********
 **   18 **HESSE 
 **********

 FCN=   5822.336     FROM HESSE     STATUS=OK           427 CALLS     2898 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4566        88.986        .26071E-03   -1.5394    
   2  norm          16.886        4.5026        .77611E-04   -1.4886    
   3  Prefactor     6.7991        5.2317        .74205E-03   -1.5186    
   4  Prefactor     1.9669        1.9702        .10094E-03   -1.5427    
   5  Prefactor     5.8034        2.7021        .81679E-04   -1.5226    
   6  Prefactor     .10000E-03    2.6550        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.704        16.996        .52228E-03   -1.4941    
   9  Prefactor     65.665        60.932        .24757E-03   -1.4086    
  10  Prefactor     .10000E-03    2.4128        .11554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9695        4.1707        .13304E-03   -1.5262    
  12  Prefactor     .10000E-03    59.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.234        22.652        .75389E-04   -1.4645    
  14  Prefactor     3.3813        13.627        .10998E-02   -1.5340    
  15  norm          .10000E-03    1.2169        .82162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1308        .16873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.0060        .23052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.384        6.5298        .11869E-03   -1.5033    
  19  Prefactor     2.9139        2.8653        .12215E-03   -1.5367    
  20  Prefactor     .10000E-03    10.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9915        .14882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    61.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3670        .19439        .19392E-03   -.81589    
  25  Prefactor     .37013        .22794        .42489E-03   -1.1836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12061e-09
Minuit parameter uncertainties:
  1  29.6176
  2  4.50265
  3  5.232
  4  1.97026
  5  2.70218
  6  1.68009e-06
  7  4.2137e-06
  8  17.0019
  9  60.99
  10  2.37551e-05
  11  4.17096
  12  0.000543876
  13  22.6585
  14  13.581
  15  8.87269e-06
  16  5.43163e-06
  17  6.67738e-05
  18  6.53023
  19  2.86546
  20  6.8508e-06
  21  7.42056e-06
  22  6.35954e-07
  23  0.000270053
  24  0.194498
  25  0.2285
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.376e-05  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:  3.701e-01  2.285e-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.367e+00  1.945e-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: 4.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38394/likelihoodResults_492566401_492825601_4FGL_J1257.2+3646_daily_bin977.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) = 5822.33772057
delta logL = -0.00194237899996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5822.33577819
delta logL = -1.36515154736e-09

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 'Index     '    2.0236       1.0000          .0000       10.000    
     3 'Normalizat'    1.3670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37013       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=   5822.336     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.120        .90712E-02** at limit **
   2  Index         2.0197        8.9648        .50000        .12612E-04
   3  Normalizat    1.3670        .15895E-01    .31702E-01   -.12218E-05
   4  Prefactor     .37013        .19186E-01    .95853E-01    .51148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01969
  Normalizat = 1.36696
  Prefactor  = 0.370133
 **********
 **   18 **HESSE 
 **********

 FCN=   5822.336     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    392.15        .11562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0197        5.4743        .50000       -.63859    
   3  Normalizat    1.3670        .69054E-01    .19392E-03   -.81589    
   4  Prefactor     .37013        .83027E-01    .42489E-03   -1.1836    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82663e-08
Minuit parameter uncertainties:
  1  3.04798e-05
  2  51.5156
  3  0.0690592
  4  0.0830538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38394': 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) = 5822.33577816
delta logL = 2.49165168498e-08

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.048e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.020e+00  5.152e+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:  3.701e-01  8.305e-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.367e+00  6.906e-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/38394/cmap_HighResolution_492566401_492825601_4FGL_J1257.2+3646_daily_bin977.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2021-09-06 11:57:10.076806', job_id='38394', GAL2='0.37', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630954630.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.37', dlogl='2.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='977' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 38394: <4FGL_J1257.2+3646_daily_bin977> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin977 194.31 36.7706 492566401 492825601 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 :                                   670.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            699 sec.

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

