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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin181
RA = 194.31, Dec = 36.7706
tmin = 286243201, tmax = 286502401
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='31956', job_status='RUN', time_executed='2021-09-06 11:28:46.134948', time_epoch_executed='1630952926.13' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31956/ft1_4FGL_J1257.2+3646_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31956/ft2_4FGL_J1257.2+3646_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31956/ft1_4FGL_J1257.2+3646_daily_bin181.fits outfile=/scratch/kocevski/31956/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin181.fits ra=194.31 dec=36.7706 rad=12.0 tmin=286243201.0 tmax=286502401.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.49
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31956/ft2_4FGL_J1257.2+3646_daily_bin181.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/31956/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin181.fits evtable="EVENTS" outfile="/scratch/kocevski/31956/ft1_filtered_4FGL_J1257.2+3646_daily_bin181.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31956/ft1_filtered_4FGL_J1257.2+3646_daily_bin181.fits" evtable="EVENTS" scfile=/scratch/kocevski/31956/ft2_4FGL_J1257.2+3646_daily_bin181.fits sctable="SC_DATA" outfile=/scratch/kocevski/31956/ltcube_286243201_286502401_4FGL_J1257.2+3646_daily_bin181.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/31956/ft2_4FGL_J1257.2+3646_daily_bin181.fits
.....................!
real 16.09
user 15.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31956/ft1_filtered_4FGL_J1257.2+3646_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/31956/ft2_4FGL_J1257.2+3646_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/31956/ltcube_286243201_286502401_4FGL_J1257.2+3646_daily_bin181.fits outfile=/scratch/kocevski/31956/expmap_286243201_286502401_4FGL_J1257.2+3646_daily_bin181.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/31956/ltcube_286243201_286502401_4FGL_J1257.2+3646_daily_bin181.fits
.....................!
real 190.49
user 185.06
sys 4.92

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/31956/ft1_filtered_4FGL_J1257.2+3646_daily_bin181.fits scfile=/scratch/kocevski/31956/ft2_4FGL_J1257.2+3646_daily_bin181.fits outfile=/scratch/kocevski/31956/cmap_286243201_286502401_4FGL_J1257.2+3646_daily_bin181.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 5.90
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31956/ft1_filtered_4FGL_J1257.2+3646_daily_bin181.fits scfile=/scratch/kocevski/31956/ft2_4FGL_J1257.2+3646_daily_bin181.fits outfile=/scratch/kocevski/31956/cmap_HighResolution_286243201_286502401_4FGL_J1257.2+3646_daily_bin181.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.37
user 0.36
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22489E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7842       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8868       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5138       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.528       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.566       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7817       1.0000         .10000E-03   10000.    
    11 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14497E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.567       1.0000         .10000E-03   10000.    
    15 'norm      '    .12521E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.179       1.0000         .10000E-03   10000.    
    17 'norm      '    .11396E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1017       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24237E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78763       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1911       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=   5338.190     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2962 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    210.84        .65269E-05** at limit **
   2  norm          4.7841        3.4945       -.40865E-07   -.90888E-04
   3  Prefactor     .10000E-03    2.8066       -.72853E-08** at limit **
   4  Prefactor     4.8866        2.8107        .73528E-07   -.20950E-03
   5  Prefactor     3.5141        2.6478       -.17135E-06    .39061E-04
   6  Prefactor     21.528        12.151       -.10390E-06   -.52788E-04
   7  Prefactor     10.557        17.478       -.20279E-06    .38037E-04
   8  Prefactor     .10000E-03    6.7893       -.37643E-07** at limit **
   9  Prefactor     .10000E-03    28.886       -.52294E-07** at limit **
  10  Prefactor     5.7775        5.4649        .52289E-07   -.23048E-03
  11  norm          .10000E-03    2.8848        .81876E-07** at limit **
  12  Prefactor     .10000E-03    93.878        .75796E-06** at limit **
  13  Prefactor     .10000E-03    45.325        .10937E-05** at limit **
  14  Prefactor     21.559        18.022        .63159E-07   -.21701E-03
  15  norm          .10000E-03    4.2432        .12761E-06** at limit **
  16  norm          13.179        14.155       -.18084E-05    .24429E-03
  17  norm          .10000E-03    2.2219        .86224E-06** at limit **
  18  norm          5.1122        5.7876       -.18404E-05   -.10504E-02
  19  Prefactor     .10000E-03    1.1263        .36219E-07** at limit **
  20  Prefactor     4.0891        12.521       -.24870E-05   -.12559E-03
  21  Prefactor     .10000E-03    14.167       -.23249E-07** at limit **
  22  Prefactor     .10000E-03    123.81        .20426E-04** at limit **
  23  Prefactor     .10000E-03    43.061       -.67051E-06** at limit **
  24  Normalizat    .78765        .16473        .13583E-05   -.53210E-03
  25  Prefactor     1.1910        .20880        .11010E-05   -.38579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 4.78411
  Prefactor  = 0.0001
  Prefactor  = 4.88661
  Prefactor  = 3.51406
  Prefactor  = 21.5284
  Prefactor  = 10.5566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.77749
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 21.5586
  norm       = 0.0001
  norm       = 13.1788
  norm       = 0.0001
  norm       = 5.11217
  Prefactor  = 0.0001
  Prefactor  = 4.0891
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  Normalizat = 0.787654
  Prefactor  = 1.191
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.190     FROM HESSE     STATUS=OK           425 CALLS     3387 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    214.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7841        3.4990        .10496E-03   -1.5270    
   3  Prefactor     .10000E-03    2.8124        .11952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8866        2.8176        .84103E-04   -1.5266    
   5  Prefactor     3.5141        2.6367        .97287E-04   -1.5333    
   6  Prefactor     21.528        12.143        .86327E-04   -1.4780    
   7  Prefactor     10.557        17.471        .12326E-03   -1.5058    
   8  Prefactor     .10000E-03    6.7938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7775        5.4565        .15427E-03   -1.5227    
  11  norm          .10000E-03    2.9518        .24200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    94.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.559        17.952        .86248E-04   -1.4779    
  15  norm          .10000E-03    4.2878        .14636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.179        13.963        .55168E-03   -1.4982    
  17  norm          .10000E-03    9.0893        .18341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1122        5.5493        .17177E-03   -1.5256    
  19  Prefactor     .10000E-03    1.1340        .75518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0891        12.444        .19906E-03   -1.5304    
  21  Prefactor     .10000E-03    14.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    119.30        .47651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    43.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78765        .19167        .23964E-03   -1.0053    
  25  Prefactor     1.1910        .24727        .25851E-03   -.86609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22763e-09
