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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1473
RA = 194.473, Dec = 32.4721
tmin = 621129601, tmax = 621388801
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='50842', job_status='RUN', time_executed='2021-09-06 12:22:58.802440', time_epoch_executed='1630956178.8' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50842/ft1_4FGL_J1257.8+3228_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50842/ft2_4FGL_J1257.8+3228_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50842/ft1_4FGL_J1257.8+3228_daily_bin1473.fits outfile=/scratch/kocevski/50842/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1473.fits ra=194.473 dec=32.4721 rad=12.0 tmin=621129601.0 tmax=621388801.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.12
user 2.87
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50842/ft1_filtered_4FGL_J1257.8+3228_daily_bin1473.fits" evtable="EVENTS" scfile=/scratch/kocevski/50842/ft2_4FGL_J1257.8+3228_daily_bin1473.fits sctable="SC_DATA" outfile=/scratch/kocevski/50842/ltcube_621129601_621388801_4FGL_J1257.8+3228_daily_bin1473.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/50842/ft2_4FGL_J1257.8+3228_daily_bin1473.fits
.....................!
real 12.68
user 12.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50842/ft1_filtered_4FGL_J1257.8+3228_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/50842/ft2_4FGL_J1257.8+3228_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/50842/ltcube_621129601_621388801_4FGL_J1257.8+3228_daily_bin1473.fits outfile=/scratch/kocevski/50842/expmap_621129601_621388801_4FGL_J1257.8+3228_daily_bin1473.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/50842/ltcube_621129601_621388801_4FGL_J1257.8+3228_daily_bin1473.fits
.....................!
real 190.08
user 183.91
sys 5.33

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/50842/ft1_filtered_4FGL_J1257.8+3228_daily_bin1473.fits scfile=/scratch/kocevski/50842/ft2_4FGL_J1257.8+3228_daily_bin1473.fits outfile=/scratch/kocevski/50842/cmap_621129601_621388801_4FGL_J1257.8+3228_daily_bin1473.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.60
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50842/ft1_filtered_4FGL_J1257.8+3228_daily_bin1473.fits scfile=/scratch/kocevski/50842/ft2_4FGL_J1257.8+3228_daily_bin1473.fits outfile=/scratch/kocevski/50842/cmap_HighResolution_621129601_621388801_4FGL_J1257.8+3228_daily_bin1473.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.65
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.126       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0806       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .60256E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40374E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.810       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .78979E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.257       1.0000         .10000E-03   10000.    
    16 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    24.362       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.0790       1.0000         .10000E-03   10000.    
    22 'norm      '    .21431E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.830       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.2871       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11255E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0237       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=   3705.457     FROM MIGRAD    STATUS=CONVERGED   1584 CALLS     5339 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.100        65.700        .96781E-04    .12334E-05
   2  norm          1.0817        12.512        .31105E-03   -.21802E-04
   3  Prefactor     .10000E-03    5.7129        .14207E-02** at limit **
   4  Prefactor     2.7369        6.4093        .17289E-03   -.65854E-04
   5  Prefactor     .10000E-03    3.7963        .11503E-02** at limit **
   6  Prefactor     .10004E-03    59.838        .37336E-02** at limit **
   7  norm          .10000E-03    5.7955        .14282E-02** at limit **
   8  Prefactor     .10000E-03    7.4706        .16247E-02** at limit **
   9  Prefactor     .10000E-03    15.934        .18142E-02** at limit **
  10  Prefactor     82.258        114.16        .44286E-04    .21821E-05
  11  Prefactor     .10001E-03    22.651        .62538E-01** at limit **
  12  Prefactor     .10000E-03    3.8679        .11675E-02** at limit **
  13  norm          22.808        11.528        .83868E-04    .21011E-05
  14  Prefactor     .10000E-03    58.292        .15495    ** at limit **
  15  Prefactor     53.253        55.749        .54961E-04    .22547E-04
  16  norm          .10000E-03    8.2046        .33606E-03** at limit **
  17  Prefactor     .10000E-03    10.030        .18142E-02** at limit **
  18  norm          24.362        10.929        .81157E-04    .33480E-04
  19  norm          .10000E-03    6.6975        .15378E-02** at limit **
  20  norm          .10000E-03    4.7373        .12799E-02** at limit **
  21  norm          6.0779        6.1315        .73409E-03    .10602E-03
  22  norm          .10000E-03    198.03        .36285E-03** at limit **
  23  Prefactor     .10000E-03    3.1144        .10377E-02** at limit **
  24  Prefactor     .10000E-03    5.7446        .14242E-02** at limit **
  25  norm          .10000E-03    6.3232        .14888E-02** at limit **
  26  Prefactor     14.823        47.803        .10401E-03    .47548E-05
  27  Prefactor     .10000E-03    7.9293        .16730E-02** at limit **
  28  Prefactor     .10000E-03    9.6455        .18142E-02** at limit **
  29  Prefactor     1.3667        942.84        .39064E-02    .60985E-05
  30  Prefactor     .10001E-03    22.728        .23077E-02** at limit **
  31  Normalizat    1.2823        .28856        .23802E-03   -.14431E-03
  32  Prefactor     1.0239        .34795        .31589E-03   -.92293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0996
  norm       = 1.08175
  Prefactor  = 0.0001
  Prefactor  = 2.73685
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.258
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 22.8082
  Prefactor  = 0.0001
  Prefactor  = 53.2525
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 24.3621
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.07794
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.8233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36672
  Prefactor  = 0.000100014
  Normalizat = 1.28233
  Prefactor  = 1.02394
 **********
 **   18 **HESSE 
 **********

 FCN=   3705.457     FROM HESSE     STATUS=OK           647 CALLS     5986 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.100        65.642        .38712E-05   -1.4881    
   2  norm          1.0817        12.422        .12442E-04   -1.5500    
   3  Prefactor     .10000E-03    5.7129        .28414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7369        6.3869        .69157E-05   -1.5377    
   5  Prefactor     .10000E-03    3.7967        .23006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    61.291        .74672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.7961        .28564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4708        .32493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     82.258        114.14        .88571E-05   -1.3892    
  11  Prefactor     .10001E-03    18.353        .71219E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8681        .23351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.808        11.528        .33547E-05   -1.4752    
  14  Prefactor     .10000E-03    58.190        .15518       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.253        55.744        .21984E-05   -1.4247    
  16  norm          .10000E-03    8.2049        .67213E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.362        10.928        .32463E-05   -1.4720    
  19  norm          .10000E-03    6.6978        .30755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.7383        .25598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.0779        6.1306        .29364E-04   -1.5215    
  22  norm          .10000E-03    198.04        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.1151        .20754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.7448        .28485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.3245        .29777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.823        47.806        .41603E-05   -1.4938    
  27  Prefactor     .10000E-03    7.9296        .33460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.6458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.3667        938.75        .15626E-03   -1.5474    
  30  Prefactor     .10001E-03    22.871        .46154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2823        .28840        .47604E-04   -.84095    
  32  Prefactor     1.0239        .34748        .12636E-04   -.91936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29559e-09
