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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin620
RA = 194.31, Dec = 36.7706
tmin = 400032001, tmax = 400291201
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='36096', job_status='RUN', time_executed='2021-09-06 11:43:16.329831', time_epoch_executed='1630953796.33' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36096

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36096/ft1_4FGL_J1257.2+3646_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36096/ft2_4FGL_J1257.2+3646_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36096/ft1_4FGL_J1257.2+3646_daily_bin620.fits outfile=/scratch/kocevski/36096/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin620.fits ra=194.31 dec=36.7706 rad=12.0 tmin=400032001.0 tmax=400291201.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.50
user 4.18
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36096/ft1_filtered_4FGL_J1257.2+3646_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/36096/ft2_4FGL_J1257.2+3646_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/36096/ltcube_400032001_400291201_4FGL_J1257.2+3646_daily_bin620.fits outfile=/scratch/kocevski/36096/expmap_400032001_400291201_4FGL_J1257.2+3646_daily_bin620.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/36096/ltcube_400032001_400291201_4FGL_J1257.2+3646_daily_bin620.fits
.....................!
real 191.56
user 186.57
sys 4.29

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/36096/ft1_filtered_4FGL_J1257.2+3646_daily_bin620.fits scfile=/scratch/kocevski/36096/ft2_4FGL_J1257.2+3646_daily_bin620.fits outfile=/scratch/kocevski/36096/cmap_400032001_400291201_4FGL_J1257.2+3646_daily_bin620.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.50
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8945       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0025       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .52456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13493E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.790       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0284       1.0000         .10000E-03   10000.    
    15 'norm      '    .62279       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5095       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5678       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.790       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4848       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .52877       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=   6095.997     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2940 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.610       -.19704E-05** at limit **
   2  norm          12.062        4.6129        .16314E-05    .12582E-04
   3  Prefactor     1.8962        6.1898        .18935E-05   -.82282E-03
   4  Prefactor     3.0026        2.7841       -.10319E-05   -.60949E-04
   5  Prefactor     .10000E-03    .85187       -.52210E-07** at limit **
   6  Prefactor     .10000E-03    5.0897       -.89340E-08** at limit **
   7  Prefactor     .10000E-03    9.8540        .41100E-06** at limit **
   8  Prefactor     .10000E-03    15.082       -.62017E-05** at limit **
   9  Prefactor     8.4785        219.89        .14483E-03    .22075E-04
  10  Prefactor     .10000E-03    2.4037       -.82004E-08** at limit **
  11  norm          .52437        1.7076       -.14264E-06   -.32019E-02
  12  Prefactor     .10000E-03    226.55       -.39011E-05** at limit **
  13  Prefactor     44.788        25.884       -.21544E-05   -.57500E-04
  14  Prefactor     2.0285        7.3831        .20490E-05   -.54080E-03
  15  norm          .62292        3.3949        .30589E-06   -.68094E-04
  16  norm          4.5025        10.026        .28173E-05    .69990E-05
  17  norm          4.5680        2.9824       -.18666E-06   -.17448E-03
  18  norm          .10000E-03    3.1470        .59420E-07** at limit **
  19  Prefactor     .10000E-03    1.4307        .10316E-06** at limit **
  20  Prefactor     10.794        9.7816       -.72685E-06   -.73138E-04
  21  Prefactor     .10000E-03    15.108       -.82266E-05** at limit **
  22  Prefactor     .10000E-03    15.316        .15250E-04** at limit **
  23  Prefactor     .10000E-03    59.278        .19975E-05** at limit **
  24  Normalizat    1.4848        .18287       -.25243E-05   -.36205E-04
  25  Prefactor     .52871        .22133       -.25901E-05   -.18377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.0624
  Prefactor  = 1.89622
  Prefactor  = 3.00264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.47855
  Prefactor  = 0.0001
  norm       = 0.524367
  Prefactor  = 0.000100002
  Prefactor  = 44.7881
  Prefactor  = 2.02845
  norm       = 0.622919
  norm       = 4.50254
  norm       = 4.56796
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 10.7943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48477
  Prefactor  = 0.528707
 **********
 **   18 **HESSE 
 **********

 FCN=   6095.997     FROM HESSE     STATUS=OK           431 CALLS     3371 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.062        4.6069        .92829E-04   -1.5013    
   3  Prefactor     1.8962        6.4458        .15113E-02   -1.5433    
   4  Prefactor     3.0026        2.7839        .11266E-03   -1.5361    
   5  Prefactor     .10000E-03    .85528        .70345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0995        .17202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4785        229.87        .13822E-03   -1.5126    
  10  Prefactor     .10000E-03    2.4213        .11816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .52437        5.9271        .16958E-02   -1.5563    
  12  Prefactor     .10000E-03    229.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.788        26.562        .59906E-04   -1.4368    
  14  Prefactor     2.0285        7.4910        .14524E-02   -1.5423    
  15  norm          .62292        3.2372        .27242E-03   -1.5550    
  16  norm          4.5025        10.017        .18959E-03   -1.5284    
  17  norm          4.5680        2.9743        .10400E-03   -1.5280    
  18  norm          .10000E-03    3.1581        .13498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.8441        .18046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.794        9.7444        .12197E-03   -1.5051    
  21  Prefactor     .10000E-03    15.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    59.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4848        .20974        .20284E-03   -.78207    
  25  Prefactor     .52871        .25211        .39130E-03   -1.1068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.624e-08
