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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin279
RA = 194.31, Dec = 36.7706
tmin = 311644801, tmax = 311904001
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='32840', job_status='RUN', time_executed='2021-09-06 11:32:25.048413', time_epoch_executed='1630953145.05' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32840

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32840/ft1_4FGL_J1257.2+3646_daily_bin279.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32840/ft2_4FGL_J1257.2+3646_daily_bin279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32840/ft1_4FGL_J1257.2+3646_daily_bin279.fits outfile=/scratch/kocevski/32840/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin279.fits ra=194.31 dec=36.7706 rad=12.0 tmin=311644801.0 tmax=311904001.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.65
user 3.24
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32840/ft2_4FGL_J1257.2+3646_daily_bin279.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/32840/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin279.fits evtable="EVENTS" outfile="/scratch/kocevski/32840/ft1_filtered_4FGL_J1257.2+3646_daily_bin279.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.60
user 0.32
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32840/ft1_filtered_4FGL_J1257.2+3646_daily_bin279.fits evtable="EVENTS" scfile=/scratch/kocevski/32840/ft2_4FGL_J1257.2+3646_daily_bin279.fits sctable="SC_DATA" expcube=/scratch/kocevski/32840/ltcube_311644801_311904001_4FGL_J1257.2+3646_daily_bin279.fits outfile=/scratch/kocevski/32840/expmap_311644801_311904001_4FGL_J1257.2+3646_daily_bin279.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/32840/ltcube_311644801_311904001_4FGL_J1257.2+3646_daily_bin279.fits
.....................!
real 189.98
user 185.30
sys 4.21

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/32840/ft1_filtered_4FGL_J1257.2+3646_daily_bin279.fits scfile=/scratch/kocevski/32840/ft2_4FGL_J1257.2+3646_daily_bin279.fits outfile=/scratch/kocevski/32840/cmap_311644801_311904001_4FGL_J1257.2+3646_daily_bin279.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.54
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67668       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7236       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23619       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.114       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.115       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5094       1.0000         .10000E-03   10000.    
    11 'norm      '    .31209E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10981E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6359       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21575       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.284       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2085       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28212       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93004       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2342       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=   5811.103     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     2993 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.280       -.10067E-05** at limit **
   2  norm          6.0865        4.3669        .16157E-06   -.59756E-03
   3  Prefactor     .67962        7.3413       -.23528E-06   -.34857E-04
   4  Prefactor     6.7211        3.7471       -.38772E-07    .97750E-04
   5  Prefactor     .23886        1.8101       -.10037E-06    .10506E-04
   6  Prefactor     24.110        14.025       -.15107E-06    .26459E-04
   7  Prefactor     .10000E-03    59.359        .10240E-05** at limit **
   8  Prefactor     .10000E-03    15.021        .10233E-05** at limit **
   9  Prefactor     30.132        75.740        .22468E-05    .39539E-04
  10  Prefactor     5.5210        5.3705        .58328E-07    .58627E-04
  11  norm          .42915E-01    3.1225       -.35131E-06    .53853E-03
  12  Prefactor     .10000E-03    20.364        .28350E-06** at limit **
  13  Prefactor     1.6189        27.074       -.64466E-05   -.64210E-04
  14  Prefactor     .10006E-03    14.205        .19517E-06** at limit **
  15  norm          .10000E-03    2.7058        .42839E-07** at limit **
  16  norm          15.286        13.490       -.35837E-07    .21174E-04
  17  norm          5.2078        4.0191       -.24750E-08    .33495E-03
  18  norm          4.4297        4.2316        .54264E-06   -.94976E-03
  19  Prefactor     2.5657        2.4350        .44683E-07    .64563E-03
  20  Prefactor     .24236        7.6493       -.15659E-05    .47201E-03
  21  Prefactor     .10000E-03    34.749       -.69175E-05** at limit **
  22  Prefactor     .10000E-03    5.6667        .10188E-07** at limit **
  23  Prefactor     .10000E-03    35.625        .83424E-05** at limit **
  24  Normalizat    .93034        .18354        .18945E-06    .19233E-03
  25  Prefactor     1.2340        .22240        .81736E-07    .15700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.0865
  Prefactor  = 0.679617
  Prefactor  = 6.72112
  Prefactor  = 0.238858
  Prefactor  = 24.11
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.132
  Prefactor  = 5.52099
  norm       = 0.0429146
  Prefactor  = 0.0001
  Prefactor  = 1.61893
  Prefactor  = 0.000100065
  norm       = 0.0001
  norm       = 15.2863
  norm       = 5.20785
  norm       = 4.42966
  Prefactor  = 2.56571
  Prefactor  = 0.242364
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.93034
  Prefactor  = 1.23404
 **********
 **   18 **HESSE 
 **********

 FCN=   5811.103     FROM HESSE     STATUS=OK           453 CALLS     3446 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0865        4.5427        .58154E-03   -1.5215    
   3  Prefactor     .67962        19.332        .39175E-02   -1.5543    
   4  Prefactor     6.7211        3.8024        .92928E-04   -1.5189    
   5  Prefactor     .23886        7.2958        .18513E-02   -1.5610    
   6  Prefactor     24.110        13.963        .81573E-04   -1.4726    
   7  Prefactor     .10000E-03    59.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.132        76.318        .73010E-04   -1.4610    
  10  Prefactor     5.5210        5.3751        .16601E-03   -1.5238    
  11  norm          .42915E-01    6.3696        .42250E-01   -1.5667    
  12  Prefactor     .10000E-03    20.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6189        28.152        .33048E-03   -1.5453    
  14  Prefactor     .10006E-03    18.600        .82975E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7330        .12237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.286        13.494        .51224E-03   -1.4926    
  17  norm          5.2078        4.9805        .11589E-03   -1.5252    
  18  norm          4.4297        8.0487        .95654E-03   -1.5287    
  19  Prefactor     2.5657        2.4619        .55196E-03   -1.5388    
  20  Prefactor     .24236        91.371        .38483E-02   -1.5610    
  21  Prefactor     .10000E-03    34.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.6718        .17723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93034        .21824        .25550E-03   -.95402    
  25  Prefactor     1.2340        .26811        .27881E-03   -.85290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15278e-08
