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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin195
RA = 194.31, Dec = 36.7706
tmin = 289872001, tmax = 290131201
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='31983', job_status='RUN', time_executed='2021-09-06 11:29:05.434518', time_epoch_executed='1630952945.43' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31983

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31983/ft1_4FGL_J1257.2+3646_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31983/ft2_4FGL_J1257.2+3646_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31983/ft1_4FGL_J1257.2+3646_daily_bin195.fits outfile=/scratch/kocevski/31983/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin195.fits ra=194.31 dec=36.7706 rad=12.0 tmin=289872001.0 tmax=290131201.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.54
user 3.27
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31983/ft1_filtered_4FGL_J1257.2+3646_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/31983/ft2_4FGL_J1257.2+3646_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/31983/ltcube_289872001_290131201_4FGL_J1257.2+3646_daily_bin195.fits outfile=/scratch/kocevski/31983/expmap_289872001_290131201_4FGL_J1257.2+3646_daily_bin195.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/31983/ltcube_289872001_290131201_4FGL_J1257.2+3646_daily_bin195.fits
.....................!
real 191.30
user 185.42
sys 5.48

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/31983/ft1_filtered_4FGL_J1257.2+3646_daily_bin195.fits scfile=/scratch/kocevski/31983/ft2_4FGL_J1257.2+3646_daily_bin195.fits outfile=/scratch/kocevski/31983/cmap_289872001_290131201_4FGL_J1257.2+3646_daily_bin195.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.08
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31983/ft1_filtered_4FGL_J1257.2+3646_daily_bin195.fits scfile=/scratch/kocevski/31983/ft2_4FGL_J1257.2+3646_daily_bin195.fits outfile=/scratch/kocevski/31983/cmap_HighResolution_289872001_290131201_4FGL_J1257.2+3646_daily_bin195.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.65
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9036       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.980       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14407E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9141       1.0000         .10000E-03   10000.    
    11 'norm      '    .83987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.613       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.621       1.0000         .10000E-03   10000.    
    16 'norm      '    5.5789       1.0000         .10000E-03   10000.    
    17 'norm      '    9.0617       1.0000         .10000E-03   10000.    
    18 'norm      '    .21801E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.902       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.370       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78772       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94806       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=   5662.854     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2948 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9038        13.858       -.47396E-06   -.55475E-04
   2  norm          5.2457        3.3052        .23149E-07    .59968E-04
   3  Prefactor     .10000E-03    3.5678        .10069E-05** at limit **
   4  Prefactor     1.5267        2.1667       -.17070E-06   -.32481E-03
   5  Prefactor     .10000E-03    1.2183       -.37359E-06** at limit **
   6  Prefactor     13.981        9.2595       -.94549E-07    .67039E-04
   7  Prefactor     .10000E-03    17.858       -.22231E-05** at limit **
   8  Prefactor     .10000E-03    52.026        .33417E-04** at limit **
   9  Prefactor     .10000E-03    19.314        .42867E-05** at limit **
  10  Prefactor     4.9096        5.8663       -.19977E-05   -.62231E-03
  11  norm          .84063        3.3129       -.20491E-05   -.12518E-02
  12  Prefactor     .10000E-03    34.676       -.13965E-04** at limit **
  13  Prefactor     18.612        17.891        .68656E-06    .48842E-04
  14  Prefactor     .10000E-03    6.5993        .21438E-06** at limit **
  15  norm          18.621        6.7175        .25364E-05   -.51884E-04
  16  norm          5.5773        14.434       -.53258E-06   -.21549E-04
  17  norm          9.0552        4.9408        .34847E-06    .61827E-03
  18  norm          .10000E-03    6.9664       -.61712E-06** at limit **
  19  Prefactor     .10000E-03    2.3150        .42839E-06** at limit **
  20  Prefactor     .10000E-03    5.5189        .62506E-07** at limit **
  21  Prefactor     22.877        38.898       -.27699E-04   -.30852E-05
  22  Prefactor     25.371        17.870        .47148E-07    .12476E-04
  23  Prefactor     .10000E-03    74.148       -.25524E-04** at limit **
  24  Normalizat    .78754        .15519        .66630E-06   -.49723E-05
  25  Prefactor     .94826        .19612        .73455E-06    .23060E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.90383
  norm       = 5.24571
  Prefactor  = 0.0001
  Prefactor  = 1.52668
  Prefactor  = 0.000100001
  Prefactor  = 13.9812
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.9096
  norm       = 0.840633
  Prefactor  = 0.0001
  Prefactor  = 18.6116
  Prefactor  = 0.0001
  norm       = 18.6209
  norm       = 5.57732
  norm       = 9.05517
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8771
  Prefactor  = 25.3714
  Prefactor  = 0.0001
  Normalizat = 0.787545
  Prefactor  = 0.948261
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.854     FROM HESSE     STATUS=OK           431 CALLS     3379 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9038        13.845        .18164E-03   -1.5265    
   2  norm          5.2457        3.3129        .94013E-04   -1.5250    
   3  Prefactor     .10000E-03    3.5961        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5267        2.1519        .11469E-03   -1.5461    
   5  Prefactor     .10000E-03    3.5761        .15952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.981        9.2191        .10713E-03   -1.4960    
   7  Prefactor     .10000E-03    17.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9096        5.8814        .18144E-03   -1.5265    
  11  norm          .84063        3.2886        .24952E-03   -1.5525    
  12  Prefactor     .10000E-03    34.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.612        17.713        .92835E-04   -1.4845    
  14  Prefactor     .10000E-03    6.6074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.621        6.7019        .92816E-04   -1.4845    
  16  norm          5.5773        14.440        .17009E-03   -1.5236    
  17  norm          9.0552        4.1676        .96907E-04   -1.5106    
  18  norm          .10000E-03    25.910        .32332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3821        .22292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5286        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.877        38.738        .83700E-04   -1.4751    
  22  Prefactor     25.371        17.883        .79531E-04   -1.4700    
  23  Prefactor     .10000E-03    74.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78754        .18165        .22694E-03   -1.0053    
  25  Prefactor     .94826        .22956        .26560E-03   -.94475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08419e-09
