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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin635
RA = 194.473, Dec = 32.4721
tmin = 403920001, tmax = 404179201
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='45914', job_status='RUN', time_executed='2021-09-06 12:08:54.057409', time_epoch_executed='1630955334.06' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45914

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45914/ft1_4FGL_J1257.8+3228_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45914/ft2_4FGL_J1257.8+3228_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45914/ft1_4FGL_J1257.8+3228_daily_bin635.fits outfile=/scratch/kocevski/45914/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin635.fits ra=194.473 dec=32.4721 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.19
user 9.81
sys 0.28

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45914/ft1_filtered_4FGL_J1257.8+3228_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/45914/ft2_4FGL_J1257.8+3228_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/45914/ltcube_403920001_404179201_4FGL_J1257.8+3228_daily_bin635.fits outfile=/scratch/kocevski/45914/expmap_403920001_404179201_4FGL_J1257.8+3228_daily_bin635.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/45914/ltcube_403920001_404179201_4FGL_J1257.8+3228_daily_bin635.fits
.....................!
real 190.29
user 185.22
sys 4.62

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/45914/ft1_filtered_4FGL_J1257.8+3228_daily_bin635.fits scfile=/scratch/kocevski/45914/ft2_4FGL_J1257.8+3228_daily_bin635.fits outfile=/scratch/kocevski/45914/cmap_403920001_404179201_4FGL_J1257.8+3228_daily_bin635.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45914/ft1_filtered_4FGL_J1257.8+3228_daily_bin635.fits scfile=/scratch/kocevski/45914/ft2_4FGL_J1257.8+3228_daily_bin635.fits outfile=/scratch/kocevski/45914/cmap_HighResolution_403920001_404179201_4FGL_J1257.8+3228_daily_bin635.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    16.198       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2782       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8747       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .85413E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .12312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    34.561       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    32.744       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.090       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4352       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .70973       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=   2892.261     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4389 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.760       -.57596E-05** at limit **
   2  norm          16.199        6.5614        .25861E-05    .26032E-03
   3  Prefactor     1.2807        3.6269        .16212E-05   -.12818E-02
   4  Prefactor     2.2425        2.8518       -.76759E-06    .45212E-04
   5  Prefactor     .10000E-03    1.5540       -.23482E-07** at limit **
   6  Prefactor     .10000E-03    4.5320        .55450E-07** at limit **
   7  norm          12.357        8.9624        .23374E-06    .42075E-04
   8  Prefactor     1.8871        37.858       -.81923E-05   -.22175E-04
   9  Prefactor     .10000E-03    14.023       -.50457E-06** at limit **
  10  Prefactor     .10000E-03    219.31        .26650E-04** at limit **
  11  Prefactor     19.447        20.382       -.36157E-05   -.34343E-04
  12  Prefactor     .11151        9.7847       -.14924E-07    .46372E-04
  13  norm          .11780        5.7024       -.20809E-05    .85527E-03
  14  Prefactor     .10000E-03    31.209        .17289E-05** at limit **
  15  Prefactor     .10000E-03    18.530        .67541E-05** at limit **
  16  norm          .10000E-03    9.4977        .50687E-06** at limit **
  17  Prefactor     .10000E-03    22.357       -.32512E-05** at limit **
  18  norm          .10000E-03    3.1575        .42581E-07** at limit **
  19  norm          34.566        27.403       -.18339E-06    .17008E-05
  20  norm          .10000E-03    2.0825       -.27366E-07** at limit **
  21  norm          .10000E-03    2.7652        .65572E-07** at limit **
  22  norm          .10000E-03    14.537        .17677E-05** at limit **
  23  Prefactor     .10000E-03    2.0470       -.13633E-07** at limit **
  24  Prefactor     .10000E-03    22.103        .42711E-07** at limit **
  25  norm          .10000E-03    5.0417       -.38618E-07** at limit **
  26  Prefactor     .10000E-03    52.863        .29937E-06** at limit **
  27  Prefactor     .10000E-03    10.005       -.34684E-06** at limit **
  28  Prefactor     32.735        39.076        .67133E-05    .33465E-04
  29  Prefactor     .10000E-03    358.40       -.68207E-04** at limit **
  30  Prefactor     10.094        9.9441       -.50694E-06   -.15191E-05
  31  Normalizat    1.4352        .26169       -.71395E-06    .30386E-03
  32  Prefactor     .70920        .31462        .14073E-05    .12948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.1992
  Prefactor  = 1.28074
  Prefactor  = 2.24253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.3568
  Prefactor  = 1.88715
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.4468
  Prefactor  = 0.111506
  norm       = 0.117798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 34.566
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7348
  Prefactor  = 0.000100002
  Prefactor  = 10.094
  Normalizat = 1.43523
  Prefactor  = 0.709198
 **********
 **   18 **HESSE 
 **********

 FCN=   2892.261     FROM HESSE     STATUS=OK           649 CALLS     5038 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.199        6.5678        .82548E-04   -1.4903    
   3  Prefactor     1.2807        18.618        .19641E-02   -1.5482    
   4  Prefactor     2.2425        2.8419        .96819E-04   -1.5408    
   5  Prefactor     .10000E-03    1.5628        .65380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5366        .11181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.357        8.9585        .11397E-03   -1.5005    
   8  Prefactor     1.8871        38.127        .30414E-03   -1.5433    
   9  Prefactor     .10000E-03    14.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    219.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.447        20.433        .90854E-04   -1.4826    
  12  Prefactor     .11151        103.56        .32186E-02   -1.5641    
  13  norm          .11780        93.047        .24140E-02   -1.5639    
  14  Prefactor     .10000E-03    31.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.6794        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1656        .93312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          34.566        27.424        .68166E-04   -1.4531    
  20  norm          .10000E-03    2.0988        .75771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7666        .87343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    14.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0611        .75121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.0443        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    52.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.010        .16616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     32.735        39.092        .70026E-04   -1.4563    
  29  Prefactor     .10000E-03    359.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     10.094        9.9609        .12614E-03   -1.5072    
  31  Normalizat    1.4352        .30481        .21933E-03   -.79615    
  32  Prefactor     .70920        .36972        .35420E-03   -1.0317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84947e-08
