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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin949
RA = 194.31, Dec = 36.7706
tmin = 485308801, tmax = 485568001
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='36612', job_status='RUN', time_executed='2021-09-06 11:43:47.827763', time_epoch_executed='1630953827.83' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36612

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36612/ft1_4FGL_J1257.2+3646_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36612/ft2_4FGL_J1257.2+3646_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36612/ft1_4FGL_J1257.2+3646_daily_bin949.fits outfile=/scratch/kocevski/36612/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin949.fits ra=194.31 dec=36.7706 rad=12.0 tmin=485308801.0 tmax=485568001.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 5.67
user 5.32
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36612/ft1_filtered_4FGL_J1257.2+3646_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/36612/ft2_4FGL_J1257.2+3646_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/36612/ltcube_485308801_485568001_4FGL_J1257.2+3646_daily_bin949.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/36612/ft2_4FGL_J1257.2+3646_daily_bin949.fits
.....................!
real 12.34
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36612/ft1_filtered_4FGL_J1257.2+3646_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/36612/ft2_4FGL_J1257.2+3646_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/36612/ltcube_485308801_485568001_4FGL_J1257.2+3646_daily_bin949.fits outfile=/scratch/kocevski/36612/expmap_485308801_485568001_4FGL_J1257.2+3646_daily_bin949.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/36612/ltcube_485308801_485568001_4FGL_J1257.2+3646_daily_bin949.fits
.....................!
real 194.58
user 186.02
sys 5.36

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/36612/ft1_filtered_4FGL_J1257.2+3646_daily_bin949.fits scfile=/scratch/kocevski/36612/ft2_4FGL_J1257.2+3646_daily_bin949.fits outfile=/scratch/kocevski/36612/cmap_485308801_485568001_4FGL_J1257.2+3646_daily_bin949.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.61
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36612/ft1_filtered_4FGL_J1257.2+3646_daily_bin949.fits scfile=/scratch/kocevski/36612/ft2_4FGL_J1257.2+3646_daily_bin949.fits outfile=/scratch/kocevski/36612/cmap_HighResolution_485308801_485568001_4FGL_J1257.2+3646_daily_bin949.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.20
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.728       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1222       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6193       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11857E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.791       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    142.34       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8617       1.0000         .10000E-03   10000.    
    11 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13974E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5521       1.0000         .10000E-03   10000.    
    16 'norm      '    18.236       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1095       1.0000         .10000E-03   10000.    
    18 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11858E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.906       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.498       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1099       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87802       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=   5480.011     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2936 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.726        33.559       -.24140E-05   -.16093E-04
   2  norm          6.1225        4.2713       -.10766E-05   -.39505E-03
   3  Prefactor     .10000E-03    2.5764       -.27971E-06** at limit **
   4  Prefactor     3.6190        3.1735        .59799E-06   -.63814E-03
   5  Prefactor     .10010E-03    1.5465        .94043E-06** at limit **
   6  Prefactor     15.077        11.744        .53865E-06   -.22378E-03
   7  Prefactor     12.789        27.107       -.25774E-05   -.75406E-05
   8  Prefactor     .10000E-03    5.4112        .29423E-05** at limit **
   9  Prefactor     142.29        106.75       -.42332E-04   -.30314E-04
  10  Prefactor     2.8614        3.7348        .57144E-06    .73911E-04
  11  norm          .10000E-03    2.6368        .38919E-06** at limit **
  12  Prefactor     .10000E-03    18.260        .89373E-05** at limit **
  13  Prefactor     .10001E-03    55.342        .14812E-04** at limit **
  14  Prefactor     .10000E-03    13.300       -.11325E-04** at limit **
  15  norm          8.5484        6.0868       -.30973E-05    .61121E-04
  16  norm          18.237        18.125       -.76566E-06   -.12177E-04
  17  norm          5.1119        4.1886        .76369E-06    .41054E-03
  18  norm          .10000E-03    5.3954       -.37997E-05** at limit **
  19  Prefactor     .10000E-03    2.5528        .55007E-07** at limit **
  20  Prefactor     20.878        20.385       -.46055E-07    .37614E-04
  21  Prefactor     .10000E-03    26.357       -.10036E-04** at limit **
  22  Prefactor     33.500        22.434        .33181E-06    .80430E-05
  23  Prefactor     .10000E-03    97.900       -.15644E-04** at limit **
  24  Normalizat    1.1095        .19069        .21596E-05   -.88107E-04
  25  Prefactor     .87835        .22851        .22034E-05   -.32452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7262
  norm       = 6.12246
  Prefactor  = 0.0001
  Prefactor  = 3.61901
  Prefactor  = 0.000100097
  Prefactor  = 15.0771
  Prefactor  = 12.7892
  Prefactor  = 0.0001
  Prefactor  = 142.288
  Prefactor  = 2.86138
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 8.54843
  norm       = 18.2366
  norm       = 5.11192
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8778
  Prefactor  = 0.0001
  Prefactor  = 33.5004
  Prefactor  = 0.0001
  Normalizat = 1.10955
  Prefactor  = 0.878347
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.011     FROM HESSE     STATUS=OK           429 CALLS     3365 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.726        33.599        .82232E-04   -1.4733    
   2  norm          6.1225        4.3386        .10574E-03   -1.5213    
   3  Prefactor     .10000E-03    2.5832        .11603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6190        3.2236        .10242E-03   -1.5327    
   5  Prefactor     .10010E-03    12.176        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.077        11.604        .10315E-03   -1.4931    
   7  Prefactor     12.789        27.113        .11200E-03   -1.4993    
   8  Prefactor     .10000E-03    5.4123        .16819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     142.29        107.00        .16884E-03   -1.3317    
  10  Prefactor     2.8614        3.7269        .15895E-03   -1.5370    
  11  norm          .10000E-03    2.6573        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    56.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5484        6.0769        .13707E-03   -1.5123    
  16  norm          18.237        18.132        .93789E-04   -1.4854    
  17  norm          5.1119        4.1575        .12607E-03   -1.5256    
  18  norm          .10000E-03    5.4195        .16692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5695        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.878        20.355        .87600E-04   -1.4794    
  21  Prefactor     .10000E-03    26.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.500        22.432        .69235E-04   -1.4550    
  23  Prefactor     .10000E-03    98.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1095        .22526        .23180E-03   -.89446    
  25  Prefactor     .87835        .26877        .31317E-03   -.96902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25729e-09