Minuit parameter uncertainties:
  1  4.33678e-05
  2  4.54295
  3  7.2514
  4  3.80258
  5  2.63999
  6  13.9645
  7  6.85865e-05
  8  4.54462e-05
  9  76.5669
  10  5.37553
  11  1.04455
  12  1.29679e-05
  13  13.5091
  14  0.00219829
  15  3.92735e-06
  16  13.4967
  17  4.98094
  18  8.05065
  19  2.46196
  20  9.42428
  21  0.00043988
  22  1.22599e-06
  23  0.000554639
  24  0.218445
  25  0.268404
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.521e+00  5.376e+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.234e+00  2.684e-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.303e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.41
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.10e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.32e-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) = 5810.97591889
delta logL = 0.127128303706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5810.975261
delta logL = 0.127786194864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5392       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5780       1.0000          .0000       10.000    
     3 'Normalizat'    .94236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2283       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=   5810.975     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      231 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5599        252.02        .42677E-02   -.15550E-03
   2  Index         1.5813        6.2271        .28976       -.26187E-04
   3  Normalizat    .94236        .21237        .45441E-01    .11904E-04
   4  Prefactor     1.2282        .12413        .63163E-01    .61155E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55994
  Index      = 1.58128
  Normalizat = 0.942363
  Prefactor  = 1.22816
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.975     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5599        5.7296        .17071E-03   -1.5236    
   2  Index         1.5813        .79453        .11841E-01   -.75288    
   3  Normalizat    .94236        .21378        .25400E-03   -.94987    
   4  Prefactor     1.2282        .26497        .27937E-03   -.85469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31027e-10
Minuit parameter uncertainties:
  1  5.73019
  2  0.800946
  3  0.213975
  4  0.265255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32840': 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) = 5810.9752493
delta logL = 0.127797889164

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.560e+00  5.730e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.581e+00  8.009e-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.228e+00  2.653e-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.424e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.65
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.58 +/- 0.80
Photon Flux (Free Index): 9.86e-09 +/- 1.64e-08
Energy Flux (Free Index): 2.37e-05 +/- 3.97e-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/32840/cmap_HighResolution_311644801_311904001_4FGL_J1257.2+3646_daily_bin279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.10e-08', energy_flux2='2.37e-05', photon_flux_error='2.04e-08', dlogl='1.28e-01', energy_flux='1.36e-05', photon_flux2='9.86e-09', job_status='DONE', time_completed='2021-09-06 11:42:51.897572', photon_index_error2='0.80', photon_index2='1.58', ts='6.41', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='3.97e-05', EG='0.93', time_epoch_completed='1630953771.9', return_code='0', job_id='32840', GAL2='1.23', EG2='0.94', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='1.64e-08', ts2='6.65', photon_index='2.03' WHERE bin_id='279' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:42:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 32840: <4FGL_J1257.2+3646_daily_bin279> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin279> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:20 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:22 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:22 2021
Terminated at Mon Sep  6 11:42:53 2021
Results reported at Mon Sep  6 11:42:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin279 194.31 36.7706 311644801 311904001 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 :                                   618.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