Minuit parameter uncertainties:
  1  65.9213
  2  7.33299
  3  1.11042e-05
  4  6.38853
  5  3.43753e-06
  6  0.00297837
  7  9.3858e-06
  8  1.03069e-05
  9  6.2472e-06
  10  114.449
  11  0.000625536
  12  2.62703e-06
  13  11.5295
  14  0.00017313
  15  55.7983
  16  1.25372e-06
  17  4.96958e-06
  18  10.929
  19  1.24328e-05
  20  1.4625e-05
  21  6.13126
  22  0.000865808
  23  4.55444e-06
  24  4.66095e-07
  25  1.95862e-05
  26  47.9296
  27  1.24946e-05
  28  8.06419e-06
  29  72.8119
  30  0.00113516
  31  0.28876
  32  0.348246
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.281e+01  1.153e+01  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:  1.024e+00  3.482e-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.282e+00  2.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.92
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 6.75e-08
Energy Flux (Fixed Index): 5.30e-05 +/- 2.68e-05

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) = 3705.45647603
delta logL = 4.33562795479e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3705.45646967
delta logL = 4.97123105561e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.785       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2241       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0244       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=   3705.456     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      234 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.778        222.40        .20979E-02    .32746E-03
   2  alpha         2.2237        3.2033        .23085        .18109E-04
   3  Normalizat    1.2818        .38454        .53840E-01    .23267E-05
   4  Prefactor     1.0243        .34809        .71383E-01    .84640E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 22.7777
  alpha      = 2.22372
  Normalizat = 1.28179
  Prefactor  = 1.02434
 **********
 **   18 **HESSE 
 **********

 FCN=   3705.456     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.778        10.757        .41957E-03   -1.4753    
   2  alpha         2.2237        .46308        .93738E-02   -.11074    
   3  Normalizat    1.2818        .28501        .23806E-03   -.84112    
   4  Prefactor     1.0243        .33818        .31584E-03   -.91922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23225e-13
Minuit parameter uncertainties:
  1  10.7577
  2  0.465806
  3  0.285357
  4  0.338888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50842': 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) = 3705.45646884
delta logL = 5.05409657308e-05

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.278e+01  1.076e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.224e+00  4.658e-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:  1.024e+00  3.389e-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.282e+00  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.13
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.22 +/- 0.47
Photon Flux (Free Index): 1.34e-07 +/- 7.88e-08
Energy Flux (Free Index): 5.29e-05 +/- 2.58e-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/50842/cmap_HighResolution_621129601_621388801_4FGL_J1257.8+3228_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='5.29e-05', photon_flux_error='6.75e-08', dlogl='5.05e-05', energy_flux='5.30e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-06 12:34:54.068136', photon_index_error2='0.47', photon_index2='2.22', ts='11.92', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.28', time_epoch_completed='1630956894.07', return_code='0', job_id='50842', GAL2='1.02', EG2='1.28', return_code2='0', energy_flux_error='2.68e-05', photon_flux_error2='7.88e-08', ts2='12.13', photon_index='2.22' WHERE bin_id='1473' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:34:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 50842: <4FGL_J1257.8+3228_daily_bin1473> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1473> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 12:20:20 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:20:21 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:21 2021
Terminated at Mon Sep  6 12:34:55 2021
Results reported at Mon Sep  6 12:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1473 194.473 32.4721 621129601 621388801 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 :                                   646.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

