/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 98 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 = 7412
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin677
RA = 194.31, Dec = 36.7706
tmin = 414806401, tmax = 415065601
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='36186', job_status='RUN', time_executed='2021-09-06 11:42:38.184203', time_epoch_executed='1630953758.18' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36186/ft1_4FGL_J1257.2+3646_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36186/ft2_4FGL_J1257.2+3646_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36186/ft1_4FGL_J1257.2+3646_daily_bin677.fits outfile=/scratch/kocevski/36186/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin677.fits ra=194.31 dec=36.7706 rad=12.0 tmin=414806401.0 tmax=415065601.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 6.12
user 5.61
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36186/ft2_4FGL_J1257.2+3646_daily_bin677.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/36186/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/36186/ft1_filtered_4FGL_J1257.2+3646_daily_bin677.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36186/ft1_filtered_4FGL_J1257.2+3646_daily_bin677.fits" evtable="EVENTS" scfile=/scratch/kocevski/36186/ft2_4FGL_J1257.2+3646_daily_bin677.fits sctable="SC_DATA" outfile=/scratch/kocevski/36186/ltcube_414806401_415065601_4FGL_J1257.2+3646_daily_bin677.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/36186/ft2_4FGL_J1257.2+3646_daily_bin677.fits
.....................!
real 13.09
user 12.57
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36186/ft1_filtered_4FGL_J1257.2+3646_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/36186/ft2_4FGL_J1257.2+3646_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/36186/ltcube_414806401_415065601_4FGL_J1257.2+3646_daily_bin677.fits outfile=/scratch/kocevski/36186/expmap_414806401_415065601_4FGL_J1257.2+3646_daily_bin677.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/36186/ltcube_414806401_415065601_4FGL_J1257.2+3646_daily_bin677.fits
.....................!
real 192.07
user 185.85
sys 5.26

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/36186/ft1_filtered_4FGL_J1257.2+3646_daily_bin677.fits scfile=/scratch/kocevski/36186/ft2_4FGL_J1257.2+3646_daily_bin677.fits outfile=/scratch/kocevski/36186/cmap_414806401_415065601_4FGL_J1257.2+3646_daily_bin677.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 1.07
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36186/ft1_filtered_4FGL_J1257.2+3646_daily_bin677.fits scfile=/scratch/kocevski/36186/ft2_4FGL_J1257.2+3646_daily_bin677.fits outfile=/scratch/kocevski/36186/cmap_HighResolution_414806401_415065601_4FGL_J1257.2+3646_daily_bin677.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.01
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9473       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0802       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17890E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8563       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    83.100       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13468E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11266E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3107       1.0000         .10000E-03   10000.    
    18 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.943       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    110.15       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70535       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2198       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=   3286.258     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2902 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.229        .18055E-06** at limit **
   2  norm          5.9481        4.1918        .20091E-07   -.10928E-03
   3  Prefactor     4.8762        5.6424        .15985E-07   -.12371E-04
   4  Prefactor     2.8450        3.0231       -.16966E-06   -.15823E-03
   5  Prefactor     6.2140        3.8113       -.44219E-06   -.33515E-03
   6  Prefactor     1.1093        41.540        .74791E-05    .22721E-04
   7  Prefactor     .10000E-03    14.513        .11513E-06** at limit **
   8  Prefactor     20.270        24.042       -.47895E-07   -.13467E-04
   9  Prefactor     .10000E-03    48.295        .26526E-06** at limit **
  10  Prefactor     3.8850        7.9713       -.62734E-06    .72200E-05
  11  norm          3.7859        5.4767        .16282E-06    .10097E-04
  12  Prefactor     83.087        89.884       -.29507E-07   -.56535E-05
  13  Prefactor     .10000E-03    9.2870        .22174E-08** at limit **
  14  Prefactor     .10000E-03    55.110       -.15796E-06** at limit **
  15  norm          .10001E-03    5.5395       -.77215E-06** at limit **
  16  norm          .10000E-03    15.595       -.75204E-07** at limit **
  17  norm          4.3064        4.2591       -.75627E-07    .15628E-04
  18  norm          .10000E-03    6.4378       -.12693E-07** at limit **
  19  Prefactor     .10000E-03    1.2919       -.32037E-06** at limit **
  20  Prefactor     .10000E-03    6.7664       -.34201E-06** at limit **
  21  Prefactor     27.901        50.968        .13834E-07   -.75170E-05
  22  Prefactor     .10000E-03    7.0669        .11150E-06** at limit **
  23  Prefactor     109.99        100.93       -.20712E-06   -.26495E-04
  24  Normalizat    .70546        .22632        .13076E-05   -.95546E-04
  25  Prefactor     1.2197        .28656       -.24764E-05   -.13156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.94811
  Prefactor  = 4.87623
  Prefactor  = 2.84497
  Prefactor  = 6.21399
  Prefactor  = 1.1093
  Prefactor  = 0.0001
  Prefactor  = 20.2704
  Prefactor  = 0.0001
  Prefactor  = 3.88501
  norm       = 3.78594
  Prefactor  = 83.0865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100013
  norm       = 0.0001
  norm       = 4.30639
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9006
  Prefactor  = 0.0001
  Prefactor  = 109.991
  Normalizat = 0.705464
  Prefactor  = 1.21974
 **********
 **   18 **HESSE 
 **********

 FCN=   3286.258     FROM HESSE     STATUS=OK           431 CALLS     3333 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9481        4.2088        .87955E-04   -1.5220    
   3  Prefactor     4.8762        5.6411        .14247E-03   -1.5266    
   4  Prefactor     2.8450        3.0367        .91961E-04   -1.5371    
   5  Prefactor     6.2140        3.8488        .81085E-04   -1.5209    
   6  Prefactor     1.1093        44.076        .46372E-02   -1.5497    
   7  Prefactor     .10000E-03    14.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.270        24.026        .88896E-04   -1.4807    
   9  Prefactor     .10000E-03    48.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8850        7.8749        .20550E-03   -1.5314    
  11  norm          3.7859        5.4602        .15345E-03   -1.5319    
  12  Prefactor     83.087        89.949        .44063E-04   -1.3882    
  13  Prefactor     .10000E-03    9.2889        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    16.781        .24805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3064        4.2254        .11104E-03   -1.5293    
  18  norm          .10000E-03    6.4568        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2923        .63521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7733        .14557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.901        50.973        .75788E-04   -1.4651    
  22  Prefactor     .10000E-03    7.0750        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     109.99        100.98        .19162E-03   -1.3607    
  24  Normalizat    .70546        .26306        .25473E-03   -1.0368    
  25  Prefactor     1.2197        .32917        .25504E-03   -.85726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99616e-10
