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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin275
RA = 194.31, Dec = 36.7706
tmin = 310608001, tmax = 310867201
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='32834', job_status='RUN', time_executed='2021-09-06 11:34:03.388724', time_epoch_executed='1630953243.39' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32834/ft1_4FGL_J1257.2+3646_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32834/ft2_4FGL_J1257.2+3646_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32834/ft1_4FGL_J1257.2+3646_daily_bin275.fits outfile=/scratch/kocevski/32834/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin275.fits ra=194.31 dec=36.7706 rad=12.0 tmin=310608001.0 tmax=310867201.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.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32834/ft1_filtered_4FGL_J1257.2+3646_daily_bin275.fits" evtable="EVENTS" scfile=/scratch/kocevski/32834/ft2_4FGL_J1257.2+3646_daily_bin275.fits sctable="SC_DATA" outfile=/scratch/kocevski/32834/ltcube_310608001_310867201_4FGL_J1257.2+3646_daily_bin275.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/32834/ft2_4FGL_J1257.2+3646_daily_bin275.fits
.....................!
real 11.96
user 11.63
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32834/ft1_filtered_4FGL_J1257.2+3646_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/32834/ft2_4FGL_J1257.2+3646_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/32834/ltcube_310608001_310867201_4FGL_J1257.2+3646_daily_bin275.fits outfile=/scratch/kocevski/32834/expmap_310608001_310867201_4FGL_J1257.2+3646_daily_bin275.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/32834/ltcube_310608001_310867201_4FGL_J1257.2+3646_daily_bin275.fits
.....................!
real 192.34
user 185.45
sys 5.90

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/32834/ft1_filtered_4FGL_J1257.2+3646_daily_bin275.fits scfile=/scratch/kocevski/32834/ft2_4FGL_J1257.2+3646_daily_bin275.fits outfile=/scratch/kocevski/32834/cmap_310608001_310867201_4FGL_J1257.2+3646_daily_bin275.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32834/ft1_filtered_4FGL_J1257.2+3646_daily_bin275.fits scfile=/scratch/kocevski/32834/ft2_4FGL_J1257.2+3646_daily_bin275.fits outfile=/scratch/kocevski/32834/cmap_HighResolution_310608001_310867201_4FGL_J1257.2+3646_daily_bin275.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.648       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.197       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.635       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9441       1.0000         .10000E-03   10000.    
    17 'norm      '    .23134E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8805       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17064E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.508       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84851       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4133       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=   6474.176     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2952 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.785       -.14502E-05** at limit **
   2  norm          18.648        5.3266       -.32323E-07   -.29943E-03
   3  Prefactor     10.197        7.8907       -.17206E-06    .39400E-04
   4  Prefactor     2.2511        3.0395       -.27568E-06   -.23667E-03
   5  Prefactor     3.1447        2.4069       -.39795E-08    .18542E-03
   6  Prefactor     25.433        13.350        .22497E-06    .21053E-03
   7  Prefactor     5.4052        27.139       -.17258E-05   -.57442E-04
   8  Prefactor     .10000E-03    26.365       -.28469E-05** at limit **
   9  Prefactor     .10000E-03    34.903        .43137E-06** at limit **
  10  Prefactor     .10000E-03    3.6411       -.40797E-06** at limit **
  11  norm          12.632        6.0915        .42981E-06    .98019E-03
  12  Prefactor     .10000E-03    24.368       -.23900E-05** at limit **
  13  Prefactor     2.7306        31.449       -.44518E-05   -.96021E-04
  14  Prefactor     .10000E-03    9.4400       -.31708E-06** at limit **
  15  norm          .10000E-03    2.1143        .18534E-06** at limit **
  16  norm          2.9446        14.162       -.26527E-05   -.12954E-03
  17  norm          .76522E-01    84.379        .20017E-04   -.18639E-04
  18  norm          .10000E-03    2.7917        .63930E-07** at limit **
  19  Prefactor     3.8725        4.1162       -.35500E-06    .34202E-03
  20  Prefactor     .10000E-03    112.38       -.73402E-05** at limit **
  21  Prefactor     .10000E-03    32.086        .57528E-06** at limit **
  22  Prefactor     13.459        22.001       -.39269E-07    .93331E-04
  23  Prefactor     .10000E-03    17.365        .30390E-06** at limit **
  24  Normalizat    .84837        .21799       -.50532E-05    .69651E-03
  25  Prefactor     1.4134        .27786        .68441E-05    .25976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 18.6481
  Prefactor  = 10.1968
  Prefactor  = 2.25108
  Prefactor  = 3.14468
  Prefactor  = 25.4331
  Prefactor  = 5.40517
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.6323
  Prefactor  = 0.000100005
  Prefactor  = 2.73063
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.94462
  norm       = 0.0765224
  norm       = 0.0001
  Prefactor  = 3.87251
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 13.4593
  Prefactor  = 0.0001
  Normalizat = 0.848371
  Prefactor  = 1.41344
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.176     FROM HESSE     STATUS=OK           423 CALLS     3375 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.648        5.3239        .85104E-04   -1.4844    
   3  Prefactor     10.197        7.8918        .12548E-03   -1.5069    
   4  Prefactor     2.2511        3.0231        .14027E-03   -1.5408    
   5  Prefactor     3.1447        2.4022        .10451E-03   -1.5353    
   6  Prefactor     25.433        13.339        .79433E-04   -1.4699    
   7  Prefactor     5.4052        27.264        .17312E-03   -1.5243    
   8  Prefactor     .10000E-03    26.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6836        .15015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.632        6.1488        .11269E-03   -1.4997    
  12  Prefactor     .10000E-03    24.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7306        32.314        .24448E-03   -1.5377    
  14  Prefactor     .10000E-03    9.4889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1317        .11440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9446        14.250        .23671E-03   -1.5365    
  17  norm          .76522E-01    91.415        .22896E-02   -1.5653    
  18  norm          .10000E-03    2.7966        .13121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8725        4.2273        .74814E-03   -1.5314    
  20  Prefactor     .10000E-03    110.80        .45461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.459        21.954        .10898E-03   -1.4974    
  23  Prefactor     .10000E-03    17.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84837        .22634        .27342E-03   -.98299    
  25  Prefactor     1.4134        .28335        .27881E-03   -.79994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79475e-08
