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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1524
RA = 194.473, Dec = 32.4721
tmin = 634348801, tmax = 634608001
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='50919', job_status='RUN', time_executed='2021-09-06 12:24:03.206453', time_epoch_executed='1630956243.21' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50919

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50919/ft1_4FGL_J1257.8+3228_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50919/ft1_4FGL_J1257.8+3228_daily_bin1524.fits outfile=/scratch/kocevski/50919/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1524.fits ra=194.473 dec=32.4721 rad=12.0 tmin=634348801.0 tmax=634608001.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.71
user 3.45
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.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/50919/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1524.fits evtable="EVENTS" outfile="/scratch/kocevski/50919/ft1_filtered_4FGL_J1257.8+3228_daily_bin1524.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50919/ft1_filtered_4FGL_J1257.8+3228_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/50919/ltcube_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.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/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.fits
.....................!
real 12.00
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50919/ft1_filtered_4FGL_J1257.8+3228_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/50919/ltcube_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.fits outfile=/scratch/kocevski/50919/expmap_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.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/50919/ltcube_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.fits
.....................!
real 191.01
user 185.47
sys 5.14

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/50919/ft1_filtered_4FGL_J1257.8+3228_daily_bin1524.fits scfile=/scratch/kocevski/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.fits outfile=/scratch/kocevski/50919/cmap_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.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.91
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50919/ft1_filtered_4FGL_J1257.8+3228_daily_bin1524.fits scfile=/scratch/kocevski/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.fits outfile=/scratch/kocevski/50919/cmap_HighResolution_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.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.76
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/50919/ft1_filtered_4FGL_J1257.8+3228_daily_bin1524.fits', '/scratch/kocevski/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.fits', expMap='/scratch/kocevski/50919/expmap_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.fits', expCube='/scratch/kocevski/50919/ltcube_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/50919/Model_4FGL_J1257.8+3228_daily_bin1524.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/50919/ft1_filtered_4FGL_J1257.8+3228_daily_bin1524.fits
Spacecraft file(s): /scratch/kocevski/50919/ft2_4FGL_J1257.8+3228_daily_bin1524.fits
Exposure map: /scratch/kocevski/50919/expmap_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.fits
Exposure cube: /scratch/kocevski/50919/ltcube_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/50919/Model_4FGL_J1257.8+3228_daily_bin1524.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) = 3240.45754714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.383       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.184       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.834       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12159E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0617       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.455       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6355       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9563       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    33.059       1.0000         .10000E-03   10000.    
    21 'norm      '    .13222E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.1881       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.5808       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0153       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .68470       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=   3240.352     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     3671 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.155       -.90918E-06** at limit **
   2  norm          .10000E-03    2.4449       -.17382E-08** at limit **
   3  Prefactor     .10000E-03    37.597        .90714E-06** at limit **
   4  Prefactor     6.1888        5.2731        .79947E-07   -.84385E-05
   5  Prefactor     14.384        5.8439        .87500E-08    .78661E-05
   6  Prefactor     .10000E-03    2.6844        .29720E-08** at limit **
   7  norm          11.185        7.7681        .10592E-07   -.13120E-05
   8  Prefactor     28.833        19.111       -.52406E-08    .24432E-05
   9  Prefactor     .10000E-03    11.627       -.13780E-06** at limit **
  10  Prefactor     .10002E-03    314.15       -.52417E-05** at limit **
  11  Prefactor     5.9510        10.269        .41124E-05   -.11481E-03
  12  Prefactor     .10000E-03    3.3384       -.65053E-08** at limit **
  13  norm          7.0546        5.8886       -.25487E-06   -.12165E-03
  14  Prefactor     .10000E-03    70.858        .83888E-06** at limit **
  15  Prefactor     43.451        32.168       -.25745E-07   -.16211E-05
  16  norm          .10000E-03    1.4658       -.46920E-07** at limit **
  17  Prefactor     9.6387        19.748        .28188E-06   -.26085E-05
  18  norm          4.9565        6.1853        .76139E-07    .13535E-04
  19  norm          .10000E-03    12.038        .19785E-06** at limit **
  20  norm          33.059        8.3520        .10364E-07   -.25184E-04
  21  norm          .10000E-03    17.945       -.29926E-06** at limit **
  22  norm          .10000E-03    9.3719       -.10905E-07** at limit **
  23  Prefactor     .10000E-03    1.5504       -.21605E-09** at limit **
  24  Prefactor     .10000E-03    6.5714       -.14391E-07** at limit **
  25  norm          .10000E-03    3.2107        .80788E-08** at limit **
  26  Prefactor     .10000E-03    20.655       -.55402E-07** at limit **
  27  Prefactor     .10000E-03    9.2468        .38552E-07** at limit **
  28  Prefactor     9.1905        15.467        .10530E-06   -.40391E-06
  29  Prefactor     .10001E-03    238.98        .24372E-05** at limit **
  30  Prefactor     1.5816        4.2087        .56708E-06   -.15935E-04
  31  Normalizat    1.0152        .22460        .26062E-06   -.33213E-04
  32  Prefactor     .68458        .26728       -.16776E-05    .10339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.1888
  Prefactor  = 14.3837
  Prefactor  = 0.0001
  norm       = 11.1848
  Prefactor  = 28.8331
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 5.95104
  Prefactor  = 0.0001
  norm       = 7.05463
  Prefactor  = 0.000100001
  Prefactor  = 43.4513
  norm       = 0.0001
  Prefactor  = 9.63867
  norm       = 4.95649
  norm       = 0.0001
  norm       = 33.0588
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19048
  Prefactor  = 0.000100007
  Prefactor  = 1.58164
  Normalizat = 1.01517
  Prefactor  = 0.684578
 **********
 **   18 **HESSE 
 **********

 FCN=   3240.352     FROM HESSE     STATUS=OK           649 CALLS     4320 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4472        .86783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1888        5.2649        .11241E-03   -1.5210    
   5  Prefactor     14.384        5.8489        .80589E-04   -1.4949    
   6  Prefactor     .10000E-03    2.6847        .91085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.185        7.7663        .11980E-03   -1.5039    
   8  Prefactor     28.833        19.107        .74611E-04   -1.4634    
   9  Prefactor     .10000E-03    11.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    316.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9510        10.279        .82320E-03   -1.5220    
  12  Prefactor     .10000E-03    3.3392        .10154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0546        5.8837        .12108E-03   -1.5177    
  14  Prefactor     .10000E-03    70.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.451        32.188        .60816E-04   -1.4389    
  16  norm          .10000E-03    1.4701        .67312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6387        19.715        .12910E-03   -1.5087    
  18  norm          4.9565        6.1729        .15035E-03   -1.5263    
  19  norm          .10000E-03    12.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          33.059        8.3222        .69692E-04   -1.4557    
  21  norm          .10000E-03    18.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.3764        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5559        .69187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.5773        .14251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.2216        .99613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.2719        .16905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.1905        15.464        .13222E-03   -1.5102    
  29  Prefactor     .10001E-03    240.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.5816        4.1737        .18192E-03   -1.5456    
  31  Normalizat    1.0152        .26062        .23126E-03   -.92524    
  32  Prefactor     .68458        .30773        .32752E-03   -1.0413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30165e-10