Minuit parameter uncertainties:
  1  9.66508e-06
  2  4.20897
  3  5.64176
  4  3.03682
  5  3.84894
  6  13.9952
  7  4.48862e-06
  8  24.0373
  9  4.77954e-05
  10  7.87695
  11  5.46092
  12  90.0965
  13  1.15452e-08
  14  0.000239283
  15  0.000935122
  16  4.10085e-06
  17  4.22566
  18  7.34015e-06
  19  1.24423e-06
  20  1.77808e-06
  21  51.0529
  22  3.53376e-06
  23  101.14
  24  0.263529
  25  0.329727
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.885e+00  7.877e+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.220e+00  3.297e-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.055e-01  2.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36186/likelihoodResults_414806401_415065601_4FGL_J1257.2+3646_daily_bin677.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) = 3285.77912772
delta logL = 0.47903968052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3285.75576967
delta logL = 0.502397735414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1635       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0300       1.0000          .0000       10.000    
     3 'Normalizat'    .67290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2417       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=   3285.756     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      248 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1620        29.901        .10667E-01    .85830E-03
   2  Index         3.0307        2.9933        .11687        .15415E-03
   3  Normalizat    .67316        .55904E-01    .41928E-01    .97191E-04
   4  Prefactor     1.2413        .71223E-01    .57195E-01   -.22871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16196
  Index      = 3.03074
  Normalizat = 0.673165
  Prefactor  = 1.24126
 **********
 **   18 **HESSE 
 **********

 FCN=   3285.756     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1620        4.9582        .64703E-04   -1.5492    
   2  Index         3.0307        1.6505        .41918E-02   -.40482    
   3  Normalizat    .67316        .25820        .26007E-03   -1.0496    
   4  Prefactor     1.2413        .32962        .25291E-03   -.85071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86806e-10
Minuit parameter uncertainties:
  1  4.80098
  2  1.68825
  3  0.258662
  4  0.33017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36186': 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) = 3285.75576846
delta logL = 0.502398936691

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.162e+00  4.801e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.031e+00  1.688e+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.241e+00  3.302e-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.732e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 194.310 36.771
Photon Index (Free Index): 3.03 +/- 1.69
Photon Flux (Free Index): 4.28e-08 +/- 4.63e-08
Energy Flux (Free Index): 8.42e-06 +/- 1.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/36186/cmap_HighResolution_414806401_415065601_4FGL_J1257.2+3646_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', energy_flux2='8.42e-06', dlogl='5.02e-01', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-09-06 11:52:50.320288', photon_index_error2='1.69', photon_index2='3.03', ts='0.32', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='1.06e-05', EG='0.71', time_epoch_completed='1630954370.32', return_code='0', job_id='36186', GAL2='1.24', EG2='0.67', return_code2='0', photon_flux_error2='4.63e-08', ts2='1.34', photon_index='2.03' WHERE bin_id='677' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:52:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 36186: <4FGL_J1257.2+3646_daily_bin677> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin677 194.31 36.7706 414806401 415065601 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 :                                   552.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            733 sec.

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

