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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin556
RA = 194.31, Dec = 36.7706
tmin = 383443201, tmax = 383702401
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='34638', job_status='RUN', time_executed='2021-09-06 11:39:48.708377', time_epoch_executed='1630953588.71' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34638

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34638/ft1_4FGL_J1257.2+3646_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34638/ft2_4FGL_J1257.2+3646_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34638/ft1_4FGL_J1257.2+3646_daily_bin556.fits outfile=/scratch/kocevski/34638/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin556.fits ra=194.31 dec=36.7706 rad=12.0 tmin=383443201.0 tmax=383702401.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.40
user 3.18
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34638/ft1_filtered_4FGL_J1257.2+3646_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/34638/ft2_4FGL_J1257.2+3646_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/34638/ltcube_383443201_383702401_4FGL_J1257.2+3646_daily_bin556.fits outfile=/scratch/kocevski/34638/expmap_383443201_383702401_4FGL_J1257.2+3646_daily_bin556.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/34638/ltcube_383443201_383702401_4FGL_J1257.2+3646_daily_bin556.fits
.....................!
real 189.93
user 185.30
sys 4.25

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/34638/ft1_filtered_4FGL_J1257.2+3646_daily_bin556.fits scfile=/scratch/kocevski/34638/ft2_4FGL_J1257.2+3646_daily_bin556.fits outfile=/scratch/kocevski/34638/cmap_383443201_383702401_4FGL_J1257.2+3646_daily_bin556.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34638/ft1_filtered_4FGL_J1257.2+3646_daily_bin556.fits scfile=/scratch/kocevski/34638/ft2_4FGL_J1257.2+3646_daily_bin556.fits outfile=/scratch/kocevski/34638/cmap_HighResolution_383443201_383702401_4FGL_J1257.2+3646_daily_bin556.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.63
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.704       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.809       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.6339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0440       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.885       1.0000         .10000E-03   10000.    
    17 'norm      '    .25358E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.1522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    151.33       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0368       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95421       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=   6028.630     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2929 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    16.114        .26466E-05** at limit **
   2  norm          .10000E-03    1.5029        .13607E-07** at limit **
   3  Prefactor     .44189        7.0059        .34134E-05   -.44976E-03
   4  Prefactor     1.7117        1.7155        .39964E-07    .17230E-04
   5  Prefactor     1.8276        1.6755       -.13508E-07   -.43132E-04
   6  Prefactor     .10000E-03    5.4843       -.34793E-07** at limit **
   7  Prefactor     37.707        29.144        .10419E-05    .22459E-03
   8  Prefactor     .10000E-03    6.7013        .18679E-06** at limit **
   9  Prefactor     33.795        82.082       -.67605E-05   -.11702E-03
  10  Prefactor     .10000E-03    2.1008       -.89427E-07** at limit **
  11  norm          9.6369        5.6646        .93962E-06   -.18201E-03
  12  Prefactor     .10001E-03    19.620       -.26831E-05** at limit **
  13  Prefactor     .10000E-03    13.720        .12355E-05** at limit **
  14  Prefactor     1.0428        6.9120        .20806E-05   -.22336E-03
  15  norm          .10000E-03    .88582        .63150E-08** at limit **
  16  norm          12.885        13.505       -.19942E-07   -.13164E-04
  17  norm          .10001E-03    2.1558       -.13515E-05** at limit **
  18  norm          6.1528        5.6217        .45028E-06    .10609E-02
  19  Prefactor     .10000E-03    .48188       -.13676E-07** at limit **
  20  Prefactor     .10000E-03    2.7907       -.11284E-06** at limit **
  21  Prefactor     .10000E-03    11.350       -.20793E-05** at limit **
  22  Prefactor     .10000E-03    2.9734        .96108E-07** at limit **
  23  Prefactor     151.34        81.953        .17230E-05    .19207E-03
  24  Normalizat    1.0359        .16750       -.58819E-06    .23659E-03
  25  Prefactor     .95539        .20757       -.22629E-07    .12644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.441885
  Prefactor  = 1.71166
  Prefactor  = 1.82757
  Prefactor  = 0.0001
  Prefactor  = 37.7075
  Prefactor  = 0.0001
  Prefactor  = 33.7949
  Prefactor  = 0.0001
  norm       = 9.63694
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 1.04284
  norm       = 0.0001
  norm       = 12.8845
  norm       = 0.000100011
  norm       = 6.15279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 151.341
  Normalizat = 1.03586
  Prefactor  = 0.955392
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.630     FROM HESSE     STATUS=OK           419 CALLS     3348 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    16.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5297        .92723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44189        7.9054        .41516E-03   -1.5575    
   4  Prefactor     1.7117        1.7000        .98375E-04   -1.5446    
   5  Prefactor     1.8276        1.6831        .93108E-04   -1.5438    
   6  Prefactor     .10000E-03    5.5206        .17755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.707        29.320        .65272E-04   -1.4479    
   8  Prefactor     .10000E-03    6.7078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.795        83.182        .68917E-04   -1.4545    
  10  Prefactor     .10000E-03    2.1120        .10990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.6369        5.7000        .63998E-03   -1.5087    
  12  Prefactor     .10001E-03    20.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0428        7.0484        .40408E-03   -1.5504    
  15  norm          .10000E-03    .88614        .71365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.885        13.507        .11159E-03   -1.4990    
  17  norm          .10001E-03    5.7414        .18664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.1528        5.1462        .77748E-03   -1.5212    
  19  Prefactor     .10000E-03    .48248        .52633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7951        .12670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9754        .13078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     151.34        82.745        .32765E-04   -1.3241    
  24  Normalizat    1.0359        .19958        .22288E-03   -.91839    
  25  Prefactor     .95539        .24748        .29208E-03   -.94232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54519e-09
