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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin464
RA = 194.31, Dec = 36.7706
tmin = 359596801, tmax = 359856001
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='34496', job_status='RUN', time_executed='2021-09-06 11:37:50.615567', time_epoch_executed='1630953470.62' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34496/ft1_4FGL_J1257.2+3646_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34496/ft2_4FGL_J1257.2+3646_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34496/ft1_4FGL_J1257.2+3646_daily_bin464.fits outfile=/scratch/kocevski/34496/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin464.fits ra=194.31 dec=36.7706 rad=12.0 tmin=359596801.0 tmax=359856001.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.76
user 3.50
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34496/ft1_filtered_4FGL_J1257.2+3646_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/34496/ft2_4FGL_J1257.2+3646_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/34496/ltcube_359596801_359856001_4FGL_J1257.2+3646_daily_bin464.fits outfile=/scratch/kocevski/34496/expmap_359596801_359856001_4FGL_J1257.2+3646_daily_bin464.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/34496/ltcube_359596801_359856001_4FGL_J1257.2+3646_daily_bin464.fits
.....................!
real 192.11
user 185.28
sys 5.44

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/34496/ft1_filtered_4FGL_J1257.2+3646_daily_bin464.fits scfile=/scratch/kocevski/34496/ft2_4FGL_J1257.2+3646_daily_bin464.fits outfile=/scratch/kocevski/34496/cmap_359596801_359856001_4FGL_J1257.2+3646_daily_bin464.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/34496/ft1_filtered_4FGL_J1257.2+3646_daily_bin464.fits scfile=/scratch/kocevski/34496/ft2_4FGL_J1257.2+3646_daily_bin464.fits outfile=/scratch/kocevski/34496/cmap_HighResolution_359596801_359856001_4FGL_J1257.2+3646_daily_bin464.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.894       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5213       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1134       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.919       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8932       1.0000         .10000E-03   10000.    
    11 'norm      '    .21582       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .87544E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.411       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.371       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1047       1.0000         .10000E-03   10000.    
    18 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56321       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.647       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5900       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15347E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64586       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2793       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=   5476.273     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3059 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.894        38.183       -.32551E-05    .21081E-04
   2  norm          3.5213        2.3746        .11279E-06    .87253E-04
   3  Prefactor     5.4915        7.4561       -.55408E-05   -.17404E-03
   4  Prefactor     5.1134        2.4915        .77330E-07    .69929E-04
   5  Prefactor     .10000E-03    .93800        .14842E-07** at limit **
   6  Prefactor     .10000E-03    3.5640        .14224E-06** at limit **
   7  Prefactor     .10000E-03    17.535       -.33302E-06** at limit **
   8  Prefactor     .10000E-03    5.0033        .50779E-07** at limit **
   9  Prefactor     60.840        60.797       -.20517E-06    .38691E-04
  10  Prefactor     1.8939        3.5112       -.69074E-06   -.36496E-03
  11  norm          .23507        2.6125       -.66539E-06   -.86827E-04
  12  Prefactor     .10000E-03    27.087        .11043E-06** at limit **
  13  Prefactor     .10001E-03    21.966       -.28999E-06** at limit **
  14  Prefactor     27.428        18.602        .28289E-05   -.25382E-05
  15  norm          .10000E-03    1.7262       -.51168E-07** at limit **
  16  norm          25.377        19.480        .91372E-05   -.42224E-05
  17  norm          3.1130        4.5006       -.14467E-06   -.36360E-03
  18  norm          .10000E-03    3.4160        .71378E-07** at limit **
  19  Prefactor     .55865        3.7809        .38111E-06   -.37008E-03
  20  Prefactor     .10000E-03    12.151        .30490E-07** at limit **
  21  Prefactor     23.626        64.148       -.13849E-04   -.20060E-04
  22  Prefactor     4.5820        11.826       -.35798E-05   -.94600E-04
  23  Prefactor     .10000E-03    97.715        .40745E-05** at limit **
  24  Normalizat    .64589        .16998        .62907E-06    .30887E-04
  25  Prefactor     1.2794        .20865        .23122E-06    .44395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.8943
  norm       = 3.52128
  Prefactor  = 5.49148
  Prefactor  = 5.11342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.8395
  Prefactor  = 1.8939
  norm       = 0.235067
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 27.4277
  norm       = 0.0001
  norm       = 25.3765
  norm       = 3.11296
  norm       = 0.0001
  Prefactor  = 0.558645
  Prefactor  = 0.0001
  Prefactor  = 23.6265
  Prefactor  = 4.58203
  Prefactor  = 0.0001
  Normalizat = 0.645887
  Prefactor  = 1.27936
 **********
 **   18 **HESSE 
 **********

 FCN=   5476.273     FROM HESSE     STATUS=OK           441 CALLS     3500 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.894        38.160        .46706E-04   -1.3987    
   2  norm          3.5213        2.3833        .87860E-04   -1.5333    
   3  Prefactor     5.4915        7.4966        .17148E-03   -1.5239    
   4  Prefactor     5.1134        2.4996        .76419E-04   -1.5256    
   5  Prefactor     .10000E-03    .96423        .13988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5764        .13643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0051        .16167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     60.840        60.737        .51407E-04   -1.4146    
  10  Prefactor     1.8939        3.4838        .18073E-03   -1.5433    
  11  norm          .23507        9.9419        .21296E-02   -1.5611    
  12  Prefactor     .10000E-03    27.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    28.989        .90146E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.428        18.476        .76519E-04   -1.4660    
  15  norm          .10000E-03    1.7276        .94883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.377        19.374        .79529E-04   -1.4700    
  17  norm          3.1130        4.4085        .15364E-03   -1.5355    
  18  norm          .10000E-03    3.4226        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55865        10.372        .20174E-02   -1.5558    
  20  Prefactor     .10000E-03    12.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.626        64.272        .82373E-04   -1.4735    
  22  Prefactor     4.5820        11.838        .18788E-03   -1.5280    
  23  Prefactor     .10000E-03    98.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64589        .19846        .25982E-03   -1.0607    
  25  Prefactor     1.2794        .24564        .24799E-03   -.83923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27423e-08
