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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin390
RA = 194.31, Dec = 36.7706
tmin = 340416001, tmax = 340675201
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='33003', job_status='RUN', time_executed='2021-09-06 11:33:16.074445', time_epoch_executed='1630953196.07' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33003

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33003/ft1_4FGL_J1257.2+3646_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33003/ft2_4FGL_J1257.2+3646_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33003/ft1_4FGL_J1257.2+3646_daily_bin390.fits outfile=/scratch/kocevski/33003/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin390.fits ra=194.31 dec=36.7706 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.95
user 6.49
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33003/ft2_4FGL_J1257.2+3646_daily_bin390.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/33003/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin390.fits evtable="EVENTS" outfile="/scratch/kocevski/33003/ft1_filtered_4FGL_J1257.2+3646_daily_bin390.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33003/ft1_filtered_4FGL_J1257.2+3646_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/33003/ft2_4FGL_J1257.2+3646_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/33003/ltcube_340416001_340675201_4FGL_J1257.2+3646_daily_bin390.fits outfile=/scratch/kocevski/33003/expmap_340416001_340675201_4FGL_J1257.2+3646_daily_bin390.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/33003/ltcube_340416001_340675201_4FGL_J1257.2+3646_daily_bin390.fits
.....................!
real 190.74
user 185.55
sys 4.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/33003/ft1_filtered_4FGL_J1257.2+3646_daily_bin390.fits scfile=/scratch/kocevski/33003/ft2_4FGL_J1257.2+3646_daily_bin390.fits outfile=/scratch/kocevski/33003/cmap_340416001_340675201_4FGL_J1257.2+3646_daily_bin390.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33003/ft1_filtered_4FGL_J1257.2+3646_daily_bin390.fits scfile=/scratch/kocevski/33003/ft2_4FGL_J1257.2+3646_daily_bin390.fits outfile=/scratch/kocevski/33003/cmap_HighResolution_340416001_340675201_4FGL_J1257.2+3646_daily_bin390.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .51688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7601       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1457       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.942       1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.933       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9569       1.0000         .10000E-03   10000.    
    11 'norm      '    .36534       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12021       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.450       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2409       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.606       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.827       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2638       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90793       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.

 FCN=   5805.975     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     2943 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3712        .90712E-02** at limit **
   2  norm          .51656        3.0670        .11340E-01    .14676E-02
   3  Prefactor     .10000E-03    4.2118        .90712E-02** at limit **
   4  Prefactor     1.7602        2.0420        .78961E-02    .47511E-04
   5  Prefactor     .10000E-03    .67830        .90712E-02** at limit **
   6  Prefactor     8.1444        9.2202        .35119E-02    .31848E-03
   7  Prefactor     .10000E-03    14.392        .90712E-02** at limit **
   8  Prefactor     13.944        14.585        .26818E-02   -.73237E-03
   9  Prefactor     64.950        66.773        .12451E-02   -.10949E-02
  10  Prefactor     3.9634        4.7880        .50695E-02    .18949E-02
  11  norm          .35523        2.6983        .63706E-01    .55389E-03
  12  Prefactor     .10000E-03    86.211        .90712E-02** at limit **
  13  Prefactor     .10000E-03    23.998        .90712E-02** at limit **
  14  Prefactor     .10000E-03    14.168        .96072E-01** at limit **
  15  norm          .10000E-03    2.0474        .90712E-02** at limit **
  16  norm          11.447        12.440        .29598E-02   -.12917E-02
  17  norm          2.2415        4.1799        .68638E-02    .63176E-03
  18  norm          .10000E-03    3.7159        .90712E-02** at limit **
  19  Prefactor     .10000E-03    2.1847        .90712E-02** at limit **
  20  Prefactor     11.612        17.325        .29398E-02    .17301E-03
  21  Prefactor     .10000E-03    19.675        .90712E-02** at limit **
  22  Prefactor     14.822        17.307        .26004E-02   -.13456E-03
  23  Prefactor     .10000E-03    54.259        .90712E-02** at limit **
  24  Normalizat    1.2641        .17542        .49252E-01   -.40871E-04
  25  Prefactor     .90773        .21185        .70566E-01   -.39109E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.516564
  Prefactor  = 0.0001
  Prefactor  = 1.76021
  Prefactor  = 0.0001
  Prefactor  = 8.14436
  Prefactor  = 0.0001
  Prefactor  = 13.944
  Prefactor  = 64.9497
  Prefactor  = 3.96342
  norm       = 0.355231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.4465
  norm       = 2.24148
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6117
  Prefactor  = 0.0001
  Prefactor  = 14.8224
  Prefactor  = 0.0001
  Normalizat = 1.26413
  Prefactor  = 0.907727
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.975     FROM HESSE     STATUS=OK           433 CALLS     3376 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .51656        2.9712        .21369E-03   -1.5564    
   3  Prefactor     .10000E-03    4.2320        .15269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7602        2.0305        .94346E-04   -1.5443    
   5  Prefactor     .10000E-03    .68109        .61259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1444        9.2124        .14047E-03   -1.5137    
   7  Prefactor     .10000E-03    14.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.944        14.583        .10727E-03   -1.4961    
   9  Prefactor     64.950        66.869        .49803E-04   -1.4094    
  10  Prefactor     3.9634        4.7856        .87096E-03   -1.5310    
  11  norm          .35523        9.9188        .22978E-02   -1.5589    
  12  Prefactor     .10000E-03    87.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.159        .77174E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0527        .10638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.447        12.443        .11839E-03   -1.5031    
  17  norm          2.2415        4.0835        .18583E-03   -1.5409    
  18  norm          .10000E-03    3.7209        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2031        .10931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.612        17.135        .11759E-03   -1.5026    
  21  Prefactor     .10000E-03    19.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.822        17.317        .10402E-03   -1.4938    
  23  Prefactor     .10000E-03    54.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2641        .20945        .21774E-03   -.84644    
  25  Prefactor     .90773        .25097        .31220E-03   -.95872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66934e-08
