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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin194
RA = 194.31, Dec = 36.7706
tmin = 289612801, tmax = 289872001
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='31981', job_status='RUN', time_executed='2021-09-06 11:28:45.535275', time_epoch_executed='1630952925.54' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31981/ft1_4FGL_J1257.2+3646_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31981/ft2_4FGL_J1257.2+3646_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31981/ft1_4FGL_J1257.2+3646_daily_bin194.fits outfile=/scratch/kocevski/31981/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin194.fits ra=194.31 dec=36.7706 rad=12.0 tmin=289612801.0 tmax=289872001.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.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31981/ft1_filtered_4FGL_J1257.2+3646_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/31981/ft2_4FGL_J1257.2+3646_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/31981/ltcube_289612801_289872001_4FGL_J1257.2+3646_daily_bin194.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/31981/ft2_4FGL_J1257.2+3646_daily_bin194.fits
.....................!
real 11.84
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31981/ft1_filtered_4FGL_J1257.2+3646_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/31981/ft2_4FGL_J1257.2+3646_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/31981/ltcube_289612801_289872001_4FGL_J1257.2+3646_daily_bin194.fits outfile=/scratch/kocevski/31981/expmap_289612801_289872001_4FGL_J1257.2+3646_daily_bin194.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/31981/ltcube_289612801_289872001_4FGL_J1257.2+3646_daily_bin194.fits
.....................!
real 190.56
user 185.05
sys 5.11

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/31981/ft1_filtered_4FGL_J1257.2+3646_daily_bin194.fits scfile=/scratch/kocevski/31981/ft2_4FGL_J1257.2+3646_daily_bin194.fits outfile=/scratch/kocevski/31981/cmap_289612801_289872001_4FGL_J1257.2+3646_daily_bin194.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.69
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.919       1.0000         .10000E-03   10000.    
     2 'norm      '    .96002       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3007       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.203       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.889       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.182       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7056       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.1466       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8845       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8686       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22541E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89309       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79126       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=   5194.836     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2936 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.918        41.420       -.13314E-06    .17263E-05
   2  norm          .96037        1.9952        .56785E-08   -.11079E-03
   3  Prefactor     6.3016        8.8399        .18938E-05    .16522E-03
   4  Prefactor     .10000E-03    1.1307       -.75442E-08** at limit **
   5  Prefactor     2.2542        2.1133        .42762E-07    .18632E-04
   6  Prefactor     15.204        10.393        .90222E-07    .87787E-05
   7  Prefactor     .10000E-03    22.348        .24185E-05** at limit **
   8  Prefactor     .10000E-03    7.1089        .17151E-07** at limit **
   9  Prefactor     .10000E-03    20.095       -.25075E-05** at limit **
  10  Prefactor     .10000E-03    4.4267        .41444E-07** at limit **
  11  norm          2.8684        3.3738        .17530E-06    .82383E-04
  12  Prefactor     55.891        39.207        .12633E-07   -.27427E-04
  13  Prefactor     .10000E-03    12.137       -.83568E-06** at limit **
  14  Prefactor     34.185        16.461        .22948E-08   -.86591E-04
  15  norm          2.7059        3.4034       -.74560E-07   -.11010E-03
  16  norm          .10000E-03    4.9508        .18309E-07** at limit **
  17  norm          8.1486        7.7354       -.60527E-06   -.38183E-03
  18  norm          1.8823        21.275        .17560E-05    .10964E-04
  19  Prefactor     .10000E-03    1.3820       -.50785E-06** at limit **
  20  Prefactor     2.8663        13.840        .66322E-05   -.97584E-04
  21  Prefactor     .10000E-03    12.862        .12371E-05** at limit **
  22  Prefactor     .10006E-03    16.653        .43910E-05** at limit **
  23  Prefactor     .10000E-03    105.16        .21712E-05** at limit **
  24  Normalizat    .89310        .16224       -.11263E-05   -.39506E-03
  25  Prefactor     .79120        .19736       -.96706E-07   -.25839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.9179
  norm       = 0.960367
  Prefactor  = 6.30157
  Prefactor  = 0.0001
  Prefactor  = 2.25417
  Prefactor  = 15.2038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86839
  Prefactor  = 55.8911
  Prefactor  = 0.0001
  Prefactor  = 34.1847
  norm       = 2.70589
  norm       = 0.0001
  norm       = 8.14864
  norm       = 1.88228
  Prefactor  = 0.000100001
  Prefactor  = 2.86632
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  Normalizat = 0.893104
  Prefactor  = 0.791197
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.836     FROM HESSE     STATUS=OK           427 CALLS     3363 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.918        41.407        .48703E-04   -1.4058    
   2  norm          .96037        1.5959        .14047E-02   -1.5512    
   3  Prefactor     6.3016        8.7876        .79957E-03   -1.5206    
   4  Prefactor     .10000E-03    1.1468        .74654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2542        2.0936        .96274E-04   -1.5408    
   6  Prefactor     15.204        10.379        .10272E-03   -1.4928    
   7  Prefactor     .10000E-03    22.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4890        .14789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8684        3.3625        .13810E-03   -1.5369    
  12  Prefactor     55.891        39.209        .53657E-04   -1.4211    
  13  Prefactor     .10000E-03    12.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.185        16.448        .68541E-04   -1.4538    
  15  norm          2.7059        3.3901        .14358E-03   -1.5379    
  16  norm          .10000E-03    4.9556        .15662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.1486        7.3010        .49327E-03   -1.5137    
  18  norm          1.8823        18.928        .30320E-03   -1.5434    
  19  Prefactor     .10000E-03    2.3375        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8663        14.808        .12000E-02   -1.5369    
  21  Prefactor     .10000E-03    12.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    60.443        .49297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    105.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89310        .19295        .21337E-03   -.96703    
  25  Prefactor     .79120        .23538        .28186E-03   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34691e-09