Minuit parameter uncertainties:
  1  38.1726
  2  2.38338
  3  7.49789
  4  2.49962
  5  3.96586e-07
  6  3.67869e-07
  7  2.18518e-05
  8  1.67378e-06
  9  60.7988
  10  3.48414
  11  3.05735
  12  0.000171164
  13  0.000948649
  14  18.4795
  15  6.80754e-06
  16  19.3792
  17  4.40899
  18  5.8443e-06
  19  4.81474
  20  6.02849e-05
  21  64.4615
  22  11.8442
  23  7.56794e-05
  24  0.198681
  25  0.245861
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.894e+00  3.484e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.279e+00  2.459e-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.459e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34496/likelihoodResults_359596801_359856001_4FGL_J1257.2+3646_daily_bin464.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): 0
logL (Free Index) = 5476.26140181
delta logL = 0.0113019879645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5476.25587245
delta logL = 0.0168313461636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4951       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2848       1.0000          .0000       10.000    
     3 'Normalizat'    .64270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2816       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.

 FCN=   5476.256     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      227 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4962        3.7095        .15483E-03   -.61569E-03
   2  Index         2.2874        1.4820        .97489E-03   -.53643E-04
   3  Normalizat    .64289        .18574        .26038E-03   -.16810E-04
   4  Prefactor     1.2814        .24163        .24781E-03    .18947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49622
  Index      = 2.28739
  Normalizat = 0.642889
  Prefactor  = 1.28141
 **********
 **   18 **HESSE 
 **********

 FCN=   5476.256     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4962        3.6405        .61931E-05   -1.5463    
   2  Index         2.2874        1.4555        .38996E-04   -.57344    
   3  Normalizat    .64289        .18590        .10415E-04   -1.0619    
   4  Prefactor     1.2814        .24186        .99124E-05   -.83862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12027e-10
Minuit parameter uncertainties:
  1  3.64099
  2  1.48634
  3  0.186083
  4  0.24207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34496': 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): 0
logL (Free Index) = 5476.25586777
delta logL = 0.016836025562

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.496e+00  3.641e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.287e+00  1.486e+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.281e+00  2.421e-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.429e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/34496/cmap_HighResolution_359596801_359856001_4FGL_J1257.2+3646_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-09-06 11:49:29.469198', job_id='34496', GAL2='1.28', fit_tolerance='1e-08', EG2='0.64', EG='0.65', time_epoch_completed='1630954169.47', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='1.68e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='464' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 34496: <4FGL_J1257.2+3646_daily_bin464> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin464 194.31 36.7706 359596801 359856001 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