Minuit parameter uncertainties:
  1  5.3506e-05
  2  6.56805
  3  9.76955
  4  2.84211
  5  9.55797e-07
  6  1.49313e-07
  7  8.95951
  8  16.9767
  9  2.1131e-06
  10  0.00112059
  11  20.4405
  12  6.80503
  13  6.62896
  14  2.02253e-05
  15  7.80506e-05
  16  6.01473e-05
  17  9.00847e-07
  18  2.05721e-06
  19  27.4337
  20  2.56433e-06
  21  1.11601e-06
  22  1.30923e-05
  23  8.87436e-07
  24  1.99194e-06
  25  1.14448e-06
  26  8.75882e-06
  27  2.09131e-05
  28  39.1226
  29  0.00182908
  30  9.96249
  31  0.305197
  32  0.371009
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.178e-01  6.629e+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:  7.092e-01  3.710e-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.435e+00  3.052e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45914/likelihoodResults_403920001_404179201_4FGL_J1257.8+3228_daily_bin635.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2892.26107405
delta logL = 0.000136248226227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2892.25737353
delta logL = 0.00383677170157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51830       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7147       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70558       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=   2892.257     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      316 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52424        17.236        .28931E-02    .66655E-04
   2  alpha         1.7149        3.2935        .65609E-01   -.72581E-04
   3  Normalizat    1.4369        .30128        .21923E-03    .29299E-05
   4  Prefactor     .70529        .35886        .35514E-03    .39375E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.524244
  alpha      = 1.71487
  Normalizat = 1.43692
  Prefactor  = 0.705293
 **********
 **   18 **HESSE 
 **********

 FCN=   2892.257     FROM HESSE     STATUS=OK            27 CALLS      343 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52424        17.494        .11572E-03   -1.5563    
   2  alpha         1.7149        3.2849        .13122E-01   -.31946    
   3  Normalizat    1.4369        .30139        .87692E-05   -.79567    
   4  Prefactor     .70529        .35858        .14206E-04   -1.0332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04877e-11
Minuit parameter uncertainties:
  1  6.05819
  2  3.78242
  3  0.301768
  4  0.35976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45914': 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) = 2892.25737281
delta logL = 0.00383748920649

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  5.242e-01  6.058e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.715e+00  3.782e+00  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.053e-01  3.598e-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.437e+00  3.018e-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/45914/cmap_HighResolution_403920001_404179201_4FGL_J1257.8+3228_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-06 12:19:27.105639', job_id='45914', GAL2='0.71', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630955967.11', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.84e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='635' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:19:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 45914: <4FGL_J1257.8+3228_daily_bin635> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin635> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 12:05:49 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:05:51 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:05:51 2021
Terminated at Mon Sep  6 12:19:27 2021
Results reported at Mon Sep  6 12:19:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin635 194.473 32.4721 403920001 404179201 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 :                                   623.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             229.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

