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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin531
RA = 194.31, Dec = 36.7706
tmin = 376963201, tmax = 377222401
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='34598', job_status='RUN', time_executed='2021-09-06 11:37:42.967052', time_epoch_executed='1630953462.97' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34598/ft1_4FGL_J1257.2+3646_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34598/ft2_4FGL_J1257.2+3646_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34598/ft1_4FGL_J1257.2+3646_daily_bin531.fits outfile=/scratch/kocevski/34598/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin531.fits ra=194.31 dec=36.7706 rad=12.0 tmin=376963201.0 tmax=377222401.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 4.54
user 4.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34598/ft2_4FGL_J1257.2+3646_daily_bin531.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/34598/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin531.fits evtable="EVENTS" outfile="/scratch/kocevski/34598/ft1_filtered_4FGL_J1257.2+3646_daily_bin531.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/34598/ft1_filtered_4FGL_J1257.2+3646_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/34598/ft2_4FGL_J1257.2+3646_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/34598/ltcube_376963201_377222401_4FGL_J1257.2+3646_daily_bin531.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/34598/ft2_4FGL_J1257.2+3646_daily_bin531.fits
.....................!
real 11.94
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34598/ft1_filtered_4FGL_J1257.2+3646_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/34598/ft2_4FGL_J1257.2+3646_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/34598/ltcube_376963201_377222401_4FGL_J1257.2+3646_daily_bin531.fits outfile=/scratch/kocevski/34598/expmap_376963201_377222401_4FGL_J1257.2+3646_daily_bin531.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/34598/ltcube_376963201_377222401_4FGL_J1257.2+3646_daily_bin531.fits
.....................!
real 193.57
user 187.01
sys 5.18

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/34598/ft1_filtered_4FGL_J1257.2+3646_daily_bin531.fits scfile=/scratch/kocevski/34598/ft2_4FGL_J1257.2+3646_daily_bin531.fits outfile=/scratch/kocevski/34598/cmap_376963201_377222401_4FGL_J1257.2+3646_daily_bin531.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.60
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34598/ft1_filtered_4FGL_J1257.2+3646_daily_bin531.fits scfile=/scratch/kocevski/34598/ft2_4FGL_J1257.2+3646_daily_bin531.fits outfile=/scratch/kocevski/34598/cmap_HighResolution_376963201_377222401_4FGL_J1257.2+3646_daily_bin531.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.55
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.142       1.0000         .10000E-03   10000.    
     2 'norm      '    12.466       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49782E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1102       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1843       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17318       1.0000         .10000E-03   10000.    
    15 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10929E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.408       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0857       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .59226       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    118.71       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93323       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6502.670     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     2459 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.142        1.1942       -.22423E-06    .26155E-02
   2  norm          12.466        3.6838       -.15718E-06    .55013E-04
   3  Prefactor     .10000E-03    14.911        .19544E-05** at limit **
   4  Prefactor     .10000E-03    1.5308        .12441E-06** at limit **
   5  Prefactor     2.1101        1.7320        .18494E-07    .61223E-06
   6  Prefactor     7.1084        1.0138        .56168E-07    .28474E-04
   7  Prefactor     24.119        3.0345       -.12536E-06    .28574E-03
   8  Prefactor     .10001E-03    7.2366        .25821E-05** at limit **
   9  Prefactor     .10000E-03    47.190       -.95776E-05** at limit **
  10  Prefactor     7.2011        5.7926       -.61446E-05   -.20261E-03
  11  norm          .10000E-03    2.4178        .31159E-06** at limit **
  12  Prefactor     27.117        1.2991       -.23213E-06    .13861E-02
  13  Prefactor     .10000E-03    15.645       -.14319E-04** at limit **
  14  Prefactor     .10001E-03    492.06       -.97745E-05** at limit **
  15  norm          .10000E-03    4.5396       -.20544E-05** at limit **
  16  norm          .10000E-03    12.713        .11366E-04** at limit **
  17  norm          19.409        3.9997       -.59726E-06    .79706E-04
  18  norm          4.0850        2.5106       -.64130E-06   -.44023E-04
  19  Prefactor     .59367        2.3332        .32770E-06    .48066E-06
  20  Prefactor     .10000E-03    4.8110       -.49242E-06** at limit **
  21  Prefactor     .10000E-03    26.786       -.58880E-05** at limit **
  22  Prefactor     .10000E-03    5.9672       -.46786E-06** at limit **
  23  Prefactor     118.71        1.2279       -.14641E-06    .39827E-02
  24  Normalizat    .93329        .19437        .16853E-05    .27443E-04
  25  Prefactor     1.0481        .24243       -.21273E-05    .35496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.1418
  norm       = 12.4661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1101
  Prefactor  = 7.10844
  Prefactor  = 24.1187
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 7.20106
  norm       = 0.0001
  Prefactor  = 27.1172
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 19.4091
  norm       = 4.08496
  Prefactor  = 0.593666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 118.708
  Normalizat = 0.933293
  Prefactor  = 1.04809
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.670     FROM HESSE     STATUS=OK           487 CALLS     2946 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.142        35.067        .14301E-02   -1.4305    
   2  norm          12.466        3.7169        .28363E-02   -1.5002    
   3  Prefactor     .10000E-03    5.1532        .61317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1101        1.7431        .71001E-02   -1.5417    
   6  Prefactor     7.1084        9.1996        .37608E-02   -1.5175    
   7  Prefactor     24.119        34.476        .20371E-02   -1.4725    
   8  Prefactor     .10001E-03    17.813        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2011        5.9948        .37413E-02   -1.5171    
  11  norm          .10000E-03    2.3818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.117        46.415        .19229E-02   -1.4666    
  13  Prefactor     .10000E-03    16.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    11.243        .98545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.409        7.7004        .22729E-02   -1.4827    
  18  norm          4.0850        11.499        .49864E-02   -1.5304    
  19  Prefactor     .59367        2.3610        .11642E-01   -1.5554    
  20  Prefactor     .10000E-03    4.8214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     118.71        71.365        .92331E-03   -1.3525    
  24  Normalizat    .93329        .16958        .45325E-01   -.95300    
  25  Prefactor     1.0481        .20527        .65491E-01   -.91143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35853e-07