Minuit parameter uncertainties:
  1  13.8544
  2  3.31302
  3  6.67968e-06
  4  2.152
  5  0.000131758
  6  9.22008
  7  9.20329e-06
  8  0.000439112
  9  2.17933e-08
  10  5.88211
  11  3.28928
  12  2.13602e-06
  13  17.7184
  14  1.38538e-05
  15  6.70221
  16  14.4494
  17  4.16774
  18  0.000271595
  19  5.84748e-05
  20  3.92522e-05
  21  38.7811
  22  17.8865
  23  0.000205869
  24  0.181787
  25  0.229798
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.910e+00  5.882e+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:  9.483e-01  2.298e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  7.875e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.86e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/31983/likelihoodResults_289872001_290131201_4FGL_J1257.2+3646_daily_bin195.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) = 5662.57035629
delta logL = 0.28348946438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5662.56255158
delta logL = 0.291294170443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7318       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6185       1.0000          .0000       10.000    
     3 'Normalizat'    .76529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96315       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=   5662.563     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      271 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7316        5.8492        .10905E-03   -.41252E-03
   2  Index         2.6193        1.0044        .57148E-02   -.59999E-04
   3  Normalizat    .76529        .18112        .22980E-03   -.10176E-03
   4  Prefactor     .96343        .22850        .26362E-03   -.14270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.73158
  Index      = 2.6193
  Normalizat = 0.765288
  Prefactor  = 0.963431
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.563     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7316        4.5702        .43620E-05   -1.5377    
   2  Index         2.6193        .78650        .22859E-03   -.49626    
   3  Normalizat    .76529        .18051        .91920E-05   -1.0137    
   4  Prefactor     .96343        .22797        .10545E-04   -.93959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.96293e-11
Minuit parameter uncertainties:
  1  4.57074
  2  0.790756
  3  0.180652
  4  0.228201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31983': 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) = 5662.56254524
delta logL = 0.291300511161

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.732e+00  4.571e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.619e+00  7.908e-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:  9.634e-01  2.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  7.653e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.62 +/- 0.79
Photon Flux (Free Index): 3.76e-08 +/- 3.84e-08
Energy Flux (Free Index): 9.68e-06 +/- 9.30e-06

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/31983/cmap_HighResolution_289872001_290131201_4FGL_J1257.2+3646_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', comment='SUCCESS', photon_flux='1.86e-08', energy_flux2='9.68e-06', photon_flux_error='2.23e-08', dlogl='2.91e-01', energy_flux='1.21e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-09-06 11:40:51.618399', photon_index_error2='0.79', photon_index2='2.62', ts='1.09', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='7.35e-08', energy_flux_error2='9.30e-06', EG='0.79', time_epoch_completed='1630953651.62', return_code='0', job_id='31983', GAL2='0.96', EG2='0.77', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.84e-08', ts2='1.68', photon_index='2.03' WHERE bin_id='195' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:40:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 31983: <4FGL_J1257.2+3646_daily_bin195> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin195> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:51 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:53 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:25:53 2021
Terminated at Mon Sep  6 11:40:52 2021
Results reported at Mon Sep  6 11:40:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin195 194.31 36.7706 289872001 290131201 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 :                                   700.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

