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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin739
RA = 194.31, Dec = 36.7706
tmin = 430876801, tmax = 431136001
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='36280', job_status='RUN', time_executed='2021-09-06 11:45:03.324412', time_epoch_executed='1630953903.32' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36280

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36280/ft1_4FGL_J1257.2+3646_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36280/ft2_4FGL_J1257.2+3646_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36280/ft1_4FGL_J1257.2+3646_daily_bin739.fits outfile=/scratch/kocevski/36280/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin739.fits ra=194.31 dec=36.7706 rad=12.0 tmin=430876801.0 tmax=431136001.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.49
user 5.09
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36280/ft1_filtered_4FGL_J1257.2+3646_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/36280/ft2_4FGL_J1257.2+3646_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/36280/ltcube_430876801_431136001_4FGL_J1257.2+3646_daily_bin739.fits outfile=/scratch/kocevski/36280/expmap_430876801_431136001_4FGL_J1257.2+3646_daily_bin739.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/36280/ltcube_430876801_431136001_4FGL_J1257.2+3646_daily_bin739.fits
.....................!
real 192.13
user 185.66
sys 5.56

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/36280/ft1_filtered_4FGL_J1257.2+3646_daily_bin739.fits scfile=/scratch/kocevski/36280/ft2_4FGL_J1257.2+3646_daily_bin739.fits outfile=/scratch/kocevski/36280/cmap_430876801_431136001_4FGL_J1257.2+3646_daily_bin739.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.25
user 0.38
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.263       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11766E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.510       1.0000         .10000E-03   10000.    
    11 'norm      '    .12786E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.072       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.239       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26453E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95111       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2547       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=   3994.502     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2833 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.659       -.27604E-04** at limit **
   2  norm          10.263        4.3198        .88231E-07    .26357E-03
   3  Prefactor     .10000E-03    10.365        .26301E-05** at limit **
   4  Prefactor     .10000E-03    1.2446       -.10761E-06** at limit **
   5  Prefactor     .28967        3.3125       -.16242E-05   -.13338E-02
   6  Prefactor     .10000E-03    7.7683       -.17059E-05** at limit **
   7  Prefactor     .10000E-03    44.706       -.15302E-04** at limit **
   8  Prefactor     .10000E-03    18.016        .12705E-06** at limit **
   9  Prefactor     .10000E-03    134.96       -.10429E-03** at limit **
  10  Prefactor     15.510        11.277       -.33646E-06   -.35520E-03
  11  norm          .10000E-03    6.0198        .22729E-05** at limit **
  12  Prefactor     46.072        50.828       -.72705E-07    .64747E-05
  13  Prefactor     21.239        37.469        .13850E-05    .44250E-05
  14  Prefactor     .10000E-03    10.980       -.12257E-04** at limit **
  15  norm          .10000E-03    3.3755        .84475E-07** at limit **
  16  norm          .10000E-03    5.8982       -.16276E-05** at limit **
  17  norm          .10000E-03    1.8760        .57443E-09** at limit **
  18  norm          .10000E-03    2.9669        .88371E-07** at limit **
  19  Prefactor     .10001E-03    2.5288       -.89166E-07** at limit **
  20  Prefactor     .10000E-03    10.272        .95673E-05** at limit **
  21  Prefactor     .10000E-03    96.574        .61976E-04** at limit **
  22  Prefactor     .10000E-03    21.249        .48077E-05** at limit **
  23  Prefactor     .10000E-03    54.924        .44674E-04** at limit **
  24  Normalizat    .95151        .22004       -.64946E-06    .56514E-04
  25  Prefactor     1.2543        .26480        .49929E-06   -.12536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.2633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.28967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5099
  norm       = 0.0001
  Prefactor  = 46.0723
  Prefactor  = 21.2389
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.951507
  Prefactor  = 1.25426
 **********
 **   18 **HESSE 
 **********

 FCN=   3994.502     FROM HESSE     STATUS=OK           415 CALLS     3248 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.263        4.3020        .81920E-04   -1.5067    
   3  Prefactor     .10000E-03    10.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2507        .68790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .28967        3.4090        .22181E-03   -1.5600    
   6  Prefactor     .10000E-03    7.7879        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    134.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.510        11.270        .50850E-03   -1.4920    
  11  norm          .10000E-03    6.0803        .15069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     46.072        50.830        .59070E-04   -1.4349    
  13  Prefactor     21.239        37.104        .86912E-04   -1.4786    
  14  Prefactor     .10000E-03    10.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3823        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.8989        .14992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8814        .84487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9703        .10631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    25.800        .19048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    96.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    54.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95151        .26484        .25252E-03   -.94673    
  25  Prefactor     1.2543        .31989        .27398E-03   -.84677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01564e-09
