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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin839
RA = 194.31, Dec = 36.7706
tmin = 456796801, tmax = 457056001
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='36432', job_status='RUN', time_executed='2021-09-06 11:45:09.629577', time_epoch_executed='1630953909.63' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='839'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36432/ft1_4FGL_J1257.2+3646_daily_bin839.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36432/ft2_4FGL_J1257.2+3646_daily_bin839.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36432/ft1_4FGL_J1257.2+3646_daily_bin839.fits outfile=/scratch/kocevski/36432/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin839.fits ra=194.31 dec=36.7706 rad=12.0 tmin=456796801.0 tmax=457056001.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.34
user 3.14
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36432/ft1_filtered_4FGL_J1257.2+3646_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/36432/ft2_4FGL_J1257.2+3646_daily_bin839.fits sctable="SC_DATA" expcube=/scratch/kocevski/36432/ltcube_456796801_457056001_4FGL_J1257.2+3646_daily_bin839.fits outfile=/scratch/kocevski/36432/expmap_456796801_457056001_4FGL_J1257.2+3646_daily_bin839.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/36432/ltcube_456796801_457056001_4FGL_J1257.2+3646_daily_bin839.fits
.....................!
real 192.59
user 187.09
sys 5.02

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/36432/ft1_filtered_4FGL_J1257.2+3646_daily_bin839.fits scfile=/scratch/kocevski/36432/ft2_4FGL_J1257.2+3646_daily_bin839.fits outfile=/scratch/kocevski/36432/cmap_456796801_457056001_4FGL_J1257.2+3646_daily_bin839.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 3.28
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36432/ft1_filtered_4FGL_J1257.2+3646_daily_bin839.fits scfile=/scratch/kocevski/36432/ft2_4FGL_J1257.2+3646_daily_bin839.fits outfile=/scratch/kocevski/36432/cmap_HighResolution_456796801_457056001_4FGL_J1257.2+3646_daily_bin839.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 2.33
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.5776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.451       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0560       1.0000         .10000E-03   10000.    
     7 'Prefactor '    103.11       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9157       1.0000         .10000E-03   10000.    
    11 'norm      '    .14394E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27396E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.2906       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5693       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2334       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.560       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.509       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.779       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73483       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1548       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=   5860.632     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2553 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.591        .18652E-05** at limit **
   2  norm          9.5772        3.6380        .79084E-07    .27137E-03
   3  Prefactor     11.448        9.0991        .12480E-06    .51191E-04
   4  Prefactor     2.2269        1.9250        .66887E-07    .17181E-03
   5  Prefactor     .33264        1.0984       -.33855E-06    .35284E-03
   6  Prefactor     2.0559        7.9644       -.31732E-08    .20737E-03
   7  Prefactor     103.10        44.696        .14836E-05    .16432E-03
   8  Prefactor     .10000E-03    8.6841       -.15450E-05** at limit **
   9  Prefactor     .10000E-03    59.761        .11336E-05** at limit **
  10  Prefactor     5.9229        5.0398        .14203E-06   -.20226E-03
  11  norm          .10001E-03    4.1761       -.33809E-05** at limit **
  12  Prefactor     .10000E-03    30.724       -.28625E-05** at limit **
  13  Prefactor     .10000E-03    12.387        .16621E-06** at limit **
  14  Prefactor     .10005E-03    33.518        .12441E-04** at limit **
  15  norm          .10000E-03    1.4473        .14083E-06** at limit **
  16  norm          9.2905        12.046       -.72304E-06    .31301E-03
  17  norm          5.5636        3.3365        .69043E-07    .22220E-03
  18  norm          .10000E-03    7.0267       -.46401E-06** at limit **
  19  Prefactor     1.2412        3.4643       -.92707E-06   -.74683E-05
  20  Prefactor     16.531        15.826        .75805E-06    .45273E-04
  21  Prefactor     .10000E-03    28.100        .41897E-05** at limit **
  22  Prefactor     15.507        15.991       -.15183E-06   -.40777E-05
  23  Prefactor     15.766        38.045        .50714E-05    .10397E-03
  24  Normalizat    .73499        .16444        .53746E-06   -.33501E-04
  25  Prefactor     1.1547        .20762       -.32942E-06   -.20163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.57717
  Prefactor  = 11.448
  Prefactor  = 2.2269
  Prefactor  = 0.332644
  Prefactor  = 2.0559
  Prefactor  = 103.102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92287
  norm       = 0.00010001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  norm       = 0.0001
  norm       = 9.2905
  norm       = 5.56357
  norm       = 0.0001
  Prefactor  = 1.24123
  Prefactor  = 16.5313
  Prefactor  = 0.000100002
  Prefactor  = 15.5072
  Prefactor  = 15.7664
  Normalizat = 0.734985
  Prefactor  = 1.15468
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.632     FROM HESSE     STATUS=OK           429 CALLS     2982 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.5772        3.6288        .83539E-04   -1.5089    
   3  Prefactor     11.448        9.1023        .11839E-03   -1.5031    
   4  Prefactor     2.2269        1.9303        .92327E-04   -1.5410    
   5  Prefactor     .33264        1.0723        .14037E-03   -1.5593    
   6  Prefactor     2.0559        7.9041        .28824E-03   -1.5421    
   7  Prefactor     103.10        45.101        .39597E-04   -1.3674    
   8  Prefactor     .10000E-03    8.7494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9229        4.9336        .15011E-03   -1.5221    
  11  norm          .10001E-03    8.1093        .23452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    44.460        .40894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4505        .89918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.2905        12.163        .65742E-03   -1.5098    
  17  norm          5.5636        3.2894        .10107E-03   -1.5236    
  18  norm          .10000E-03    7.0944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2412        3.4228        .19221E-03   -1.5485    
  20  Prefactor     16.531        15.530        .98421E-04   -1.4895    
  21  Prefactor     .10000E-03    28.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.507        15.985        .10170E-03   -1.4920    
  23  Prefactor     15.766        38.589        .10083E-03   -1.4914    
  24  Normalizat    .73499        .19433        .24818E-03   -1.0253    
  25  Prefactor     1.1547        .24740        .26301E-03   -.87738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9743e-09