Minuit parameter uncertainties:
  1  0.000691662
  2  8.79544e-09
  3  0.000268857
  4  5.26525
  5  5.84908
  6  2.401e-07
  7  7.76696
  8  19.1114
  9  4.85407e-05
  10  0.00516847
  11  10.2822
  12  3.65159e-07
  13  5.88414
  14  0.000649396
  15  32.2005
  16  2.98653e-06
  17  19.7286
  18  6.17368
  19  5.3293e-05
  20  8.32251
  21  1.9789e-05
  22  6.10659e-06
  23  7.03101e-07
  24  3.21348e-07
  25  4.54636e-07
  26  2.9895e-05
  27  6.56399e-06
  28  15.4705
  29  0.00255484
  30  4.17446
  31  0.260944
  32  0.308496
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  7.055e+00  5.884e+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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  6.846e-01  3.085e-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:  1.015e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.37e-05

TS (Fixed Index): 3.20
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/50919/likelihoodResults_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.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) = 3240.3523098
delta logL = 4.44933448307e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3240.3523098
delta logL = 4.45652403869e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0546       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2184       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68458       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.

 FCN=   3240.352     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      196 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0566        241.37        .37759E-02    .24422E-04
   2  alpha         2.2184        3.2111        .34132        .12298E-04
   3  Normalizat    1.0152        .16409        .44176E-01    .47891E-05
   4  Prefactor     .68457        .17133        .73990E-01    .12824E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.05658
  alpha      = 2.21837
  Normalizat = 1.01519
  Prefactor  = 0.684565
 **********
 **   18 **HESSE 
 **********

 FCN=   3240.352     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0566        6.1953        .12111E-03   -1.5177    
   2  alpha         2.2184        .71303        .13546E-01   -.11289    
   3  Normalizat    1.0152        .25567        .23126E-03   -.92523    
   4  Prefactor     .68457        .30258        .32752E-03   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35857e-13
Minuit parameter uncertainties:
  1  6.19584
  2  0.723208
  3  0.255979
  4  0.303305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50919': 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) = 3240.35230975
delta logL = 4.96690972795e-07

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  7.057e+00  6.196e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.218e+00  7.232e-01  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:  6.846e-01  3.033e-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:  1.015e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.22 +/- 0.72
Photon Flux (Free Index): 4.13e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.49e-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/50919/cmap_HighResolution_634348801_634608001_4FGL_J1257.8+3228_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-05', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.64e-05', photon_flux_error='3.44e-08', dlogl='4.97e-07', energy_flux='1.64e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-09-06 12:34:21.104053', photon_index_error2='0.72', photon_index2='2.22', ts='3.20', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.49e-05', EG='1.02', time_epoch_completed='1630956861.1', return_code='0', job_id='50919', GAL2='0.68', EG2='1.02', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.02e-08', ts2='3.21', photon_index='2.22' WHERE bin_id='1524' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:34:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 50919: <4FGL_J1257.8+3228_daily_bin1524> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1524> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 12:20:26 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:20:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:20:27 2021
Terminated at Mon Sep  6 12:34:22 2021
Results reported at Mon Sep  6 12:34:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1524 194.473 32.4721 634348801 634608001 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 :                                   602.05 sec.
    Max Memory :                                 1177 MB
    Average Memory :                             298.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            836 sec.

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

