/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 38 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin323
RA = 194.473, Dec = 32.4721
tmin = 323049601, tmax = 323308801
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='42744', job_status='RUN', time_executed='2021-09-06 11:57:11.518124', time_epoch_executed='1630954631.52' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42744

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42744/ft1_4FGL_J1257.8+3228_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42744/ft1_4FGL_J1257.8+3228_daily_bin323.fits outfile=/scratch/kocevski/42744/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin323.fits ra=194.473 dec=32.4721 rad=12.0 tmin=323049601.0 tmax=323308801.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.36
user 3.11
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.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/42744/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.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.57
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/42744/ltcube_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.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/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits
.....................!
real 11.64
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/42744/ltcube_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.fits outfile=/scratch/kocevski/42744/expmap_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.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/42744/ltcube_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.fits
.....................!
real 190.36
user 185.88
sys 4.03

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1257.8+3228 @ 194.473 32.4721

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.fits scfile=/scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits outfile=/scratch/kocevski/42744/cmap_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.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.473 yref=32.4721 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.fits scfile=/scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits outfile=/scratch/kocevski/42744/cmap_HighResolution_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.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.473 yref=32.4721 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/42744/Model_4FGL_J1257.8+3228_daily_bin323.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/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.fits.....................!
real 44.96
user 43.64
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.fits', '/scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits', expMap='/scratch/kocevski/42744/expmap_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.fits', expCube='/scratch/kocevski/42744/ltcube_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/42744/Model_4FGL_J1257.8+3228_daily_bin323.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.8+3228'

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.994e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/42744/ft1_filtered_4FGL_J1257.8+3228_daily_bin323.fits
Spacecraft file(s): /scratch/kocevski/42744/ft2_4FGL_J1257.8+3228_daily_bin323.fits
Exposure map: /scratch/kocevski/42744/expmap_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.fits
Exposure cube: /scratch/kocevski/42744/ltcube_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/42744/Model_4FGL_J1257.8+3228_daily_bin323.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) = 5329.56889524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.117       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8256       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .84328       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4167       1.0000         .10000E-03   10000.    
     7 'norm      '    .13929E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4970       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5298       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9037       1.0000         .10000E-03   10000.    
    16 'norm      '    .11183E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.960       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    31.803       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9209       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.384       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2325       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    72.312       1.0000         .10000E-03   10000.    
    28 'Prefactor '    28.161       1.0000         .10000E-03   10000.    
    29 'Prefactor '    94.746       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.071       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .94048       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79101       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5329.567     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4346 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.117        19.102        .78775E-08   -.10525E-04
   2  norm          6.8255        3.1580       -.37450E-08   -.31189E-04
   3  Prefactor     .10000E-03    3.9267        .53113E-07** at limit **
   4  Prefactor     4.1835        2.3059       -.17065E-07   -.25814E-04
   5  Prefactor     .84370        1.4669        .22334E-06    .33083E-03
   6  Prefactor     3.4180        3.3284       -.11874E-05    .39504E-03
   7  norm          .10000E-03    1.8529        .11579E-06** at limit **
   8  Prefactor     14.431        9.5934        .14729E-08   -.59270E-05
   9  Prefactor     8.0140        19.773        .18237E-06    .20739E-04
  10  Prefactor     .10000E-03    70.262       -.34311E-06** at limit **
  11  Prefactor     2.4976        5.3004        .38457E-06   -.12498E-03
  12  Prefactor     2.5246        7.8636        .12342E-05    .26193E-03
  13  norm          .10000E-03    1.8038        .20611E-07** at limit **
  14  Prefactor     .10000E-03    39.472        .48145E-06** at limit **
  15  Prefactor     4.9047        28.525        .42658E-06    .67869E-05
  16  norm          .10000E-03    4.0633       -.21631E-06** at limit **
  17  Prefactor     22.966        20.026       -.64684E-07    .15963E-03
  18  norm          .10000E-03    1.9541        .11690E-06** at limit **
  19  norm          31.801        17.114        .22144E-07   -.44485E-05
  20  norm          1.9197        2.5014        .19131E-07   -.18510E-04
  21  norm          .10000E-03    2.3061        .11894E-08** at limit **
  22  norm          17.384        19.595       -.54947E-08   -.63821E-05
  23  Prefactor     4.2293        3.2546       -.27948E-07    .24679E-04
  24  Prefactor     .10000E-03    37.549       -.57557E-06** at limit **
  25  norm          .10000E-03    2.2214       -.20864E-07** at limit **
  26  Prefactor     .10000E-03    13.755       -.50569E-07** at limit **
  27  Prefactor     72.305        25.513       -.10556E-06   -.86628E-04
  28  Prefactor     28.161        21.826        .42401E-07    .33241E-05
  29  Prefactor     94.734        84.470       -.40472E-06   -.65512E-04
  30  Prefactor     10.071        5.4559        .93397E-07    .22626E-03
  31  Normalizat    .94047        .17560       -.10318E-06   -.25264E-04
  32  Prefactor     .79108        .20411       -.11738E-06   -.19560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1165
  norm       = 6.82546
  Prefactor  = 0.0001
  Prefactor  = 4.1835
  Prefactor  = 0.843698
  Prefactor  = 3.41804
  norm       = 0.0001
  Prefactor  = 14.4314
  Prefactor  = 8.01399
  Prefactor  = 0.0001
  Prefactor  = 2.49763
  Prefactor  = 2.52459
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.90474
  norm       = 0.0001
  Prefactor  = 22.966
  norm       = 0.0001
  norm       = 31.8014
  norm       = 1.91967
  norm       = 0.0001
  norm       = 17.3843
  Prefactor  = 4.22928
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.3052
  Prefactor  = 28.1605
  Prefactor  = 94.7342
  Prefactor  = 10.0709
  Normalizat = 0.940473
  Prefactor  = 0.791085
 **********
 **   18 **HESSE 
 **********

 FCN=   5329.567     FROM HESSE     STATUS=OK           667 CALLS     5013 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.117        19.103        .91604E-04   -1.4833    
   2  norm          6.8255        3.1533        .82515E-04   -1.5185    
   3  Prefactor     .10000E-03    3.9803        .14128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1835        2.3066        .77341E-04   -1.5299    
   5  Prefactor     .84370        1.2418        .11287E-02   -1.5524    
   6  Prefactor     3.4180        3.3284        .63930E-03   -1.5338    
   7  norm          .10000E-03    3.1571        .19320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.431        9.5714        .10544E-03   -1.4948    
   9  Prefactor     8.0140        19.679        .14159E-03   -1.5142    
  10  Prefactor     .10000E-03    70.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4976        5.2915        .23661E-03   -1.5392    
  12  Prefactor     2.5246        7.8007        .25681E-03   -1.5390    
  13  norm          .10000E-03    1.8100        .95650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9047        28.092        .18164E-03   -1.5265    
  16  norm          .10000E-03    4.2377        .28679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.966        19.791        .83595E-04   -1.4749    
  18  norm          .10000E-03    1.9563        .99572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          31.801        17.114        .71051E-04   -1.4580    
  20  norm          1.9197        2.4707        .12428E-03   -1.5431    
  21  norm          .10000E-03    2.3099        .10810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.384        19.585        .96061E-04   -1.4874    
  23  Prefactor     4.2293        3.2316        .10819E-03   -1.5297    
  24  Prefactor     .10000E-03    38.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.2272        .10625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     72.305        25.566        .47211E-04   -1.4005    
  28  Prefactor     28.161        21.823        .75494E-04   -1.4646    
  29  Prefactor     94.734        85.182        .41291E-04   -1.3758    
  30  Prefactor     10.071        5.4746        .12115E-03   -1.5073    
  31  Normalizat    .94047        .20762        .22822E-03   -.95052    
  32  Prefactor     .79108        .23939        .30073E-03   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15003e-10