Minuit parameter uncertainties:
  1  0.000578794
  2  4.64695e-07
  3  3.73822
  4  1.70008
  5  1.68311
  6  9.75172e-07
  7  29.3315
  8  2.67128e-05
  9  83.4695
  10  5.88715e-06
  11  5.70028
  12  0.000649841
  13  0.000265161
  14  5.42296
  15  6.1235e-07
  16  13.5107
  17  0.000503868
  18  5.14652
  19  2.8661e-07
  20  8.67333e-06
  21  0.000383157
  22  9.05342e-06
  23  82.8087
  24  0.199725
  25  0.247773
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.887e-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:  9.554e-01  2.478e-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.036e+00  1.997e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34638/likelihoodResults_383443201_383702401_4FGL_J1257.2+3646_daily_bin556.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) = 6028.63259676
delta logL = -0.00224028891535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6028.63035785
delta logL = -1.37962524605e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10947E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9980       1.0000          .0000       10.000    
     3 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95536       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=   6028.630     FROM MIGRAD    STATUS=FAILED        85 CALLS      234 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    22.570        .11367E-02** at limit **
   2  Index         1.9446        5.2399        .50000        .88534E-04
   3  Normalizat    1.0359        .12548E-01    .22288E-03    .23911E-03
   4  Prefactor     .95539        .15925E-01    .29208E-03    .19863E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6028.630     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      357 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    22.570        .24326E-03** at limit **
   2  Index         1.9446        5.2399        .41554E-03    .88534E-04
   3  Normalizat    1.0359        .12548E-01    .26433E-05    .23911E-03
   4  Prefactor     .95539        .15925E-01    .37762E-05    .19863E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6028.630     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      411 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.834        .22734E-02** at limit **
   2  Index         1.6133        8.3650        .50000        .25050E-06
   3  Normalizat    1.0359        .11565E-01    .44576E-04   -.33258E-04
   4  Prefactor     .95539        .14677E-01    .11683E-04   -.35615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.61329
  Normalizat = 1.03586
  Prefactor  = 0.955393
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.91        .45468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6133        5.7969        .50000       -.74414    
   3  Normalizat    1.0359        .26080E-01    .89151E-05   -.91839    
   4  Prefactor     .95539        .33101E-01    .23366E-05   -.94232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.58163e-09
Minuit parameter uncertainties:
  1  0.000250268
  2  326.929
  3  0.0260799
  4  0.0331013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34638': 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) = 6028.63035096
delta logL = 5.51616540179e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.503e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.613e+00  3.269e+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:  9.554e-01  3.310e-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.036e+00  2.608e-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/34638/cmap_HighResolution_383443201_383702401_4FGL_J1257.2+3646_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.72e-08', time_completed='2021-09-06 11:52:02.558562', job_id='34638', GAL2='0.96', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630954322.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='556' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 34638: <4FGL_J1257.2+3646_daily_bin556> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin556> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:44 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:35:46 2021
Terminated at Mon Sep  6 11:52:03 2021
Results reported at Mon Sep  6 11:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin556 194.31 36.7706 383443201 383702401 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 :                                   728.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            979 sec.

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

