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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin873
RA = 194.31, Dec = 36.7706
tmin = 465609601, tmax = 465868801
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='36483', job_status='RUN', time_executed='2021-09-06 11:43:30.298769', time_epoch_executed='1630953810.3' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36483

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36483/ft1_4FGL_J1257.2+3646_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36483/ft2_4FGL_J1257.2+3646_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36483/ft1_4FGL_J1257.2+3646_daily_bin873.fits outfile=/scratch/kocevski/36483/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin873.fits ra=194.31 dec=36.7706 rad=12.0 tmin=465609601.0 tmax=465868801.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.61
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36483/ft1_filtered_4FGL_J1257.2+3646_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/36483/ft2_4FGL_J1257.2+3646_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/36483/ltcube_465609601_465868801_4FGL_J1257.2+3646_daily_bin873.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/36483/ft2_4FGL_J1257.2+3646_daily_bin873.fits
.....................!
real 12.23
user 11.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36483/ft1_filtered_4FGL_J1257.2+3646_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/36483/ft2_4FGL_J1257.2+3646_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/36483/ltcube_465609601_465868801_4FGL_J1257.2+3646_daily_bin873.fits outfile=/scratch/kocevski/36483/expmap_465609601_465868801_4FGL_J1257.2+3646_daily_bin873.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/36483/ltcube_465609601_465868801_4FGL_J1257.2+3646_daily_bin873.fits
.....................!
real 189.86
user 184.97
sys 4.16

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/36483/ft1_filtered_4FGL_J1257.2+3646_daily_bin873.fits scfile=/scratch/kocevski/36483/ft2_4FGL_J1257.2+3646_daily_bin873.fits outfile=/scratch/kocevski/36483/cmap_465609601_465868801_4FGL_J1257.2+3646_daily_bin873.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.73
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36483/ft1_filtered_4FGL_J1257.2+3646_daily_bin873.fits scfile=/scratch/kocevski/36483/ft2_4FGL_J1257.2+3646_daily_bin873.fits outfile=/scratch/kocevski/36483/cmap_HighResolution_465609601_465868801_4FGL_J1257.2+3646_daily_bin873.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 1.21
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8935       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.553       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3350       1.0000         .10000E-03   10000.    
    11 'norm      '    .84153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.982       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38956E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9619       1.0000         .10000E-03   10000.    
    16 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.5955       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35315E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    62.141       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0769       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90368       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=   5775.422     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2969 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.562        .33323E-07** at limit **
   2  norm          1.4126        2.3592       -.24187E-06   -.55804E-03
   3  Prefactor     7.8939        6.9710       -.13678E-05   -.45923E-04
   4  Prefactor     2.2869        1.9530       -.15518E-07    .11079E-04
   5  Prefactor     1.7588        1.8364       -.10130E-06   -.32090E-03
   6  Prefactor     .10000E-03    2.2495       -.40869E-10** at limit **
   7  Prefactor     .10000E-03    104.13       -.17351E-04** at limit **
   8  Prefactor     20.553        21.440        .99160E-08   -.62903E-04
   9  Prefactor     .10000E-03    45.675       -.39639E-06** at limit **
  10  Prefactor     6.3352        5.2735       -.43440E-06   -.32309E-03
  11  norm          .84443        5.1629       -.45009E-05   -.13721E-02
  12  Prefactor     40.962        51.186       -.97242E-05    .15157E-04
  13  Prefactor     .10277E-03    28.234        .10104E-04** at limit **
  14  Prefactor     .10000E-03    8.1502       -.56280E-06** at limit **
  15  norm          4.9619        4.2514       -.44485E-06   -.13552E-02
  16  norm          .10000E-03    8.4176       -.76625E-06** at limit **
  17  norm          .10000E-03    1.4248        .47071E-07** at limit **
  18  norm          6.5958        4.6228       -.45590E-07   -.30939E-03
  19  Prefactor     6.5129        3.4999       -.16041E-06   -.92771E-03
  20  Prefactor     .10000E-03    8.2954        .13660E-05** at limit **
  21  Prefactor     .10000E-03    60.714        .20130E-05** at limit **
  22  Prefactor     .10004E-03    14.526       -.11452E-05** at limit **
  23  Prefactor     62.130        50.935       -.48708E-05   -.53383E-05
  24  Normalizat    1.0770        .17216        .14575E-05   -.24592E-03
  25  Prefactor     .90352        .21214        .10510E-05   -.75410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.41258
  Prefactor  = 7.89386
  Prefactor  = 2.28694
  Prefactor  = 1.75876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5534
  Prefactor  = 0.0001
  Prefactor  = 6.33517
  norm       = 0.844434
  Prefactor  = 40.9624
  Prefactor  = 0.000102768
  Prefactor  = 0.0001
  norm       = 4.96188
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.59581
  Prefactor  = 6.51294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 62.1304
  Normalizat = 1.07704
  Prefactor  = 0.903524
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.422     FROM HESSE     STATUS=OK           441 CALLS     3410 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4126        2.3337        .13921E-03   -1.5470    
   3  Prefactor     7.8939        6.9653        .14272E-03   -1.5146    
   4  Prefactor     2.2869        1.9557        .90661E-04   -1.5406    
   5  Prefactor     1.7588        1.8193        .10164E-03   -1.5443    
   6  Prefactor     .10000E-03    2.2509        .11131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    104.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.553        21.435        .88349E-04   -1.4801    
   9  Prefactor     .10000E-03    45.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3352        5.2665        .15178E-03   -1.5205    
  11  norm          .84443        7.3485        .27719E-02   -1.5524    
  12  Prefactor     40.962        50.532        .62616E-04   -1.4427    
  13  Prefactor     .10277E-03    146.66        .59679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9619        4.2981        .70520E-03   -1.5262    
  16  norm          .10000E-03    8.4235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4318        .88211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.5958        4.6018        .13207E-03   -1.5194    
  19  Prefactor     6.5129        3.4943        .98365E-04   -1.5198    
  20  Prefactor     .10000E-03    8.3116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    60.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10004E-03    18.599        .78440E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     62.130        50.799        .50902E-04   -1.4130    
  24  Normalizat    1.0770        .20214        .22096E-03   -.90492    
  25  Prefactor     .90352        .24919        .30212E-03   -.96018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11699e-08
