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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin592
RA = 194.31, Dec = 36.7706
tmin = 392774401, tmax = 393033601
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='34694', job_status='RUN', time_executed='2021-09-06 11:39:52.532134', time_epoch_executed='1630953592.53' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34694/ft1_4FGL_J1257.2+3646_daily_bin592.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34694/ft2_4FGL_J1257.2+3646_daily_bin592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34694/ft1_4FGL_J1257.2+3646_daily_bin592.fits outfile=/scratch/kocevski/34694/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin592.fits ra=194.31 dec=36.7706 rad=12.0 tmin=392774401.0 tmax=393033601.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 5.11
user 4.88
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34694/ft1_filtered_4FGL_J1257.2+3646_daily_bin592.fits" evtable="EVENTS" scfile=/scratch/kocevski/34694/ft2_4FGL_J1257.2+3646_daily_bin592.fits sctable="SC_DATA" outfile=/scratch/kocevski/34694/ltcube_392774401_393033601_4FGL_J1257.2+3646_daily_bin592.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/34694/ft2_4FGL_J1257.2+3646_daily_bin592.fits
.....................!
real 12.01
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34694/ft1_filtered_4FGL_J1257.2+3646_daily_bin592.fits evtable="EVENTS" scfile=/scratch/kocevski/34694/ft2_4FGL_J1257.2+3646_daily_bin592.fits sctable="SC_DATA" expcube=/scratch/kocevski/34694/ltcube_392774401_393033601_4FGL_J1257.2+3646_daily_bin592.fits outfile=/scratch/kocevski/34694/expmap_392774401_393033601_4FGL_J1257.2+3646_daily_bin592.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/34694/ltcube_392774401_393033601_4FGL_J1257.2+3646_daily_bin592.fits
.....................!
real 190.17
user 185.14
sys 4.68

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/34694/ft1_filtered_4FGL_J1257.2+3646_daily_bin592.fits scfile=/scratch/kocevski/34694/ft2_4FGL_J1257.2+3646_daily_bin592.fits outfile=/scratch/kocevski/34694/cmap_392774401_393033601_4FGL_J1257.2+3646_daily_bin592.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34694/ft1_filtered_4FGL_J1257.2+3646_daily_bin592.fits scfile=/scratch/kocevski/34694/ft2_4FGL_J1257.2+3646_daily_bin592.fits outfile=/scratch/kocevski/34694/cmap_HighResolution_392774401_393033601_4FGL_J1257.2+3646_daily_bin592.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.59
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8307       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3485       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.401       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12478E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0315       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.878       1.0000         .10000E-03   10000.    
    15 'norm      '    .60777E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    9.8967       1.0000         .10000E-03   10000.    
    17 'norm      '    8.0424       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6182       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62459       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3842       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=   5960.307     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2453 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.680       -.49189E-05** at limit **
   2  norm          5.8306        2.9236       -.25480E-07    .10585E-03
   3  Prefactor     .10000E-03    2.3612       -.18692E-06** at limit **
   4  Prefactor     1.8395        1.5210        .58095E-07    .13998E-03
   5  Prefactor     .99022        2.1683       -.28452E-06   -.99752E-03
   6  Prefactor     7.3482        7.2166        .13764E-06    .17036E-04
   7  Prefactor     .10000E-03    7.8965       -.10463E-05** at limit **
   8  Prefactor     .10000E-03    7.9885        .88204E-06** at limit **
   9  Prefactor     10.395        81.465       -.13945E-04    .50924E-04
  10  Prefactor     .10000E-03    9.5935       -.44319E-05** at limit **
  11  norm          5.0319        3.8295       -.39332E-07   -.85666E-03
  12  Prefactor     .10000E-03    12.995        .36360E-05** at limit **
  13  Prefactor     .10000E-03    8.8680        .34467E-05** at limit **
  14  Prefactor     14.899        15.419        .33997E-05    .31235E-04
  15  norm          .23052E-01    2.8723       -.63917E-06   -.56708E-04
  16  norm          9.8960        11.443        .91744E-07   -.28819E-04
  17  norm          8.0431        3.7701       -.33863E-06   -.19002E-02
  18  norm          .10000E-03    4.2071       -.26285E-08** at limit **
  19  Prefactor     1.6192        1.9318       -.74918E-07   -.63197E-04
  20  Prefactor     .10000E-03    3.3343       -.45503E-07** at limit **
  21  Prefactor     .10000E-03    16.123        .14675E-05** at limit **
  22  Prefactor     .10000E-03    11.825       -.77836E-06** at limit **
  23  Prefactor     .10000E-03    24.443        .83913E-06** at limit **
  24  Normalizat    .62448        .15576        .13370E-06    .14689E-03
  25  Prefactor     1.3844        .20217        .25061E-06    .15796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 5.83055
  Prefactor  = 0.0001
  Prefactor  = 1.83951
  Prefactor  = 0.990218
  Prefactor  = 7.34824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3955
  Prefactor  = 0.0001
  norm       = 5.0319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.899
  norm       = 0.0230521
  norm       = 9.89599
  norm       = 8.04313
  norm       = 0.0001
  Prefactor  = 1.61922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.624476
  Prefactor  = 1.38443
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.307     FROM HESSE     STATUS=OK           431 CALLS     2884 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8306        2.9105        .88203E-04   -1.5225    
   3  Prefactor     .10000E-03    2.3671        .11584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8395        1.5253        .82834E-04   -1.5437    
   5  Prefactor     .99022        2.1541        .15979E-03   -1.5509    
   6  Prefactor     7.3482        7.1988        .14796E-03   -1.5166    
   7  Prefactor     .10000E-03    7.8908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.395        78.943        .12424E-03   -1.5063    
  10  Prefactor     .10000E-03    9.9474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0319        3.8379        .62937E-03   -1.5259    
  12  Prefactor     .10000E-03    12.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.7779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.899        15.628        .10384E-03   -1.4936    
  15  norm          .23052E-01    5.1812        .43417E-01   -1.5678    
  16  norm          9.8960        11.444        .12738E-03   -1.5079    
  17  norm          8.0431        3.8696        .49861E-03   -1.5141    
  18  norm          .10000E-03    4.2360        .15414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6192        1.9107        .11198E-03   -1.5453    
  20  Prefactor     .10000E-03    3.3372        .13765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .62448        .18471        .26758E-03   -1.0695    
  25  Prefactor     1.3844        .24086        .24542E-03   -.80830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79039e-09
