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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin581
RA = 194.31, Dec = 36.7706
tmin = 389923201, tmax = 390182401
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='34677', job_status='RUN', time_executed='2021-09-06 11:37:41.354447', time_epoch_executed='1630953461.35' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34677/ft1_4FGL_J1257.2+3646_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34677/ft2_4FGL_J1257.2+3646_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34677/ft1_4FGL_J1257.2+3646_daily_bin581.fits outfile=/scratch/kocevski/34677/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin581.fits ra=194.31 dec=36.7706 rad=12.0 tmin=389923201.0 tmax=390182401.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.54
user 3.25
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34677/ft2_4FGL_J1257.2+3646_daily_bin581.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/34677/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin581.fits evtable="EVENTS" outfile="/scratch/kocevski/34677/ft1_filtered_4FGL_J1257.2+3646_daily_bin581.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34677/ft1_filtered_4FGL_J1257.2+3646_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/34677/ft2_4FGL_J1257.2+3646_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/34677/ltcube_389923201_390182401_4FGL_J1257.2+3646_daily_bin581.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/34677/ft2_4FGL_J1257.2+3646_daily_bin581.fits
.....................!
real 11.99
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34677/ft1_filtered_4FGL_J1257.2+3646_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/34677/ft2_4FGL_J1257.2+3646_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/34677/ltcube_389923201_390182401_4FGL_J1257.2+3646_daily_bin581.fits outfile=/scratch/kocevski/34677/expmap_389923201_390182401_4FGL_J1257.2+3646_daily_bin581.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/34677/ltcube_389923201_390182401_4FGL_J1257.2+3646_daily_bin581.fits
.....................!
real 192.17
user 185.66
sys 6.10

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/34677/ft1_filtered_4FGL_J1257.2+3646_daily_bin581.fits scfile=/scratch/kocevski/34677/ft2_4FGL_J1257.2+3646_daily_bin581.fits outfile=/scratch/kocevski/34677/cmap_389923201_390182401_4FGL_J1257.2+3646_daily_bin581.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.66
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.3894       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0434       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2502       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0273       1.0000         .10000E-03   10000.    
    11 'norm      '    11.093       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7290       1.0000         .10000E-03   10000.    
    16 'norm      '    38.715       1.0000         .10000E-03   10000.    
    17 'norm      '    .10764E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5594       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7111       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2613       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.307       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68950       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3185       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=   5404.433     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2887 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.264       -.10362E-04** at limit **
   2  norm          4.3895        3.0454       -.68264E-07   -.11404E-03
   3  Prefactor     .10000E-03    3.4080       -.16277E-07** at limit **
   4  Prefactor     3.0434        2.3739       -.40003E-07   -.23393E-03
   5  Prefactor     .10000E-03    .98839       -.79179E-08** at limit **
   6  Prefactor     .10000E-03    13.935        .12409E-04** at limit **
   7  Prefactor     5.2498        20.475       -.61640E-06   -.33393E-04
   8  Prefactor     .10000E-03    10.498       -.58267E-05** at limit **
   9  Prefactor     .10000E-03    60.299       -.80832E-05** at limit **
  10  Prefactor     2.0279        4.5268       -.31995E-06   -.46710E-03
  11  norm          11.093        6.0510        .91512E-07    .21351E-03
  12  Prefactor     .10000E-03    29.803        .14796E-04** at limit **
  13  Prefactor     .10000E-03    8.2010       -.15757E-05** at limit **
  14  Prefactor     .10000E-03    7.9171        .30713E-05** at limit **
  15  norm          2.7291        2.8822        .51999E-07    .19618E-03
  16  norm          38.714        22.056       -.36136E-06   -.43478E-04
  17  norm          .10006E-03    2.3541       -.79000E-06** at limit **
  18  norm          2.5595        4.4484        .60379E-06    .31513E-03
  19  Prefactor     4.7109        3.9894       -.72700E-06   -.16249E-03
  20  Prefactor     .10000E-03    4.1885        .22689E-06** at limit **
  21  Prefactor     2.2666        362.36        .27326E-04   -.17691E-05
  22  Prefactor     .10000E-03    5.8255       -.43304E-06** at limit **
  23  Prefactor     40.300        70.600       -.10240E-04   -.25036E-05
  24  Normalizat    .68947        .17494        .67406E-06   -.48318E-04
  25  Prefactor     1.3186        .21700       -.14562E-06   -.14525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.38949
  Prefactor  = 0.0001
  Prefactor  = 3.0434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02788
  norm       = 11.0932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.72914
  norm       = 38.7143
  norm       = 0.000100062
  norm       = 2.55954
  Prefactor  = 4.71095
  Prefactor  = 0.0001
  Prefactor  = 2.26658
  Prefactor  = 0.0001
  Prefactor  = 40.2995
  Normalizat = 0.689467
  Prefactor  = 1.31856
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.433     FROM HESSE     STATUS=OK           427 CALLS     3314 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3895        3.0548        .98665E-04   -1.5289    
   3  Prefactor     .10000E-03    3.4201        .13253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0434        2.3799        .92471E-04   -1.5359    
   5  Prefactor     .10000E-03    .99895        .71311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2498        20.469        .17542E-03   -1.5250    
   8  Prefactor     .10000E-03    10.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    60.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0279        4.5080        .22672E-03   -1.5423    
  11  norm          11.093        6.0129        .12029E-03   -1.5042    
  12  Prefactor     .10000E-03    29.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7291        2.8870        .12452E-03   -1.5378    
  16  norm          38.714        22.063        .64416E-04   -1.4463    
  17  norm          .10006E-03    18.685        .19269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5595        4.0485        .17919E-03   -1.5388    
  19  Prefactor     4.7109        3.9104        .11754E-03   -1.5274    
  20  Prefactor     .10000E-03    4.1913        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2666        352.85        .27317E-03   -1.5407    
  22  Prefactor     .10000E-03    5.8329        .17330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.300        70.689        .63137E-04   -1.4437    
  24  Normalizat    .68947        .21000        .27145E-03   -1.0431    
  25  Prefactor     1.3186        .26175        .25540E-03   -.82757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55536e-09