Minuit parameter uncertainties:
  1  1.31031e-06
  2  2.33381
  3  6.96598
  4  1.95576
  5  1.81939
  6  6.84907e-07
  7  0.000302568
  8  21.4426
  9  0.000113488
  10  5.26689
  11  4.98264
  12  50.5852
  13  0.0403953
  14  6.5143e-07
  15  4.29832
  16  2.9401e-05
  17  6.64812e-07
  18  4.60204
  19  3.49442
  20  9.88948e-06
  21  5.29522e-05
  22  0.00180415
  23  50.8342
  24  0.202287
  25  0.249507
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.335e+00  5.267e+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:  9.035e-01  2.495e-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.077e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.15
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/36483/likelihoodResults_465609601_465868801_4FGL_J1257.2+3646_daily_bin873.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) = 5775.10759235
delta logL = 0.314673737766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5775.10733042
delta logL = 0.314935670338

Fit tolerance = 1e-08

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

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

 FCN=   5775.107     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7586        266.63        .32052E-02    .12681E-03
   2  Index         1.6295        5.4805        .19502        .78605E-04
   3  Normalizat    1.0868        .11431        .38560E-01    .67362E-04
   4  Prefactor     .89360        .11247        .68593E-01    .28523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.75862
  Index      = 1.62946
  Normalizat = 1.08684
  Prefactor  = 0.893602
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.107     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7586        7.8388        .12821E-03   -1.5083    
   2  Index         1.6295        .45315        .72485E-02   -.73976    
   3  Normalizat    1.0868        .19509        .22005E-03   -.90175    
   4  Prefactor     .89360        .24730        .30345E-03   -.96365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78748e-11
Minuit parameter uncertainties:
  1  7.83962
  2  0.454297
  3  0.195217
  4  0.247609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36483': 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) = 5775.10732624
delta logL = 0.314939845622

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.936e-01  2.476e-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.087e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.81
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.63 +/- 0.45
Photon Flux (Free Index): 1.85e-08 +/- 1.60e-08
Energy Flux (Free Index): 3.80e-05 +/- 5.06e-05

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/36483/cmap_HighResolution_465609601_465868801_4FGL_J1257.2+3646_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='3.80e-05', photon_flux_error='2.00e-08', dlogl='3.15e-01', energy_flux='1.55e-05', photon_flux2='1.85e-08', job_status='DONE', time_completed='2021-09-06 11:55:46.465033', photon_index_error2='0.45', photon_index2='1.63', ts='3.15', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='7.44e-08', energy_flux_error2='5.06e-05', EG='1.08', time_epoch_completed='1630954546.47', return_code='0', job_id='36483', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='1.60e-08', ts2='3.81', photon_index='2.03' WHERE bin_id='873' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 36483: <4FGL_J1257.2+3646_daily_bin873> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin873> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:41:07 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:41:08 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:41:08 2021
Terminated at Mon Sep  6 11:55:47 2021
Results reported at Mon Sep  6 11:55:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin873 194.31 36.7706 465609601 465868801 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 :                                   711.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