Minuit parameter uncertainties:
  1  41.4245
  2  1.59594
  3  8.78937
  4  1.3856e-07
  5  2.09363
  6  10.3802
  7  8.53116e-05
  8  1.9985e-06
  9  0.000107163
  10  5.83471e-06
  11  3.3627
  12  39.227
  13  1.99358e-05
  14  16.45
  15  3.39036
  16  2.51122e-06
  17  7.30178
  18  11.9423
  19  7.09855e-05
  20  13.0349
  21  4.34202e-05
  22  0.00365652
  23  0.000190699
  24  0.193097
  25  0.235683
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.835e-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:  7.912e-01  2.357e-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:  8.931e-01  1.931e-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: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31981/likelihoodResults_289612801_289872001_4FGL_J1257.2+3646_daily_bin194.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) = 5194.83699126
delta logL = -0.0010613760187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5194.83592996
delta logL = -7.88168108556e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9982       1.0000          .0000       10.000    
     3 'Normalizat'    .89309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79124       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=   5194.836     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      246 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10344E-03    .99540        .15295E-01** at limit **
   2  Index         1.8993        8.7789        .50000        .38178E-04
   3  Normalizat    .89310        .17253E-02    .21337E-03    .30210E-04
   4  Prefactor     .79120        .21674E-02    .28186E-03    .46102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103444
  Index      = 1.89934
  Normalizat = 0.893105
  Prefactor  = 0.791197
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.836     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10344E-03    279.45        .31256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8993        8.0416        .50000       -.66891    
   3  Normalizat    .89310        .30249E-01    .85349E-05   -.96703    
   4  Prefactor     .79120        .37974E-01    .11274E-04   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07864e-07
Minuit parameter uncertainties:
  1  0.0623346
  2  635.658
  3  0.0302497
  4  0.0379757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31981': 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) = 5194.83592876
delta logL = 1.12353518489e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.034e-04  6.233e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.899e+00  6.357e+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:  7.912e-01  3.798e-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:  8.931e-01  3.025e-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/31981/cmap_HighResolution_289612801_289872001_4FGL_J1257.2+3646_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-06 11:39:51.925686', job_id='31981', GAL2='0.79', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630953591.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='194' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 31981: <4FGL_J1257.2+3646_daily_bin194> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin194> 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) <bullet0274>, 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:39:52 2021
Results reported at Mon Sep  6 11:39:52 2021

Your job looked like:

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

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