Minuit parameter uncertainties:
  1  0.000192793
  2  3.62886
  3  9.10338
  4  1.93036
  5  1.07239
  6  7.90807
  7  45.1165
  8  8.83414e-05
  9  0.000154369
  10  4.93395
  11  0.000563164
  12  0.000316038
  13  3.27088e-06
  14  0.00303732
  15  3.2078e-06
  16  12.1663
  17  3.28953
  18  3.37305e-05
  19  3.42335
  20  15.5341
  21  0.000441724
  22  15.989
  23  38.6503
  24  0.194508
  25  0.247648
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.923e+00  4.934e+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.155e+00  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:  7.350e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.25e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.21e-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) = 5860.62685207
delta logL = 0.00515555022048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5860.62370555
delta logL = 0.00830207685613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4579       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1090       1.0000          .0000       10.000    
     3 'Normalizat'    .73241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1564       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=   5860.624     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4605        138.35        .42999E-02    .15529E-03
   2  Index         2.1091        5.9655        .13402        .13111E-03
   3  Normalizat    .73236        .90611E-01    .42722E-01   -.48151E-04
   4  Prefactor     1.1566        .85587E-01    .59430E-01   -.96977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46054
  Index      = 2.10907
  Normalizat = 0.732356
  Prefactor  = 1.15657
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.624     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4605        6.2155        .14209E-03   -1.5241    
   2  Index         2.1091        .67528        .73106E-02   -.61650    
   3  Normalizat    .73236        .18857        .24859E-03   -1.0263    
   4  Prefactor     1.1566        .24478        .26282E-03   -.87679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26044e-11
Minuit parameter uncertainties:
  1  6.21628
  2  0.678402
  3  0.188742
  4  0.245025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36432': 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) = 5860.62370471
delta logL = 0.00830291677721

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.461e+00  6.216e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.109e+00  6.784e-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.157e+00  2.450e-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.324e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.11 +/- 0.68
Photon Flux (Free Index): 2.44e-08 +/- 2.48e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.55e-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/36432/cmap_HighResolution_456796801_457056001_4FGL_J1257.2+3646_daily_bin839.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-08', energy_flux2='1.31e-05', photon_flux_error='1.87e-08', dlogl='8.30e-03', energy_flux='1.45e-05', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-09-06 11:55:42.241930', photon_index_error2='0.68', photon_index2='2.11', ts='4.46', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.73', time_epoch_completed='1630954542.24', return_code='0', job_id='36432', GAL2='1.16', EG2='0.73', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='2.48e-08', ts2='4.47', photon_index='2.03' WHERE bin_id='839' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 36432: <4FGL_J1257.2+3646_daily_bin839> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin839 194.31 36.7706 456796801 457056001 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 :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