Minuit parameter uncertainties:
  1  6.18363e-05
  2  4.3021
  3  3.59725e-06
  4  2.56975e-06
  5  1.98724
  6  1.63268e-05
  7  3.50357e-05
  8  1.16913e-05
  9  0.000140273
  10  11.2718
  11  1.01845e-05
  12  50.8777
  13  37.1442
  14  6.13129e-06
  15  1.15819e-06
  16  3.59368e-07
  17  1.94148e-06
  18  1.63029e-06
  19  0.00101329
  20  1.77257e-05
  21  0.000196826
  22  1.59032e-05
  23  2.77911e-05
  24  0.265207
  25  0.320394
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.551e+01  1.127e+01  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.254e+00  3.204e-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.515e-01  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 3.81e-05 +/- 2.77e-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) = 3994.4632897
delta logL = 0.038283494061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3994.45803386
delta logL = 0.0435393338475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.451       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8639       1.0000          .0000       10.000    
     3 'Normalizat'    .96115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2486       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=   3994.458     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      269 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.452        13.832        .95876E-04   -.59214E-03
   2  Index         1.8637        .55717        .66655E-02   -.19223E-03
   3  Normalizat    .96117        .26070        .25141E-03    .10073E-03
   4  Prefactor     1.2486        .31856        .27454E-03    .11528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4518
  Index      = 1.86375
  Normalizat = 0.961169
  Prefactor  = 1.24855
 **********
 **   18 **HESSE 
 **********

 FCN=   3994.458     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.452        13.614        .19175E-04   -1.4872    
   2  Index         1.8637        .54807        .26662E-03   -.67802    
   3  Normalizat    .96117        .26083        .10056E-04   -.94343    
   4  Prefactor     1.2486        .31884        .54908E-04   -.84850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8217e-10
Minuit parameter uncertainties:
  1  13.6165
  2  0.549898
  3  0.261177
  4  0.319332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36280': 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) = 3994.45803383
delta logL = 0.0435393679586

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.745e+01  1.362e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.864e+00  5.499e-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.249e+00  3.193e-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.612e-01  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.86 +/- 0.55
Photon Flux (Free Index): 4.86e-08 +/- 5.01e-08
Energy Flux (Free Index): 4.82e-05 +/- 5.38e-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/36280/cmap_HighResolution_430876801_431136001_4FGL_J1257.2+3646_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='4.82e-05', photon_flux_error='4.28e-08', dlogl='4.35e-02', energy_flux='3.81e-05', photon_flux2='4.86e-08', job_status='DONE', time_completed='2021-09-06 11:54:06.857333', photon_index_error2='0.55', photon_index2='1.86', ts='4.65', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='5.38e-05', EG='0.95', time_epoch_completed='1630954446.86', return_code='0', job_id='36280', GAL2='1.25', EG2='0.96', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='5.01e-08', ts2='4.74', photon_index='2.03' WHERE bin_id='739' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:54:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 36280: <4FGL_J1257.2+3646_daily_bin739> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin739> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:40:48 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:40:49 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:49 2021
Terminated at Mon Sep  6 11:54:07 2021
Results reported at Mon Sep  6 11:54:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin739 194.31 36.7706 430876801 431136001 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 :                                   529.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            799 sec.

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