Minuit parameter uncertainties:
  1  1.86567e-06
  2  2.4777
  3  3.68721e-08
  4  2.03055
  5  2.96318e-07
  6  9.21402
  7  1.38836e-05
  8  14.5868
  9  66.947
  10  4.78609
  11  3.75435
  12  0.000161879
  13  3.99717e-05
  14  0.000126096
  15  4.16291e-07
  16  12.4458
  17  4.08397
  18  7.67491e-08
  19  3.61511e-07
  20  17.1423
  21  1.58209e-05
  22  17.3231
  23  9.67275e-05
  24  0.209586
  25  0.251286
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.077e-01  2.513e-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:  1.264e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.50e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 9.73e-06 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/33003/likelihoodResults_340416001_340675201_4FGL_J1257.2+3646_daily_bin390.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5805.95746286
delta logL = 0.0172332241455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5805.94690171
delta logL = 0.027794376264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1891       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2648       1.0000          .0000       10.000    
     3 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91206       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.

 FCN=   5805.947     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      229 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1827        124.03        .56726E-02    .80934E-04
   2  Index         2.2654        5.9389        .15728        .69744E-04
   3  Normalizat    1.2579        .81240E-01    .49359E-01   -.66978E-04
   4  Prefactor     .91218        .75527E-01    .70411E-01    .65355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18273
  Index      = 2.26543
  Normalizat = 1.25789
  Prefactor  = 0.912179
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.947     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1827        5.8231        .15156E-03   -1.5351    
   2  Index         2.2654        1.1467        .93762E-02   -.57867    
   3  Normalizat    1.2579        .20309        .21821E-03   -.84832    
   4  Prefactor     .91218        .24943        .31151E-03   -.95717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23276e-09
Minuit parameter uncertainties:
  1  5.82414
  2  1.16156
  3  0.203214
  4  0.249747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33003': 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) = 5805.94690056
delta logL = 0.0277955190249

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.122e-01  2.497e-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:  1.258e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.27 +/- 1.16
Photon Flux (Free Index): 1.98e-08 +/- 3.12e-08
Energy Flux (Free Index): 7.92e-06 +/- 1.13e-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/33003/cmap_HighResolution_340416001_340675201_4FGL_J1257.2+3646_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', comment='SUCCESS', photon_flux='1.50e-08', energy_flux2='7.92e-06', photon_flux_error='1.82e-08', dlogl='2.78e-02', energy_flux='9.73e-06', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-09-06 11:45:37.293994', photon_index_error2='1.16', photon_index2='2.27', ts='1.57', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='6.76e-08', energy_flux_error2='1.13e-05', EG='1.26', time_epoch_completed='1630953937.29', return_code='0', job_id='33003', GAL2='0.91', EG2='1.26', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.12e-08', ts2='1.63', photon_index='2.03' WHERE bin_id='390' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:45:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 33003: <4FGL_J1257.2+3646_daily_bin390> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin390> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:33 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:35 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:30:35 2021
Terminated at Mon Sep  6 11:45:38 2021
Results reported at Mon Sep  6 11:45:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin390 194.31 36.7706 340416001 340675201 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 :                                   725.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

