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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin563
RA = 194.31, Dec = 36.7706
tmin = 385257601, tmax = 385516801
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='34647', job_status='RUN', time_executed='2021-09-06 11:39:13.929188', time_epoch_executed='1630953553.93' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34647/ft1_4FGL_J1257.2+3646_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34647/ft2_4FGL_J1257.2+3646_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34647/ft1_4FGL_J1257.2+3646_daily_bin563.fits outfile=/scratch/kocevski/34647/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin563.fits ra=194.31 dec=36.7706 rad=12.0 tmin=385257601.0 tmax=385516801.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 4.10
user 3.28
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34647/ft1_filtered_4FGL_J1257.2+3646_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/34647/ft2_4FGL_J1257.2+3646_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/34647/ltcube_385257601_385516801_4FGL_J1257.2+3646_daily_bin563.fits outfile=/scratch/kocevski/34647/expmap_385257601_385516801_4FGL_J1257.2+3646_daily_bin563.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/34647/ltcube_385257601_385516801_4FGL_J1257.2+3646_daily_bin563.fits
.....................!
real 192.34
user 186.73
sys 5.15

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/34647/ft1_filtered_4FGL_J1257.2+3646_daily_bin563.fits scfile=/scratch/kocevski/34647/ft2_4FGL_J1257.2+3646_daily_bin563.fits outfile=/scratch/kocevski/34647/cmap_385257601_385516801_4FGL_J1257.2+3646_daily_bin563.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.58
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0156       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5338       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49905       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .22964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13174E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.407       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.781       1.0000         .10000E-03   10000.    
    17 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.720       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .36757E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0468       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0197       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=   5845.536     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     2958 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.633       -.11584E-06** at limit **
   2  norm          4.0132        3.9846       -.15088E-06    .16416E-03
   3  Prefactor     .10000E-03    12.702       -.97356E-06** at limit **
   4  Prefactor     2.5344        2.4706        .45863E-08    .75412E-04
   5  Prefactor     6.8898        3.3640       -.11619E-06    .67092E-03
   6  Prefactor     4.7013        5.8916       -.27397E-06    .29596E-03
   7  Prefactor     .10000E-03    52.215        .69581E-06** at limit **
   8  Prefactor     .52487        16.738       -.72392E-05    .41540E-04
   9  Prefactor     .10001E-03    70.490       -.62870E-05** at limit **
  10  Prefactor     .10000E-03    2.7721       -.34626E-06** at limit **
  11  norm          .24699        24.402       -.17610E-04    .16283E-03
  12  Prefactor     .10000E-03    40.270       -.71199E-06** at limit **
  13  Prefactor     16.356        30.457        .51110E-05   -.92287E-04
  14  Prefactor     .10000E-03    5.6715       -.36808E-06** at limit **
  15  norm          .10000E-03    3.7506       -.61101E-06** at limit **
  16  norm          13.773        16.879       -.75924E-06    .15736E-04
  17  norm          .10000E-03    1.7623       -.63944E-06** at limit **
  18  norm          .10000E-03    1.9324       -.20912E-06** at limit **
  19  Prefactor     .10000E-03    1.2322       -.38558E-06** at limit **
  20  Prefactor     .10000E-03    8.6906       -.62213E-06** at limit **
  21  Prefactor     .10000E-03    95.101        .59223E-05** at limit **
  22  Prefactor     25.700        24.853       -.53280E-06    .62391E-04
  23  Prefactor     .10023E-03    834.34        .18686E-05** at limit **
  24  Normalizat    1.0467        .17775       -.15221E-05    .10844E-03
  25  Prefactor     1.0199        .21054        .50490E-05    .62903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.01317
  Prefactor  = 0.000100002
  Prefactor  = 2.53445
  Prefactor  = 6.88977
  Prefactor  = 4.7013
  Prefactor  = 0.000100001
  Prefactor  = 0.524874
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.246992
  Prefactor  = 0.000100001
  Prefactor  = 16.356
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.7727
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 25.7003
  Prefactor  = 0.00010023
  Normalizat = 1.04672
  Prefactor  = 1.01991
 **********
 **   18 **HESSE 
 **********

 FCN=   5845.536     FROM HESSE     STATUS=OK           427 CALLS     3385 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0132        3.9670        .13068E-03   -1.5307    
   3  Prefactor     .10000E-03    13.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5344        2.4643        .10464E-03   -1.5390    
   5  Prefactor     6.8898        3.3560        .45344E-03   -1.5183    
   6  Prefactor     4.7013        5.8884        .92754E-03   -1.5274    
   7  Prefactor     .10000E-03    52.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .52487        96.811        .54245E-02   -1.5563    
   9  Prefactor     .10001E-03    71.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7866        .12436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .24699        28.363        .23507E-02   -1.5609    
  12  Prefactor     .10000E-03    40.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.356        32.092        .98880E-04   -1.4899    
  14  Prefactor     .10000E-03    5.6871        .17790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9326        .28941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.773        16.927        .10790E-03   -1.4966    
  17  norm          .10000E-03    1.7928        .99311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9371        .10381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2452        .83039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    95.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.700        24.890        .78990E-04   -1.4694    
  23  Prefactor     .10023E-03    846.81        .36821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0467        .20680        .23585E-03   -.91481    
  25  Prefactor     1.0199        .25108        .29065E-03   -.92069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54736e-09
