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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin733
RA = 194.31, Dec = 36.7706
tmin = 429321601, tmax = 429580801
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='36271', job_status='RUN', time_executed='2021-09-06 11:41:00.211934', time_epoch_executed='1630953660.21' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36271/ft1_4FGL_J1257.2+3646_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36271/ft2_4FGL_J1257.2+3646_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36271/ft1_4FGL_J1257.2+3646_daily_bin733.fits outfile=/scratch/kocevski/36271/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin733.fits ra=194.31 dec=36.7706 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.81
user 6.38
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36271/ft1_filtered_4FGL_J1257.2+3646_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/36271/ft2_4FGL_J1257.2+3646_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/36271/ltcube_429321601_429580801_4FGL_J1257.2+3646_daily_bin733.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/36271/ft2_4FGL_J1257.2+3646_daily_bin733.fits
.....................!
real 12.26
user 11.92
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36271/ft1_filtered_4FGL_J1257.2+3646_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/36271/ft2_4FGL_J1257.2+3646_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/36271/ltcube_429321601_429580801_4FGL_J1257.2+3646_daily_bin733.fits outfile=/scratch/kocevski/36271/expmap_429321601_429580801_4FGL_J1257.2+3646_daily_bin733.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/36271/ltcube_429321601_429580801_4FGL_J1257.2+3646_daily_bin733.fits
.....................!
real 190.38
user 185.70
sys 4.24

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/36271/ft1_filtered_4FGL_J1257.2+3646_daily_bin733.fits scfile=/scratch/kocevski/36271/ft2_4FGL_J1257.2+3646_daily_bin733.fits outfile=/scratch/kocevski/36271/cmap_429321601_429580801_4FGL_J1257.2+3646_daily_bin733.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36271/ft1_filtered_4FGL_J1257.2+3646_daily_bin733.fits scfile=/scratch/kocevski/36271/ft2_4FGL_J1257.2+3646_daily_bin733.fits outfile=/scratch/kocevski/36271/cmap_HighResolution_429321601_429580801_4FGL_J1257.2+3646_daily_bin733.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.54
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.814       1.0000         .10000E-03   10000.    
     2 'norm      '    12.967       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8902       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6701       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    74.199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54511E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4203       1.0000         .10000E-03   10000.    
    18 'norm      '    .23520E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3187       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.432       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.279       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93123       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2754       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=   6902.071     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2875 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.841        52.739        .43629E-04   -.29255E-06
   2  norm          12.966        4.8987       -.26152E-06   -.48394E-04
   3  Prefactor     4.8920        8.0628       -.21217E-05   -.20588E-03
   4  Prefactor     1.6711        2.6698       -.12991E-06   -.54633E-03
   5  Prefactor     1.6156        1.6361        .43990E-07    .41978E-04
   6  Prefactor     5.8405        8.5301        .13081E-06   -.10015E-03
   7  Prefactor     33.902        33.690        .29754E-05   -.10410E-04
   8  Prefactor     14.513        14.187        .31881E-06    .11230E-04
   9  Prefactor     74.220        79.871        .23406E-04    .10607E-04
  10  Prefactor     .10000E-03    1.5597        .32026E-07** at limit **
  11  norm          .10000E-03    1.8813       -.31909E-06** at limit **
  12  Prefactor     .10000E-03    15.105        .63016E-05** at limit **
  13  Prefactor     .10000E-03    11.155       -.20038E-05** at limit **
  14  Prefactor     .10028E-03    8.1376       -.10478E-05** at limit **
  15  norm          .10000E-03    1.7850       -.33224E-07** at limit **
  16  norm          .10000E-03    5.2105        .42147E-07** at limit **
  17  norm          6.4171        3.4738        .19829E-05    .19311E-02
  18  norm          .10000E-03    11.604       -.88504E-05** at limit **
  19  Prefactor     5.3158        3.9646        .13482E-06    .13483E-03
  20  Prefactor     .10000E-03    11.243       -.30450E-05** at limit **
  21  Prefactor     30.434        69.255        .34843E-05    .14152E-04
  22  Prefactor     .10000E-03    10.406        .78332E-05** at limit **
  23  Prefactor     59.300        68.640        .25673E-04   -.14041E-04
  24  Normalizat    .93133        .17752       -.65998E-05    .23585E-03
  25  Prefactor     1.2752        .21311       -.14452E-05    .82309E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8407
  norm       = 12.9664
  Prefactor  = 4.89196
  Prefactor  = 1.67114
  Prefactor  = 1.61556
  Prefactor  = 5.84051
  Prefactor  = 33.9024
  Prefactor  = 14.5132
  Prefactor  = 74.2203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100282
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.4171
  norm       = 0.000100005
  Prefactor  = 5.3158
  Prefactor  = 0.0001
  Prefactor  = 30.4342
  Prefactor  = 0.0001
  Prefactor  = 59.3003
  Normalizat = 0.931326
  Prefactor  = 1.27517
 **********
 **   18 **HESSE 
 **********

 FCN=   6902.071     FROM HESSE     STATUS=OK           427 CALLS     3302 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.841        52.476        .75963E-04   -1.4652    
   2  norm          12.966        4.8858        .10069E-03   -1.4988    
   3  Prefactor     4.8920        8.0521        .18189E-03   -1.5266    
   4  Prefactor     1.6711        2.6389        .15365E-03   -1.5449    
   5  Prefactor     1.6156        1.6388        .10354E-03   -1.5454    
   6  Prefactor     5.8405        8.5157        .16617E-03   -1.5225    
   7  Prefactor     33.902        33.688        .68825E-04   -1.4543    
   8  Prefactor     14.513        14.180        .10514E-03   -1.4946    
   9  Prefactor     74.220        79.695        .46611E-04   -1.3983    
  10  Prefactor     .10000E-03    1.5609        .10131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8906        .11120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10028E-03    50.927        .45332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7922        .10832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4171        3.4568        .10705E-03   -1.5201    
  18  norm          .10000E-03    11.922        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3158        3.9382        .12281E-03   -1.5247    
  20  Prefactor     .10000E-03    11.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.434        69.188        .72630E-04   -1.4604    
  22  Prefactor     .10000E-03    10.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     59.300        68.640        .52109E-04   -1.4166    
  24  Normalizat    .93133        .20939        .26519E-03   -.95368    
  25  Prefactor     1.2752        .25353        .28767E-03   -.84048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02356e-09