Minuit parameter uncertainties:
  1  0.00131113
  2  3.49916
  3  1.22339e-05
  4  2.81768
  5  2.63682
  6  12.1445
  7  17.479
  8  9.59128e-06
  9  1.25378e-05
  10  5.45697
  11  2.73232e-05
  12  0.000860376
  13  0.000152182
  14  17.9565
  15  3.43964e-05
  16  13.9661
  17  0.000107343
  18  5.5499
  19  4.61116e-06
  20  12.4523
  21  7.41084e-07
  22  0.00135492
  23  0.000678318
  24  0.19183
  25  0.247512
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.777e+00  5.457e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.191e+00  2.475e-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.877e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.55
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.34e-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) = 5338.16478342
delta logL = 0.0254514042299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5338.16321519
delta logL = 0.0270196399451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0697       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8100       1.0000          .0000       10.000    
     3 'Normalizat'    .79434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1873       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=   5338.163     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0698        5.8462        .16297E-03   -.46600E-04
   2  Index         1.8089        .94888        .12203E-01   -.24049E-04
   3  Normalizat    .79442        .18986        .23876E-03    .37330E-04
   4  Prefactor     1.1874        .24552        .25890E-03    .36315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06976
  Index      = 1.80892
  Normalizat = 0.794416
  Prefactor  = 1.18737
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.163     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0698        5.8409        .65187E-05   -1.5215    
   2  Index         1.8089        .94761        .48813E-03   -.69218    
   3  Normalizat    .79442        .18991        .95506E-05   -1.0028    
   4  Prefactor     1.1874        .24574        .10356E-04   -.86721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14556e-11
Minuit parameter uncertainties:
  1  5.84142
  2  0.957456
  3  0.190072
  4  0.245981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31956': 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) = 5338.16321416
delta logL = 0.0270206618452

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.070e+00  5.841e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.809e+00  9.575e-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.187e+00  2.460e-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.944e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.59
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.81 +/- 0.96
Photon Flux (Free Index): 1.53e-08 +/- 2.95e-08
Energy Flux (Free Index): 1.79e-05 +/- 2.73e-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/31956/cmap_HighResolution_286243201_286502401_4FGL_J1257.2+3646_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='1.79e-05', photon_flux_error='2.07e-08', dlogl='2.70e-02', energy_flux='1.42e-05', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-09-06 11:39:11.977520', photon_index_error2='0.96', photon_index2='1.81', ts='4.55', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='0.79', time_epoch_completed='1630953551.98', return_code='0', job_id='31956', GAL2='1.19', EG2='0.79', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='2.95e-08', ts2='4.59', photon_index='2.03' WHERE bin_id='181' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:39:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 31956: <4FGL_J1257.2+3646_daily_bin181> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin181 194.31 36.7706 286243201 286502401 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 :                                   611.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            803 sec.

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