Minuit parameter uncertainties:
  1  3.22511e-05
  2  3.96725
  3  0.000320551
  4  2.46442
  5  3.35613
  6  5.88908
  7  0.000458385
  8  14.2788
  9  0.00147091
  10  1.53645e-05
  11  5.29508
  12  0.000299413
  13  32.1262
  14  2.55788e-05
  15  7.40625e-06
  16  16.9331
  17  2.62424e-06
  18  2.64953e-07
  19  1.39605e-05
  20  6.90225e-05
  21  0.000753043
  22  24.9005
  23  0.0283226
  24  0.206957
  25  0.251365
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.536e-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:  1.020e+00  2.514e-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.047e+00  2.070e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34647/likelihoodResults_385257601_385516801_4FGL_J1257.2+3646_daily_bin563.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) = 5845.53792777
delta logL = -0.0017026154037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5845.53622641
delta logL = -1.24726830109e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0018       1.0000          .0000       10.000    
     3 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0201       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=   5845.536     FROM MIGRAD    STATUS=FAILED        89 CALLS      237 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10212E-03    38.707        .12771E-02** at limit **
   2  Index         1.9298        5.5058        .50000        .60526E-04
   3  Normalizat    1.0467        .15468E-01    .23586E-03   -.25065E-04
   4  Prefactor     1.0199        .18916E-01    .29065E-03   -.22765E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5845.536     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      367 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10212E-03    38.707        .32152E-03** at limit **
   2  Index         1.9298        5.5058        .31279E-03    .60526E-04
   3  Normalizat    1.0467        .15468E-01    .16741E-05   -.25065E-04
   4  Prefactor     1.0199        .18916E-01    .15126E-05   -.22765E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5845.536     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      413 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.927        .25543E-02** at limit **
   2  Index         1.5508        9.1486        .50000       -.11983E-06
   3  Normalizat    1.0467        .15306E-01    .94343E-05    .46081E-03
   4  Prefactor     1.0199        .18720E-01    .11626E-04    .37765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.5508
  Normalizat = 1.04673
  Prefactor  = 1.0199
 **********
 **   18 **HESSE 
 **********

 FCN=   5845.536     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      442 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    212.87        .51086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5508        5.6666        .50000       -.76127    
   3  Normalizat    1.0467        .34905E-01    .18869E-05   -.91481    
   4  Prefactor     1.0199        .42681E-01    .23252E-05   -.92069    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.52703e-11
Minuit parameter uncertainties:
  1  0.000181076
  2  618.088
  3  0.0349059
  4  0.0426826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34647': 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) = 5845.53622065
delta logL = 4.50700918009e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.811e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.551e+00  6.181e+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:  1.020e+00  4.268e-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.047e+00  3.491e-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/34647/cmap_HighResolution_385257601_385516801_4FGL_J1257.2+3646_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-09-06 11:51:00.669590', job_id='34647', GAL2='1.02', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630954260.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='563' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 34647: <4FGL_J1257.2+3646_daily_bin563> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin563 194.31 36.7706 385257601 385516801 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 :                                   702.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            918 sec.

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