Minuit parameter uncertainties:
  1  0.000232654
  2  2.91062
  3  3.28837e-06
  4  1.52533
  5  2.15428
  6  7.19968
  7  3.17241e-05
  8  3.36407e-05
  9  57.3995
  10  6.43821e-05
  11  3.83809
  12  0.000149168
  13  0.000112199
  14  15.632
  15  0.689752
  16  11.4465
  17  3.8697
  18  2.07708e-05
  19  1.91073
  20  2.50723e-06
  21  6.80604e-05
  22  3.272e-05
  23  5.31793e-05
  24  0.184897
  25  0.241052
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.438e-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.384e+00  2.411e-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:  6.245e-01  1.849e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34694/likelihoodResults_392774401_393033601_4FGL_J1257.2+3646_daily_bin592.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) = 5960.30728217
delta logL = -0.000479935803924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5960.30680128
delta logL = 9.54901224759e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5960.042     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      255 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22177        1.0698       -.11459E-04   -.15676E-02
   2  Index         3.5159        1.6506        .19229E-03   -.87649E-04
   3  Normalizat    .59194        .18682       -.35741E-04    .53379E-03
   4  Prefactor     1.4055        .24122        .81403E-05    .78548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.221773
  Index      = 3.51594
  Normalizat = 0.591942
  Prefactor  = 1.40552
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.042     FROM HESSE     STATUS=NOT POSDEF    45 CALLS      300 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22177        5.5154        .90712E-02   -1.5614    
   2  Index         3.5159        2.5769        .11425       -.30135    
   3  Normalizat    .59194        .27547E-01    .61993E-01   -1.0833    
   4  Prefactor     1.4055        .36364E-01    .55134E-01   -.80221    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65217e-10
Minuit parameter uncertainties:
  1  2.21166
  2  2.72199
  3  0.027548
  4  0.0363649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34694': 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) = 5960.04244688
delta logL = 0.264355360326

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.218e-01  2.212e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.516e+00  2.722e+00  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.406e+00  3.636e-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:  5.919e-01  2.755e-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/34694/cmap_HighResolution_392774401_393033601_4FGL_J1257.2+3646_daily_bin592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-06 11:51:18.126267', job_id='34694', GAL2='1.41', fit_tolerance='1e-08', EG2='0.59', EG='0.62', time_epoch_completed='1630954278.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='2.64e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='592' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 34694: <4FGL_J1257.2+3646_daily_bin592> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin592> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:48 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:50 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:50 2021
Terminated at Mon Sep  6 11:51:18 2021
Results reported at Mon Sep  6 11:51:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin592 194.31 36.7706 392774401 393033601 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

