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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin306
RA = 194.31, Dec = 36.7706
tmin = 318643201, tmax = 318902401
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='32878', job_status='RUN', time_executed='2021-09-06 11:34:14.603896', time_epoch_executed='1630953254.6' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32878/ft1_4FGL_J1257.2+3646_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32878/ft2_4FGL_J1257.2+3646_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32878/ft1_4FGL_J1257.2+3646_daily_bin306.fits outfile=/scratch/kocevski/32878/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin306.fits ra=194.31 dec=36.7706 rad=12.0 tmin=318643201.0 tmax=318902401.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.39
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32878/ft1_filtered_4FGL_J1257.2+3646_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/32878/ft2_4FGL_J1257.2+3646_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/32878/ltcube_318643201_318902401_4FGL_J1257.2+3646_daily_bin306.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/32878/ft2_4FGL_J1257.2+3646_daily_bin306.fits
.....................!
real 11.77
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32878/ft1_filtered_4FGL_J1257.2+3646_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/32878/ft2_4FGL_J1257.2+3646_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/32878/ltcube_318643201_318902401_4FGL_J1257.2+3646_daily_bin306.fits outfile=/scratch/kocevski/32878/expmap_318643201_318902401_4FGL_J1257.2+3646_daily_bin306.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/32878/ltcube_318643201_318902401_4FGL_J1257.2+3646_daily_bin306.fits
.....................!
real 189.71
user 185.42
sys 3.92

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/32878/ft1_filtered_4FGL_J1257.2+3646_daily_bin306.fits scfile=/scratch/kocevski/32878/ft2_4FGL_J1257.2+3646_daily_bin306.fits outfile=/scratch/kocevski/32878/cmap_318643201_318902401_4FGL_J1257.2+3646_daily_bin306.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32878/ft1_filtered_4FGL_J1257.2+3646_daily_bin306.fits scfile=/scratch/kocevski/32878/ft2_4FGL_J1257.2+3646_daily_bin306.fits outfile=/scratch/kocevski/32878/cmap_HighResolution_318643201_318902401_4FGL_J1257.2+3646_daily_bin306.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6207       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1802       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11717E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4830       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9974       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.264       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5960       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0814       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3264       1.0000         .10000E-03   10000.    
    18 'norm      '    .68341E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2338       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.137       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18406E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .74854       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2526       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=   5703.520     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2982 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.321        .39569E-07** at limit **
   2  norm          1.6207        1.7522        .80154E-08    .28735E-05
   3  Prefactor     4.7527        5.0389       -.25487E-07   -.82763E-05
   4  Prefactor     2.9945        2.0874        .42898E-08   -.10229E-05
   5  Prefactor     2.1802        1.6351        .44363E-08   -.31049E-05
   6  Prefactor     4.5277        5.2827       -.23686E-08   -.35756E-05
   7  Prefactor     .10000E-03    56.625       -.38937E-05** at limit **
   8  Prefactor     23.721        21.756       -.31616E-08   -.25762E-05
   9  Prefactor     .10000E-03    42.714        .36933E-05** at limit **
  10  Prefactor     9.4928        8.0177       -.33889E-06   -.24268E-04
  11  norm          1.9953        5.7077        .46587E-06   -.33581E-04
  12  Prefactor     .10000E-03    10.089       -.17694E-07** at limit **
  13  Prefactor     61.291        36.913       -.11223E-05   -.10687E-03
  14  Prefactor     2.5611        66.984        .65343E-05    .10898E-04
  15  norm          5.0907        6.5321       -.15654E-06   -.10432E-04
  16  norm          .10000E-03    3.4417       -.65391E-08** at limit **
  17  norm          1.3264        3.1958        .75561E-07   -.38869E-03
  18  norm          .10044E-03    4.6091        .67056E-06** at limit **
  19  Prefactor     2.2339        3.1679        .11896E-06   -.85320E-04
  20  Prefactor     .10000E-03    4.4078        .39268E-08** at limit **
  21  Prefactor     .10000E-03    28.717       -.91636E-06** at limit **
  22  Prefactor     31.140        16.808        .72953E-07   -.11654E-04
  23  Prefactor     .10000E-03    308.91        .12136E-04** at limit **
  24  Normalizat    .74851        .17082       -.77518E-06   -.75904E-04
  25  Prefactor     1.2527        .21303        .43251E-06   -.93818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.62068
  Prefactor  = 4.75272
  Prefactor  = 2.99452
  Prefactor  = 2.18021
  Prefactor  = 4.52767
  Prefactor  = 0.0001
  Prefactor  = 23.721
  Prefactor  = 0.0001
  Prefactor  = 9.49278
  norm       = 1.99531
  Prefactor  = 0.0001
  Prefactor  = 61.2909
  Prefactor  = 2.56105
  norm       = 5.09065
  norm       = 0.0001
  norm       = 1.32643
  norm       = 0.000100442
  Prefactor  = 2.23388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1399
  Prefactor  = 0.0001
  Normalizat = 0.748506
  Prefactor  = 1.25267
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.520     FROM HESSE     STATUS=OK           439 CALLS     3421 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6207        1.7376        .99313E-04   -1.5453    
   3  Prefactor     4.7527        5.0399        .16947E-03   -1.5272    
   4  Prefactor     2.9945        2.0908        .86763E-04   -1.5362    
   5  Prefactor     2.1802        1.6354        .81121E-04   -1.5413    
   6  Prefactor     4.5277        5.2809        .18260E-03   -1.5282    
   7  Prefactor     .10000E-03    57.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.721        21.747        .82254E-04   -1.4733    
   9  Prefactor     .10000E-03    42.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4928        8.0349        .13014E-03   -1.5092    
  11  norm          1.9953        5.5751        .25281E-03   -1.5425    
  12  Prefactor     .10000E-03    10.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.291        36.332        .51263E-04   -1.4141    
  14  Prefactor     2.5611        68.270        .12662E-02   -1.5388    
  15  norm          5.0907        6.5343        .17837E-03   -1.5257    
  16  norm          .10000E-03    3.4431        .13684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3264        3.4440        .16900E-03   -1.5478    
  18  norm          .10044E-03    7.9382        .48329E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2339        3.1250        .14571E-03   -1.5409    
  20  Prefactor     .10000E-03    4.4117        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.140        16.818        .71806E-04   -1.4591    
  23  Prefactor     .10000E-03    310.72        .40604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .74851        .20003        .25502E-03   -1.0201    
  25  Prefactor     1.2527        .25111        .26219E-03   -.84725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94362e-10