Minuit parameter uncertainties:
  1  8.64771e-06
  2  4.60699
  3  6.44816
  4  2.78397
  5  4.02328e-06
  6  1.81325e-05
  7  1.51943e-05
  8  2.59429e-05
  9  88.6727
  10  2.84839e-06
  11  3.52599
  12  0.00129134
  13  26.5686
  14  7.4945
  15  2.84009
  16  10.0203
  17  2.97438
  18  8.50759e-06
  19  0.000341916
  20  9.74583
  21  3.38612e-06
  22  1.95275e-05
  23  0.000193626
  24  0.209864
  25  0.252649
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.848e-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:  5.287e-01  2.526e-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.485e+00  2.099e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36096/likelihoodResults_400032001_400291201_4FGL_J1257.2+3646_daily_bin620.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) = 6095.99920898
delta logL = -0.0019309134268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6095.99727809
delta logL = -2.15577529161e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0099       1.0000          .0000       10.000    
     3 'Normalizat'    1.4848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52873       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6095.997     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      239 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10052E-03    24.451        .11965E-02** at limit **
   2  Index         1.9759        8.6053        .50000        .49929E-04
   3  Normalizat    1.4848        .13288E-01    .20284E-03    .78904E-04
   4  Prefactor     .52871        .16141E-01    .39130E-03    .47967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100521
  Index      = 1.97586
  Normalizat = 1.48477
  Prefactor  = 0.528712
 **********
 **   18 **HESSE 
 **********

 FCN=   6095.997     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10052E-03    106.24        .23930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9759        6.6061        .50000       -.64955    
   3  Normalizat    1.4848        .28804E-01    .40568E-04   -.78207    
   4  Prefactor     .52871        .34986E-01    .15652E-04   -1.1068    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75361e-08
Minuit parameter uncertainties:
  1  0.0149005
  2  247.447
  3  0.0288047
  4  0.0349869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36096': 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) = 6095.99727746
delta logL = 6.04162778473e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.005e-04  1.490e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.976e+00  2.474e+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:  5.287e-01  3.499e-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.485e+00  2.880e-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/36096/cmap_HighResolution_400032001_400291201_4FGL_J1257.2+3646_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', job_status='DONE', photon_flux_upper_limit='3.91e-08', time_completed='2021-09-06 11:55:53.740599', job_id='36096', GAL2='0.53', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630954553.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='6.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='620' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 36096: <4FGL_J1257.2+3646_daily_bin620> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin620> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:32 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:40:34 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:40:34 2021
Terminated at Mon Sep  6 11:55:54 2021
Results reported at Mon Sep  6 11:55:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin620 194.31 36.7706 400032001 400291201 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

