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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin718
RA = 194.31, Dec = 36.7706
tmin = 425433601, tmax = 425692801
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='36248', job_status='RUN', time_executed='2021-09-06 11:43:21.755694', time_epoch_executed='1630953801.76' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36248

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36248/ft1_4FGL_J1257.2+3646_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36248/ft2_4FGL_J1257.2+3646_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36248/ft1_4FGL_J1257.2+3646_daily_bin718.fits outfile=/scratch/kocevski/36248/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin718.fits ra=194.31 dec=36.7706 rad=12.0 tmin=425433601.0 tmax=425692801.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.07
user 2.86
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36248/ft1_filtered_4FGL_J1257.2+3646_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/36248/ft2_4FGL_J1257.2+3646_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/36248/ltcube_425433601_425692801_4FGL_J1257.2+3646_daily_bin718.fits outfile=/scratch/kocevski/36248/expmap_425433601_425692801_4FGL_J1257.2+3646_daily_bin718.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/36248/ltcube_425433601_425692801_4FGL_J1257.2+3646_daily_bin718.fits
.....................!
real 190.98
user 185.41
sys 5.00

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/36248/ft1_filtered_4FGL_J1257.2+3646_daily_bin718.fits scfile=/scratch/kocevski/36248/ft2_4FGL_J1257.2+3646_daily_bin718.fits outfile=/scratch/kocevski/36248/cmap_425433601_425692801_4FGL_J1257.2+3646_daily_bin718.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.55
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4425       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28732E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9755       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    77.311       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6974       1.0000         .10000E-03   10000.    
    11 'norm      '    .57797       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11558E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6146       1.0000         .10000E-03   10000.    
    15 'norm      '    7.9007       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.632       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31582E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.309       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.881       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4482       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .53789       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=   4907.582     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     3366 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.178       -.33437E-08** at limit **
   2  norm          2.4456        4.6080        .14677E-05    .55993E-03
   3  Prefactor     14.745        11.624        .91541E-07    .21522E-04
   4  Prefactor     .10000E-03    2.3349       -.10487E-05** at limit **
   5  Prefactor     7.9777        3.9285       -.18231E-07    .48929E-03
   6  Prefactor     .10000E-03    8.9172       -.36996E-07** at limit **
   7  Prefactor     62.646        33.909        .18585E-07   -.62441E-04
   8  Prefactor     .10000E-03    17.818       -.15584E-07** at limit **
   9  Prefactor     77.301        74.207       -.64112E-06   -.34189E-04
  10  Prefactor     3.6986        6.4797        .28844E-06   -.72957E-04
  11  norm          .57546        6.0830        .20266E-05   -.16547E-03
  12  Prefactor     .10000E-03    23.305        .76563E-08** at limit **
  13  Prefactor     .10000E-03    16.901       -.33849E-06** at limit **
  14  Prefactor     4.6124        11.941        .13601E-06   -.26589E-04
  15  norm          7.9004        5.3993       -.27734E-07   -.46562E-04
  16  norm          .10000E-03    6.9766       -.13831E-07** at limit **
  17  norm          11.627        5.2973        .20199E-07   -.11574E-03
  18  norm          .10000E-03    5.4535       -.15089E-06** at limit **
  19  Prefactor     .10000E-03    1.9271        .16493E-07** at limit **
  20  Prefactor     .10010E-03    12.905       -.27407E-06** at limit **
  21  Prefactor     .10000E-03    29.383       -.35496E-07** at limit **
  22  Prefactor     22.341        22.577        .17881E-06   -.52942E-04
  23  Prefactor     35.952        95.458        .21346E-05    .33718E-04
  24  Normalizat    1.4483        .22665       -.17327E-05    .20495E-03
  25  Prefactor     .53762        .26538        .25240E-05   -.10912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.44563
  Prefactor  = 14.7448
  Prefactor  = 0.0001
  Prefactor  = 7.97769
  Prefactor  = 0.0001
  Prefactor  = 62.6456
  Prefactor  = 0.0001
  Prefactor  = 77.3009
  Prefactor  = 3.69856
  norm       = 0.575456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6124
  norm       = 7.90042
  norm       = 0.0001
  norm       = 11.6272
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 22.3411
  Prefactor  = 35.9519
  Normalizat = 1.44832
  Prefactor  = 0.537623
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.582     FROM HESSE     STATUS=OK           431 CALLS     3797 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4456        4.6572        .18911E-03   -1.5395    
   3  Prefactor     14.745        11.613        .10431E-03   -1.4940    
   4  Prefactor     .10000E-03    7.5507        .18316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9777        3.9067        .89125E-04   -1.5143    
   6  Prefactor     .10000E-03    8.9908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.646        33.982        .25342E-03   -1.4123    
   8  Prefactor     .10000E-03    17.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     77.301        73.925        .22835E-03   -1.3947    
  10  Prefactor     3.6986        6.4321        .21003E-03   -1.5323    
  11  norm          .57546        5.7025        .31662E-03   -1.5556    
  12  Prefactor     .10000E-03    23.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6124        11.877        .18737E-03   -1.5278    
  15  norm          7.9004        5.3926        .12964E-03   -1.5146    
  16  norm          .10000E-03    6.9827        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.627        5.1979        .10162E-03   -1.5026    
  18  norm          .10000E-03    5.4680        .15928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9437        .94799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10010E-03    171.73        .47114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.341        22.555        .84804E-04   -1.4762    
  23  Prefactor     35.952        95.879        .66904E-04   -1.4508    
  24  Normalizat    1.4483        .25197        .21189E-03   -.79241    
  25  Prefactor     .53762        .29308        .39938E-03   -1.1028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11253e-09