Minuit parameter uncertainties:
  1  0.000277927
  2  5.32403
  3  7.89256
  4  3.02335
  5  2.40231
  6  13.3408
  7  24.2961
  8  0.000697578
  9  0.000311491
  10  1.98455e-05
  11  6.14907
  12  0.000666956
  13  18.7992
  14  3.20885e-06
  15  2.09755e-05
  16  12.9604
  17  5.29436
  18  3.05228e-06
  19  4.22765
  20  0.000499304
  21  0.000326405
  22  21.9674
  23  0.000150119
  24  0.22659
  25  0.283665
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.985e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.413e+00  2.837e-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:  8.484e-01  2.266e-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: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32834/likelihoodResults_310608001_310867201_4FGL_J1257.2+3646_daily_bin275.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) = 6474.1772761
delta logL = -0.00129110083253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6474.17598494
delta logL = 6.38738129055e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0134       1.0000          .0000       10.000    
     3 'Normalizat'    .84838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4135       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=   6474.176     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    51.618        .15134E-02** at limit **
   2  Index         1.9581        8.9756        .50000        .24576E-04
   3  Normalizat    .84836        .16059E-01    .27342E-03    .20582E-04
   4  Prefactor     1.4134        .20592E-01    .27881E-03    .19165E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6474.176     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      367 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    51.618        .24676E-03** at limit **
   2  Index         1.9572        8.9756        .31636E-03    .24576E-04
   3  Normalizat    .84835        .16059E-01    .44117E-05    .20582E-04
   4  Prefactor     1.4134        .20592E-01    .31909E-05    .19165E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6474.176     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      419 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.530        .30268E-02** at limit **
   2  Index         1.7008        9.1257        .50000       -.28228E-06
   3  Normalizat    .84836        .14246E-01    .10937E-04    .32599E-03
   4  Prefactor     1.4135        .18267E-01    .11152E-04    .34171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.70076
  Normalizat = 0.848364
  Prefactor  = 1.41345
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.176     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      448 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    255.09        .60535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7008        8.2026        .50000       -.72062    
   3  Normalizat    .84836        .36940E-01    .21873E-05   -.98299    
   4  Prefactor     1.4135        .47347E-01    .22304E-05   -.79993    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04637e-09
Minuit parameter uncertainties:
  1  6.75886e-05
  2  837.821
  3  0.0369413
  4  0.0473483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32834': 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) = 6474.17598372
delta logL = 1.28112515085e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.759e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.701e+00  8.378e+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.413e+00  4.735e-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:  8.484e-01  3.694e-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/32834/cmap_HighResolution_310608001_310867201_4FGL_J1257.2+3646_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-09-06 11:46:46.295923', job_id='32834', GAL2='1.41', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630954006.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='275' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:46:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 32834: <4FGL_J1257.2+3646_daily_bin275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin275 194.31 36.7706 310608001 310867201 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 :                                   757.02 sec.
    Max Memory :                                 1077 MB
    Average Memory :                             249.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