Minuit parameter uncertainties:
  1  33.6254
  2  4.33881
  3  3.41543e-07
  4  3.22371
  5  0.00217698
  6  11.6061
  7  27.1396
  8  2.82485e-06
  9  107.145
  10  3.72718
  11  8.04644e-05
  12  1.60188e-05
  13  0.00114433
  14  0.000102326
  15  6.0773
  16  18.1372
  17  4.1577
  18  1.66745e-06
  19  1.72019e-05
  20  20.3615
  21  1.86759e-06
  22  22.4374
  23  0.000199351
  24  0.225453
  25  0.269177
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.861e+00  3.727e+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:  8.783e-01  2.692e-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:  1.110e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 7.02e-06 +/- 9.15e-06

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

Saving results to:
/scratch/kocevski/36612/likelihoodResults_485308801_485568001_4FGL_J1257.2+3646_daily_bin949.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) = 5479.94201126
delta logL = 0.0685590921476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5479.94007362
delta logL = 0.0704967292822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6069       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7154       1.0000          .0000       10.000    
     3 'Normalizat'    1.1130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87596       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=   5479.940     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      261 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6064        4.7539        .17525E-03    .12728E-02
   2  Index         1.7154        .79984        .10354E-01    .20139E-03
   3  Normalizat    1.1130        .21800        .23147E-03   -.20612E-03
   4  Prefactor     .87595        .26601        .31352E-03   -.17409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6064
  Index      = 1.71537
  Normalizat = 1.11302
  Prefactor  = 0.875949
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.940     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6064        4.7127        .35051E-04   -1.5328    
   2  Index         1.7154        .79326        .41415E-03   -.71674    
   3  Normalizat    1.1130        .21819        .46295E-04   -.89335    
   4  Prefactor     .87595        .26626        .12541E-04   -.96987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30863e-09
Minuit parameter uncertainties:
  1  4.71323
  2  0.79923
  3  0.218367
  4  0.266657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36612': 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) = 5479.94007361
delta logL = 0.0704967438851

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.606e+00  4.713e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.715e+00  7.992e-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:  8.759e-01  2.667e-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:  1.113e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.72 +/- 0.80
Photon Flux (Free Index): 7.79e-09 +/- 1.26e-08
Energy Flux (Free Index): 1.21e-05 +/- 2.42e-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/36612/cmap_HighResolution_485308801_485568001_4FGL_J1257.2+3646_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='1.21e-05', photon_flux_error='1.41e-08', dlogl='7.05e-02', energy_flux='7.02e-06', photon_flux2='7.79e-09', job_status='DONE', time_completed='2021-09-06 11:55:24.352012', photon_index_error2='0.80', photon_index2='1.72', ts='1.30', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='5.86e-08', energy_flux_error2='2.42e-05', EG='1.11', time_epoch_completed='1630954524.35', return_code='0', job_id='36612', GAL2='0.88', EG2='1.11', return_code2='0', energy_flux_error='9.15e-06', photon_flux_error2='1.26e-08', ts2='1.44', photon_index='2.03' WHERE bin_id='949' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 36612: <4FGL_J1257.2+3646_daily_bin949> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin949 194.31 36.7706 485308801 485568001 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 :                                   681.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            846 sec.

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