Minuit parameter uncertainties:
  1  6.39317e-06
  2  3.05487
  3  8.20125e-07
  4  2.38001
  5  1.18312e-06
  6  9.25724e-05
  7  20.4961
  8  5.39734e-06
  9  1.1474e-05
  10  4.50874
  11  6.01325
  12  1.48757e-06
  13  2.91361e-06
  14  4.7701e-06
  15  2.88714
  16  22.0677
  17  0.00215464
  18  4.0489
  19  3.91058
  20  2.80627e-06
  21  56.9038
  22  3.01708e-07
  23  70.8366
  24  0.210247
  25  0.262013
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.028e+00  4.509e+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:  1.319e+00  2.620e-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:  6.895e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/34677/likelihoodResults_389923201_390182401_4FGL_J1257.2+3646_daily_bin581.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) = 5404.39676542
delta logL = 0.0364557438415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5404.38758602
delta logL = 0.0456351403145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4371       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4767       1.0000          .0000       10.000    
     3 'Normalizat'    .68205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3234       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5404.388     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4373        4.5477        .16355E-03    .14169E-02
   2  Index         2.4775        1.7269        .47236E-02   -.13464E-04
   3  Normalizat    .68197        .20878        .27284E-03    .20834E-05
   4  Prefactor     1.3234        .26177        .25499E-03    .66877E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43732
  Index      = 2.47751
  Normalizat = 0.681971
  Prefactor  = 1.32338
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.388     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4373        4.1220        .65419E-05   -1.5468    
   2  Index         2.4775        1.5720        .18894E-03   -.52880    
   3  Normalizat    .68197        .20848        .10914E-04   -1.0461    
   4  Prefactor     1.3234        .26165        .10200E-04   -.82615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82193e-09
Minuit parameter uncertainties:
  1  4.12284
  2  1.60897
  3  0.208722
  4  0.261912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34677': 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) = 5404.38758548
delta logL = 0.0456356858858

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.437e+00  4.123e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.478e+00  1.609e+00  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.323e+00  2.619e-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:  6.820e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/34677/cmap_HighResolution_389923201_390182401_4FGL_J1257.2+3646_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-09-06 11:48:37.842513', job_id='34677', GAL2='1.32', fit_tolerance='1e-08', EG2='0.68', EG='0.69', time_epoch_completed='1630954117.84', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='4.56e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='581' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:48:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 34677: <4FGL_J1257.2+3646_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin581 194.31 36.7706 389923201 390182401 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 :                                   652.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