Minuit parameter uncertainties:
  1  1.34572e-06
  2  1.73768
  3  5.0404
  4  2.09085
  5  1.63544
  6  5.28142
  7  0.000153154
  8  21.7542
  9  0.000173514
  10  8.0358
  11  5.57652
  12  3.7882e-07
  13  36.3447
  14  26.4787
  15  6.53523
  16  1.66514e-07
  17  3.44449
  18  0.00374587
  19  3.12518
  20  1.55686e-06
  21  4.28286e-05
  22  16.8201
  23  0.000473541
  24  0.200224
  25  0.251349
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  9.493e+00  8.036e+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.253e+00  2.513e-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:  7.485e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.92
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.97e-05

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) = 5703.19839564
delta logL = 0.321255024827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5703.02336059
delta logL = 0.496290074024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8593       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0248       1.0000          .0000       10.000    
     3 'Normalizat'    .77404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2462       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=   5703.023     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8593        4.2669        .51354E-02   -.19239E-02
   2  Index         1.0249        .50791        .25561       -.48386E-04
   3  Normalizat    .77403        .16193        .43271E-01    .16761E-04
   4  Prefactor     1.2461        .21074        .59502E-01    .63822E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.85927
  Index      = 1.0249
  Normalizat = 0.774033
  Prefactor  = 1.24613
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.023     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8593        6.7763        .14340E-03   -1.5315    
   2  Index         1.0249        .81332        .11098E-02   -.91904    
   3  Normalizat    .77403        .19086        .25143E-03   -1.0104    
   4  Prefactor     1.2461        .24853        .26313E-03   -.84923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48783e-09
Minuit parameter uncertainties:
  1  6.7776
  2  0.8234
  3  0.191029
  4  0.248764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32878': 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) = 5703.02336055
delta logL = 0.496290119693

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.859e+00  6.778e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.025e+00  8.234e-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:  1.246e+00  2.488e-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:  7.740e-01  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.91
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.02 +/- 0.82
Photon Flux (Free Index): 5.00e-09 +/- 7.44e-09
Energy Flux (Free Index): 6.80e-05 +/- 9.46e-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/32878/cmap_HighResolution_318643201_318902401_4FGL_J1257.2+3646_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='6.80e-05', photon_flux_error='3.05e-08', dlogl='4.96e-01', energy_flux='2.33e-05', photon_flux2='5.00e-09', job_status='DONE', time_completed='2021-09-06 11:44:39.356329', photon_index_error2='0.82', photon_index2='1.02', ts='12.92', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='9.46e-05', EG='0.75', time_epoch_completed='1630953879.36', return_code='0', job_id='32878', GAL2='1.25', EG2='0.77', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='7.44e-09', ts2='13.91', photon_index='2.03' WHERE bin_id='306' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:44:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 32878: <4FGL_J1257.2+3646_daily_bin306> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin306> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:24 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:30:26 2021
Terminated at Mon Sep  6 11:44:39 2021
Results reported at Mon Sep  6 11:44:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin306 194.31 36.7706 318643201 318902401 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 :                                   623.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

