/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 117 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 = 7469
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin346
RA = 194.31, Dec = 36.7706
tmin = 329011201, tmax = 329270401
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='32940', job_status='RUN', time_executed='2021-09-06 11:32:46.908301', time_epoch_executed='1630953166.91' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32940

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32940/ft1_4FGL_J1257.2+3646_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32940/ft2_4FGL_J1257.2+3646_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32940/ft1_4FGL_J1257.2+3646_daily_bin346.fits outfile=/scratch/kocevski/32940/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin346.fits ra=194.31 dec=36.7706 rad=12.0 tmin=329011201.0 tmax=329270401.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.50
user 3.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32940/ft2_4FGL_J1257.2+3646_daily_bin346.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/32940/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/32940/ft1_filtered_4FGL_J1257.2+3646_daily_bin346.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32940/ft1_filtered_4FGL_J1257.2+3646_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/32940/ft2_4FGL_J1257.2+3646_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/32940/ltcube_329011201_329270401_4FGL_J1257.2+3646_daily_bin346.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/32940/ft2_4FGL_J1257.2+3646_daily_bin346.fits
.....................!
real 11.75
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32940/ft1_filtered_4FGL_J1257.2+3646_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/32940/ft2_4FGL_J1257.2+3646_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/32940/ltcube_329011201_329270401_4FGL_J1257.2+3646_daily_bin346.fits outfile=/scratch/kocevski/32940/expmap_329011201_329270401_4FGL_J1257.2+3646_daily_bin346.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/32940/ltcube_329011201_329270401_4FGL_J1257.2+3646_daily_bin346.fits
.....................!
real 189.87
user 185.05
sys 4.51

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/32940/ft1_filtered_4FGL_J1257.2+3646_daily_bin346.fits scfile=/scratch/kocevski/32940/ft2_4FGL_J1257.2+3646_daily_bin346.fits outfile=/scratch/kocevski/32940/cmap_329011201_329270401_4FGL_J1257.2+3646_daily_bin346.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32940/ft1_filtered_4FGL_J1257.2+3646_daily_bin346.fits scfile=/scratch/kocevski/32940/ft2_4FGL_J1257.2+3646_daily_bin346.fits outfile=/scratch/kocevski/32940/cmap_HighResolution_329011201_329270401_4FGL_J1257.2+3646_daily_bin346.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.162       1.0000         .10000E-03   10000.    
     2 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5276       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2192       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11989E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.388       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.204       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5198       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11136E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2870       1.0000         .10000E-03   10000.    
    16 'norm      '    11.126       1.0000         .10000E-03   10000.    
    17 'norm      '    4.9040       1.0000         .10000E-03   10000.    
    18 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5762       1.0000         .10000E-03   10000.    
    21 'Prefactor '    111.67       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0701       1.0000         .10000E-03   10000.    
    23 'Prefactor '    77.409       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94004       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87996       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=   5295.972     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3003 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.154        40.919       -.34852E-05   -.11606E-03
   2  norm          .10000E-03    1.5300       -.56678E-07** at limit **
   3  Prefactor     6.5268        9.4295        .33347E-05   -.47791E-03
   4  Prefactor     3.2180        2.2784       -.23321E-07    .41634E-04
   5  Prefactor     .10000E-03    1.6517       -.48044E-08** at limit **
   6  Prefactor     20.702        13.348       -.21442E-06   -.85264E-04
   7  Prefactor     17.383        23.811       -.23703E-06   -.40851E-04
   8  Prefactor     11.205        16.440       -.13891E-06   -.28198E-04
   9  Prefactor     .10000E-03    84.997        .18623E-06** at limit **
  10  Prefactor     .10000E-03    1.8787        .76592E-08** at limit **
  11  norm          2.5178        4.6951        .43493E-06    .28774E-04
  12  Prefactor     .10000E-03    21.156        .84421E-07** at limit **
  13  Prefactor     .10000E-03    22.569       -.34328E-07** at limit **
  14  Prefactor     .10000E-03    4.3176        .35793E-08** at limit **
  15  norm          4.2872        4.2067       -.61915E-07   -.13918E-03
  16  norm          11.127        10.985        .28405E-07   -.85109E-05
  17  norm          4.9017        4.3417       -.50286E-07   -.54121E-04
  18  norm          .10000E-03    4.6054       -.38289E-07** at limit **
  19  Prefactor     .10000E-03    1.1109       -.18007E-07** at limit **
  20  Prefactor     5.5729        13.866        .44162E-06    .22143E-04
  21  Prefactor     111.66        69.005       -.65670E-06   -.86546E-04
  22  Prefactor     5.0676        17.368        .38520E-06    .50251E-05
  23  Prefactor     77.383        65.528       -.38402E-05   -.30134E-03
  24  Normalizat    .94027        .17190        .84421E-06   -.71254E-04
  25  Prefactor     .87972        .20499       -.12281E-05    .42306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1536
  norm       = 0.0001
  Prefactor  = 6.52675
  Prefactor  = 3.218
  Prefactor  = 0.0001
  Prefactor  = 20.702
  Prefactor  = 17.3832
  Prefactor  = 11.205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.28716
  norm       = 11.1269
  norm       = 4.90167
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57289
  Prefactor  = 111.662
  Prefactor  = 5.06761
  Prefactor  = 77.3826
  Normalizat = 0.940274
  Prefactor  = 0.879721
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.972     FROM HESSE     STATUS=OK           431 CALLS     3434 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.154        41.170        .85084E-04   -1.4766    
   2  norm          .10000E-03    2.2547        .16898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5268        9.8018        .78538E-03   -1.5197    
   4  Prefactor     3.2180        2.1971        .86033E-04   -1.5349    
   5  Prefactor     .10000E-03    2.9685        .17729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.702        13.193        .88036E-04   -1.4798    
   7  Prefactor     17.383        23.853        .96050E-04   -1.4874    
   8  Prefactor     11.205        16.446        .11969E-03   -1.5038    
   9  Prefactor     .10000E-03    85.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8813        .97388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5178        4.6600        .20051E-03   -1.5391    
  12  Prefactor     .10000E-03    21.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3205        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2872        4.2044        .14297E-03   -1.5294    
  16  norm          11.127        10.991        .12011E-03   -1.5041    
  17  norm          4.9017        4.2987        .12822E-03   -1.5265    
  18  norm          .10000E-03    4.6277        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1135        .74792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5729        13.804        .17013E-03   -1.5236    
  21  Prefactor     111.66        69.181        .38066E-04   -1.3591    
  22  Prefactor     5.0676        17.362        .17857E-03   -1.5258    
  23  Prefactor     77.383        70.295        .45642E-04   -1.3946    
  24  Normalizat    .94027        .20254        .22372E-03   -.95059    
  25  Prefactor     .87972        .24005        .28432E-03   -.96853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07783e-09