Minuit parameter uncertainties:
  1  52.5627
  2  4.88599
  3  8.05385
  4  2.63909
  5  1.6388
  6  8.51749
  7  33.7067
  8  14.1829
  9  79.8097
  10  3.07365e-06
  11  3.65819e-05
  12  2.14488e-05
  13  4.91469e-05
  14  0.00758022
  15  3.83283e-06
  16  1.36956e-05
  17  3.45687
  18  0.00048462
  19  3.93843
  20  1.31258e-05
  21  69.371
  22  6.37658e-05
  23  68.732
  24  0.209574
  25  0.253776
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.074e-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:  1.275e+00  2.538e-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:  9.313e-01  2.096e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36271/likelihoodResults_429321601_429580801_4FGL_J1257.2+3646_daily_bin733.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) = 6902.07402164
delta logL = -0.00293298786164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6902.07108824
delta logL = 4.17527189711e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0077       1.0000          .0000       10.000    
     3 'Normalizat'    .93131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2752       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=   6902.071     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    30.113        .10299E-02** at limit **
   2  Index         1.9401        5.4160        .50000        .86970E-04
   3  Normalizat    .93132        .18257E-01    .26519E-03    .53030E-04
   4  Prefactor     1.2752        .22846E-01    .28767E-03    .70661E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6902.071     FROM SIMPLEX   STATUS=PROGRESS     123 CALLS      360 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    30.113        .17852E-03** at limit **
   2  Index         1.9389        5.4160        .43249E-03    .86970E-04
   3  Normalizat    .93132        .18257E-01    .27915E-05    .53030E-04
   4  Prefactor     1.2752        .22846E-01    .38945E-05    .70661E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6902.071     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      411 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.059        .20597E-02** at limit **
   2  Index         1.5461        6.9589        .50000        .14882E-06
   3  Normalizat    .93132        .18268E-01    .10608E-04   -.77595E-04
   4  Prefactor     1.2752        .22859E-01    .11507E-04   -.66788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54615
  Normalizat = 0.931323
  Prefactor  = 1.27517
 **********
 **   18 **HESSE 
 **********

 FCN=   6902.071     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      440 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    154.05        .41194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5461        5.7727        .50000       -.76255    
   3  Normalizat    .93132        .41645E-01    .21215E-05   -.95368    
   4  Prefactor     1.2752        .52114E-01    .23014E-05   -.84048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73663e-09
Minuit parameter uncertainties:
  1  5.96085e-05
  2  639.03
  3  0.0416462
  4  0.0521158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36271': 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) = 6902.07108235
delta logL = 6.30858539807e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.961e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.546e+00  6.390e+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.275e+00  5.212e-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:  9.313e-01  4.165e-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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/36271/cmap_HighResolution_429321601_429580801_4FGL_J1257.2+3646_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2021-09-06 11:54:08.051558', job_id='36271', GAL2='1.28', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630954448.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='6.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='733' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 36271: <4FGL_J1257.2+3646_daily_bin733> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin733 194.31 36.7706 429321601 429580801 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 :                                   773.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            804 sec.

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