Minuit parameter uncertainties:
  1  35.0814
  2  3.71699
  3  3.35822e-05
  4  1.62856e-06
  5  1.74313
  6  9.20148
  7  34.5045
  8  0.000892077
  9  0.00029187
  10  5.99534
  11  1.60734e-06
  12  46.4771
  13  0.000289063
  14  0.000656738
  15  4.3932e-05
  16  0.00049811
  17  7.70077
  18  11.5055
  19  2.36132
  20  5.49994e-06
  21  8.14696e-05
  22  1.01535e-05
  23  71.4167
  24  0.169676
  25  0.205428
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.201e+00  5.995e+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.048e+00  2.054e-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:  9.333e-01  1.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.78
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.47e-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) = 6502.66811979
delta logL = 0.00159044270185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6502.66751225
delta logL = 0.00219798337093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4108       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9807       1.0000          .0000       10.000    
     3 'Normalizat'    .93541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6502.668     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      258 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4112        6.9392        .14733E-03    .29323E-04
   2  Index         1.9809        .72149        .89681E-02    .30707E-03
   3  Normalizat    .93552        .19498        .24232E-03   -.58176E-04
   4  Prefactor     1.0466        .24312        .28987E-03   -.43847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.41121
  Index      = 1.98088
  Normalizat = 0.935519
  Prefactor  = 1.04657
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.668     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4112        6.7452        .58931E-05   -1.5163    
   2  Index         1.9809        .70089        .17936E-02   -.64829    
   3  Normalizat    .93552        .19488        .96928E-05   -.95223    
   4  Prefactor     1.0466        .24322        .11595E-04   -.91193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62091e-12
Minuit parameter uncertainties:
  1  6.74586
  2  0.704555
  3  0.195029
  4  0.243479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34598': 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) = 6502.6675119
delta logL = 0.00219833580468

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.411e+00  6.746e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.981e+00  7.046e-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.047e+00  2.435e-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:  9.355e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.78
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.98 +/- 0.70
Photon Flux (Free Index): 2.57e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.86e-05 +/- 2.15e-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/34598/cmap_HighResolution_376963201_377222401_4FGL_J1257.2+3646_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='1.86e-05', photon_flux_error='2.27e-08', dlogl='2.20e-03', energy_flux='1.77e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-09-06 11:48:31.352949', photon_index_error2='0.70', photon_index2='1.98', ts='6.78', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.15e-05', EG='0.93', time_epoch_completed='1630954111.35', return_code='0', job_id='34598', GAL2='1.05', EG2='0.94', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='3.22e-08', ts2='6.78', photon_index='2.03' WHERE bin_id='531' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 34598: <4FGL_J1257.2+3646_daily_bin531> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin531> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:39 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:35:41 2021
Terminated at Mon Sep  6 11:48:32 2021
Results reported at Mon Sep  6 11:48:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin531 194.31 36.7706 376963201 377222401 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 :                                   642.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

