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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin924
RA = 194.31, Dec = 36.7706
tmin = 478828801, tmax = 479088001
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='36573', job_status='RUN', time_executed='2021-09-06 11:43:40.009328', time_epoch_executed='1630953820.01' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36573

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36573/ft1_4FGL_J1257.2+3646_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36573/ft2_4FGL_J1257.2+3646_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36573/ft1_4FGL_J1257.2+3646_daily_bin924.fits outfile=/scratch/kocevski/36573/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin924.fits ra=194.31 dec=36.7706 rad=12.0 tmin=478828801.0 tmax=479088001.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.61
user 3.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36573/ft1_filtered_4FGL_J1257.2+3646_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/36573/ft2_4FGL_J1257.2+3646_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/36573/ltcube_478828801_479088001_4FGL_J1257.2+3646_daily_bin924.fits outfile=/scratch/kocevski/36573/expmap_478828801_479088001_4FGL_J1257.2+3646_daily_bin924.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/36573/ltcube_478828801_479088001_4FGL_J1257.2+3646_daily_bin924.fits
.....................!
real 190.86
user 185.46
sys 4.75

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

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

This is gtbin version HEAD
real 0.83
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6945       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7551       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4963       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.641       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5049       1.0000         .10000E-03   10000.    
    15 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .51600E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49264E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.480       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.065       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .51839       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3779       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=   5240.625     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2933 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.825       -.14031E-05** at limit **
   2  norm          18.877        5.3241       -.16776E-06    .16758E-03
   3  Prefactor     3.6958        7.5072        .22229E-06    .52439E-04
   4  Prefactor     1.7550        2.6959        .16828E-06    .74895E-04
   5  Prefactor     5.2562        2.9979       -.11127E-06   -.89851E-04
   6  Prefactor     2.5379        6.6553        .47950E-05    .78662E-06
   7  Prefactor     .10000E-03    26.118       -.93996E-06** at limit **
   8  Prefactor     .10000E-03    6.8082       -.18563E-07** at limit **
   9  Prefactor     .10000E-03    29.220        .21288E-05** at limit **
  10  Prefactor     .10000E-03    2.3428       -.26411E-07** at limit **
  11  norm          3.4947        4.4001        .89443E-07   -.16867E-03
  12  Prefactor     .10000E-03    61.214       -.10548E-05** at limit **
  13  Prefactor     24.568        26.428       -.13673E-05   -.15188E-03
  14  Prefactor     8.5055        11.441        .18500E-06   -.42081E-04
  15  norm          .10000E-03    4.8070        .23880E-06** at limit **
  16  norm          .10000E-03    19.885        .26280E-06** at limit **
  17  norm          .80884E-01    2.0263       -.74312E-06    .56671E-03
  18  norm          .10000E-03    2.5122        .96165E-07** at limit **
  19  Prefactor     .10000E-03    1.1397        .33058E-06** at limit **
  20  Prefactor     .10062E-03    6.7747       -.33000E-06** at limit **
  21  Prefactor     41.489        54.799       -.21932E-05   -.42820E-04
  22  Prefactor     .10000E-03    15.294       -.20262E-06** at limit **
  23  Prefactor     36.074        75.040       -.47323E-07    .49297E-06
  24  Normalizat    .51789        .16934       -.11490E-05   -.17361E-03
  25  Prefactor     1.3784        .21342        .53632E-06   -.10093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.8771
  Prefactor  = 3.69575
  Prefactor  = 1.755
  Prefactor  = 5.25619
  Prefactor  = 2.5379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49474
  Prefactor  = 0.0001
  Prefactor  = 24.5676
  Prefactor  = 8.50551
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0808838
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100624
  Prefactor  = 41.4886
  Prefactor  = 0.0001
  Prefactor  = 36.0741
  Normalizat = 0.517892
  Prefactor  = 1.37842
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.625     FROM HESSE     STATUS=OK           435 CALLS     3368 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.877        5.2966        .38274E-03   -1.4839    
   3  Prefactor     3.6958        7.4919        .21012E-03   -1.5323    
   4  Prefactor     1.7550        2.6560        .12974E-03   -1.5443    
   5  Prefactor     5.2562        2.9937        .88512E-04   -1.5249    
   6  Prefactor     2.5379        6.6852        .12818E-02   -1.5389    
   7  Prefactor     .10000E-03    26.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3613        .10810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4947        4.3744        .15385E-03   -1.5334    
  12  Prefactor     .10000E-03    61.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.568        27.499        .80697E-04   -1.4716    
  14  Prefactor     8.5055        11.419        .13746E-03   -1.5125    
  15  norm          .10000E-03    4.9891        .30972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .80884E-01    29.908        .17544E-02   -1.5651    
  18  norm          .10000E-03    2.5205        .11198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1559        .75658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10062E-03    9.9696        .64852E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.489        55.139        .62241E-04   -1.4419    
  22  Prefactor     .10000E-03    15.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.074        75.379        .66734E-04   -1.4506    
  24  Normalizat    .51789        .20113        .28051E-03   -1.1159    
  25  Prefactor     1.3784        .25509        .23696E-03   -.81004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31712e-09
Minuit parameter uncertainties:
  1  0.000173392
  2  5.29669
  3  7.49381
  4  2.65613
  5  2.99379
  6  6.68717
  7  2.19169e-05
  8  1.5351e-06
  9  0.000186386
  10  1.05771e-06
  11  4.37481
  12  1.16585e-05
  13  27.5132
  14  11.4222
  15  3.53474e-05
  16  0.000149328
  17  3.11034
  18  1.36436e-05
  19  2.18792e-05
  20  0.00499101
  21  55.2073
  22  1.28365e-05
  23  75.579
  24  0.201416
  25  0.255322
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.058e-06  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.378e+00  2.553e-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:  5.179e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36573/likelihoodResults_478828801_479088001_4FGL_J1257.2+3646_daily_bin924.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): 102
logL (Free Index) = 5240.62669129
delta logL = -0.00197296070201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5240.62471845
delta logL = -1.20242475532e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0072       1.0000          .0000       10.000    
     3 'Normalizat'    .51788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3785       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=   5240.625     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    28.702        .10995E-02** at limit **
   2  Index         1.9639        8.9155        .50000        .59341E-04
   3  Normalizat    .51789        .13365E-01    .28052E-03    .41378E-04
   4  Prefactor     1.3784        .17763E-01    .23696E-03    .97431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100856
  Index      = 1.96393
  Normalizat = 0.517893
  Prefactor  = 1.37842
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.625     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10086E-03    118.84        .21990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9639        6.7755        .50000       -.65255    
   3  Normalizat    .51789        .28437E-01    .11221E-04   -1.1159    
   4  Prefactor     1.3784        .37789E-01    .47393E-04   -.81004    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.28541e-08
Minuit parameter uncertainties:
  1  0.0202108
  2  284.871
  3  0.0284373
  4  0.0377902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36573': 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): 102
logL (Free Index) = 5240.62471746
delta logL = 8.64880348672e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.009e-04  2.021e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.964e+00  2.849e+02  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.378e+00  3.779e-02  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:  5.179e-01  2.844e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/36573/cmap_HighResolution_478828801_479088001_4FGL_J1257.2+3646_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2021-09-06 11:55:09.076693', job_id='36573', GAL2='1.38', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1630954509.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='8.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='924' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 36573: <4FGL_J1257.2+3646_daily_bin924> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin924> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:41:14 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:41:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:41:16 2021
Terminated at Mon Sep  6 11:55:10 2021
Results reported at Mon Sep  6 11:55:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin924 194.31 36.7706 478828801 479088001 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 :                                   671.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