Minuit parameter uncertainties:
  1  19.1091
  2  3.15338
  3  9.5668e-06
  4  2.30663
  5  1.24183
  6  3.32854
  7  1.86194e-05
  8  9.57238
  9  19.6951
  10  0.000299805
  11  5.29248
  12  7.80379
  13  1.86678e-06
  14  0.000297004
  15  23.493
  16  4.46937e-06
  17  19.7966
  18  3.10388e-06
  19  17.117
  20  2.47087
  21  1.20182e-06
  22  19.5927
  23  3.23177
  24  0.000150412
  25  9.63274e-07
  26  1.36439e-05
  27  25.5701
  28  21.8296
  29  85.2922
  30  5.47486
  31  0.207802
  32  0.239707
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.867e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  7.911e-01  2.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  9.405e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 4.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/42744/likelihoodResults_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.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) = 5329.56940747
delta logL = -0.00261708722246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5329.5667906
delta logL = -2.20742549573e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2178       1.0000          .0000       5.0000    
     3 'Normalizat'    .94039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+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=   5329.567     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      223 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    4.9577        .95656E-03** at limit **
   2  alpha         2.1957        3.2996        .16595        .18344E-05
   3  Normalizat    .94047        .19353        .22822E-03    .10013E-04
   4  Prefactor     .79108        .23669        .30073E-03   -.13004E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100028
  alpha      = 2.19566
  Normalizat = 0.940474
  Prefactor  = 0.791084
 **********
 **   18 **HESSE 
 **********

 FCN=   5329.567     FROM HESSE     STATUS=OK            23 CALLS      246 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    1.8128        .19131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1957        2.8389        .66380E-02   -.12204    
   3  Normalizat    .94047        .19372        .91289E-05   -.95052    
   4  Prefactor     .79108        .23691        .12029E-04   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40947e-08
Minuit parameter uncertainties:
  1  0.000453379
  2  187.793
  3  0.19386
  4  0.237218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42744': 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) = 5329.56679036
delta logL = 1.72485670191e-08

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  4.534e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.196e+00  1.878e+02  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  7.911e-01  2.372e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  9.405e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.473 32.472

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/42744/cmap_HighResolution_323049601_323308801_4FGL_J1257.8+3228_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-06 12:11:10.154499', job_id='42744', GAL2='0.79', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630955470.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='323' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:11:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 42744: <4FGL_J1257.8+3228_daily_bin323> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin323> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:56:09 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:56:11 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:56:11 2021
Terminated at Mon Sep  6 12:11:10 2021
Results reported at Mon Sep  6 12:11:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin323 194.473 32.4721 323049601 323308801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.8+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