Minuit parameter uncertainties:
  1  41.2231
  2  1.15973e-07
  3  9.80423
  4  2.19716
  5  2.81746e-06
  6  13.1944
  7  23.8658
  8  16.4521
  9  4.14619e-05
  10  2.12239e-07
  11  4.66068
  12  4.92201e-06
  13  4.83375e-05
  14  4.97459e-07
  15  4.20466
  16  10.9932
  17  4.29901
  18  6.32372e-08
  19  2.16762e-07
  20  13.8115
  21  69.2306
  22  17.3794
  23  70.3705
  24  0.202706
  25  0.240341
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.122e-07  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:  8.797e-01  2.403e-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.403e-01  2.027e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32940/likelihoodResults_329011201_329270401_4FGL_J1257.2+3646_daily_bin346.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) = 5295.97487107
delta logL = -0.00249011639698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5295.97238067
delta logL = 2.78088009509e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0103       1.0000          .0000       10.000    
     3 'Normalizat'    .94027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87974       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=   5295.972     FROM MIGRAD    STATUS=FAILED        85 CALLS      236 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    43.147        .98550E-03** at limit **
   2  Index         1.9394        7.7963        .50000        .59974E-04
   3  Normalizat    .94028        .19444E-01    .22372E-03    .33082E-04
   4  Prefactor     .87972        .24091E-01    .28432E-03    .33588E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5295.972     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      367 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    43.147        .19010E-03** at limit **
   2  Index         1.9377        7.7963        .56718E-03    .59974E-04
   3  Normalizat    .94027        .19444E-01    .42907E-05    .33082E-04
   4  Prefactor     .87971        .24091E-01    .51930E-05    .33588E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5295.972     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      418 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.509        .19710E-02** at limit **
   2  Index         1.5802        7.9941        .50000       -.92655E-07
   3  Normalizat    .94028        .19069E-01    .89487E-05    .28610E-03
   4  Prefactor     .87972        .23627E-01    .11373E-04    .22592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58018
  Normalizat = 0.940276
  Prefactor  = 0.879719
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.972     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    202.24        .39420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5802        5.7747        .50000       -.75318    
   3  Normalizat    .94028        .43997E-01    .17897E-05   -.95059    
   4  Prefactor     .87972        .54496E-01    .22746E-05   -.96853    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24631e-09
Minuit parameter uncertainties:
  1  6.3677e-05
  2  804.721
  3  0.043999
  4  0.0544996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32940': 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) = 5295.97237681
delta logL = 4.1446328396e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.368e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.580e+00  8.047e+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:  8.797e-01  5.450e-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.403e-01  4.400e-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/32940/cmap_HighResolution_329011201_329270401_4FGL_J1257.2+3646_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-03', job_status='DONE', photon_flux_upper_limit='3.79e-08', time_completed='2021-09-06 11:44:02.096060', job_id='32940', GAL2='0.88', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630953842.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='346' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:44:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 32940: <4FGL_J1257.2+3646_daily_bin346> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin346> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:28 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:29 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:30:29 2021
Terminated at Mon Sep  6 11:44:03 2021
Results reported at Mon Sep  6 11:44:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin346 194.31 36.7706 329011201 329270401 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