Minuit parameter uncertainties:
  1  6.24374e-05
  2  4.6579
  3  11.6146
  4  0.000108569
  5  3.90679
  6  7.36211e-07
  7  33.9928
  8  2.92072e-05
  9  74.0131
  10  6.43333
  11  3.62312
  12  3.63059e-05
  13  4.93597e-05
  14  11.8827
  15  5.39297
  16  1.48636e-07
  17  5.19806
  18  1.56593e-06
  19  1.49855e-06
  20  0.00812385
  21  9.93988e-05
  22  22.564
  23  96.294
  24  0.252187
  25  0.293914
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.699e+00  6.433e+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:  5.376e-01  2.939e-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.448e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36248/likelihoodResults_425433601_425692801_4FGL_J1257.2+3646_daily_bin718.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) = 4907.58080286
delta logL = 0.00117724228312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4907.5804054
delta logL = 0.00157470134491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5060       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0787       1.0000          .0000       10.000    
     3 'Normalizat'    1.4474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53836       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=   4907.580     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      252 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5057        7.4142        .21171E-03    .45914E-03
   2  Index         2.0788        .97992        .10151E-01    .11187E-03
   3  Normalizat    1.4474        .23968        .21194E-03   -.96745E-04
   4  Prefactor     .53835        .28942        .39912E-03   -.81578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50573
  Index      = 2.07875
  Normalizat = 1.44739
  Prefactor  = 0.53835
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.580     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5057        6.9387        .84683E-05   -1.5333    
   2  Index         2.0788        .91843        .40603E-03   -.62395    
   3  Normalizat    1.4474        .23962        .42389E-04   -.79267    
   4  Prefactor     .53835        .28935        .15965E-04   -1.1025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56008e-10
Minuit parameter uncertainties:
  1  6.94026
  2  0.926456
  3  0.239805
  4  0.290151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36248': 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) = 4907.5804054
delta logL = 0.00157470271097

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.506e+00  6.940e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.079e+00  9.265e-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:  5.384e-01  2.902e-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.447e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 194.310 36.771

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/36248/cmap_HighResolution_425433601_425692801_4FGL_J1257.2+3646_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-06 11:54:57.576300', job_id='36248', GAL2='0.54', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630954497.58', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.57e-03', ts2='0.48', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='718' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 36248: <4FGL_J1257.2+3646_daily_bin718> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin718> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:46 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:40:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:40:47 2021
Terminated at Mon Sep  6 11:54:58 2021
Results reported at Mon Sep  6 11:54:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin718 194.31 36.7706 425433601 425692801 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 :                                   672.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

