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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin285
RA = 194.473, Dec = 32.4721
tmin = 313200001, tmax = 313459201
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='42682', job_status='RUN', time_executed='2021-09-06 11:56:22.403820', time_epoch_executed='1630954582.4' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42682

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42682/ft1_4FGL_J1257.8+3228_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42682/ft2_4FGL_J1257.8+3228_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42682/ft1_4FGL_J1257.8+3228_daily_bin285.fits outfile=/scratch/kocevski/42682/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin285.fits ra=194.473 dec=32.4721 rad=12.0 tmin=313200001.0 tmax=313459201.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.53
user 3.15
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42682/ft1_filtered_4FGL_J1257.8+3228_daily_bin285.fits" evtable="EVENTS" scfile=/scratch/kocevski/42682/ft2_4FGL_J1257.8+3228_daily_bin285.fits sctable="SC_DATA" outfile=/scratch/kocevski/42682/ltcube_313200001_313459201_4FGL_J1257.8+3228_daily_bin285.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/42682/ft2_4FGL_J1257.8+3228_daily_bin285.fits
.....................!
real 12.37
user 11.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42682/ft1_filtered_4FGL_J1257.8+3228_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/42682/ft2_4FGL_J1257.8+3228_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/42682/ltcube_313200001_313459201_4FGL_J1257.8+3228_daily_bin285.fits outfile=/scratch/kocevski/42682/expmap_313200001_313459201_4FGL_J1257.8+3228_daily_bin285.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/42682/ltcube_313200001_313459201_4FGL_J1257.8+3228_daily_bin285.fits
.....................!
real 191.64
user 186.53
sys 4.57

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/42682/ft1_filtered_4FGL_J1257.8+3228_daily_bin285.fits scfile=/scratch/kocevski/42682/ft2_4FGL_J1257.8+3228_daily_bin285.fits outfile=/scratch/kocevski/42682/cmap_313200001_313459201_4FGL_J1257.8+3228_daily_bin285.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42682/ft1_filtered_4FGL_J1257.8+3228_daily_bin285.fits scfile=/scratch/kocevski/42682/ft2_4FGL_J1257.8+3228_daily_bin285.fits outfile=/scratch/kocevski/42682/cmap_HighResolution_313200001_313459201_4FGL_J1257.8+3228_daily_bin285.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/42682/ft1_filtered_4FGL_J1257.8+3228_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/42682/ft2_4FGL_J1257.8+3228_daily_bin285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/42682/Model_4FGL_J1257.8+3228_daily_bin285.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/42682/ft1_filtered_4FGL_J1257.8+3228_daily_bin285.fits.....................!
real 53.90
user 52.40
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0328       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3563       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4540       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.350       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3338       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.132       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20440E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.027       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    24.511       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2627       1.0000         .10000E-03   10000.    
    21 'norm      '    13.937       1.0000         .10000E-03   10000.    
    22 'norm      '    11.173       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4224       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2598       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.401       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.176       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.0342       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1768       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .71974       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=   6574.133     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     3718 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0326        15.460        .76414E-06    .71692E-06
   2  norm          6.2748        2.8225        .17376E-07    .52502E-05
   3  Prefactor     .10000E-03    3.0250        .17969E-08** at limit **
   4  Prefactor     3.3562        1.9963        .27494E-08    .80063E-05
   5  Prefactor     2.4540        1.9862        .17736E-07    .88308E-05
   6  Prefactor     10.351        7.8458        .14000E-06    .51400E-06
   7  norm          6.3339        5.2432        .32473E-06    .34977E-05
   8  Prefactor     17.133        10.926        .42734E-07    .12569E-04
   9  Prefactor     .10000E-03    7.7082        .75028E-07** at limit **
  10  Prefactor     .10000E-03    56.960       -.91955E-05** at limit **
  11  Prefactor     .10000E-03    2.5568       -.52946E-07** at limit **
  12  Prefactor     .10000E-03    2.7154        .34561E-06** at limit **
  13  norm          20.083        7.4903       -.24640E-06    .17612E-03
  14  Prefactor     .10000E-03    25.145        .14091E-05** at limit **
  15  Prefactor     34.022        26.597       -.68654E-06    .18948E-04
  16  norm          .10000E-03    1.4311       -.65948E-09** at limit **
  17  Prefactor     .10000E-03    4.1789        .15374E-07** at limit **
  18  norm          .10000E-03    2.5563        .48949E-07** at limit **
  19  norm          24.511        13.665        .36603E-08   -.10231E-04
  20  norm          4.2624        6.8498        .46357E-05    .14475E-04
  21  norm          13.937        9.9286       -.24451E-05    .63503E-05
  22  norm          11.173        12.842        .57671E-07    .23338E-05
  23  Prefactor     5.4224        3.9899       -.29832E-06   -.51704E-04
  24  Prefactor     9.2598        10.987       -.49681E-06   -.55136E-05
  25  norm          .10000E-03    2.0750       -.57125E-07** at limit **
  26  Prefactor     16.400        36.368        .40475E-06   -.56349E-05
  27  Prefactor     .10000E-03    15.080       -.30380E-06** at limit **
  28  Prefactor     12.175        15.811        .38947E-07    .93032E-05
  29  Prefactor     .10000E-03    77.097        .10641E-04** at limit **
  30  Prefactor     3.0343        3.3089        .98066E-08   -.39193E-05
  31  Normalizat    1.1768        .16864       -.10558E-05    .21100E-04
  32  Prefactor     .71964        .19982        .58279E-06   -.38080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03263
  norm       = 6.27476
  Prefactor  = 0.0001
  Prefactor  = 3.35618
  Prefactor  = 2.45399
  Prefactor  = 10.3505
  norm       = 6.33389
  Prefactor  = 17.1328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.0834
  Prefactor  = 0.0001
  Prefactor  = 34.0222
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.5107
  norm       = 4.26244
  norm       = 13.9366
  norm       = 11.1733
  Prefactor  = 5.42242
  Prefactor  = 9.25977
  norm       = 0.0001
  Prefactor  = 16.3998
  Prefactor  = 0.0001
  Prefactor  = 12.1748
  Prefactor  = 0.0001
  Prefactor  = 3.03434
  Normalizat = 1.17682
  Prefactor  = 0.719637
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.133     FROM HESSE     STATUS=OK           667 CALLS     4385 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0326        15.459        .70733E-03   -1.5141    
   2  norm          6.2748        2.8253        .85947E-04   -1.5207    
   3  Prefactor     .10000E-03    3.0434        .13770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3562        2.0003        .83523E-04   -1.5342    
   5  Prefactor     2.4540        1.9794        .97406E-04   -1.5395    
   6  Prefactor     10.351        7.8349        .62272E-03   -1.5064    
   7  norm          6.3339        5.2355        .78070E-03   -1.5205    
   8  Prefactor     17.133        10.921        .96764E-04   -1.4880    
   9  Prefactor     .10000E-03    7.7267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    57.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5675        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3617        .25897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.083        7.4949        .89375E-04   -1.4811    
  14  Prefactor     .10000E-03    25.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.022        26.625        .68697E-04   -1.4541    
  16  norm          .10000E-03    1.4569        .94701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1841        .16185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5834        .12650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          24.511        13.666        .80910E-04   -1.4717    
  20  norm          4.2624        6.8754        .91578E-03   -1.5295    
  21  norm          13.937        9.9456        .10729E-03   -1.4961    
  22  norm          11.173        12.839        .11986E-03   -1.5039    
  23  Prefactor     5.4224        3.9810        .12159E-03   -1.5242    
  24  Prefactor     9.2598        10.969        .13170E-03   -1.5099    
  25  norm          .10000E-03    2.0798        .11405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.400        36.327        .98897E-04   -1.4898    
  27  Prefactor     .10000E-03    15.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.175        15.804        .11480E-03   -1.5010    
  29  Prefactor     .10000E-03    77.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.0343        3.3057        .14939E-03   -1.5360    
  31  Normalizat    1.1768        .19906        .22621E-03   -.87322    
  32  Prefactor     .71964        .23394        .34135E-03   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34025e-11
Minuit parameter uncertainties:
  1  15.4663
  2  2.82534
  3  5.56389e-07
  4  2.00035
  5  1.9795
  6  7.83563
  7  5.23589
  8  10.9222
  9  1.09504e-06
  10  8.18051e-05
  11  2.26521e-07
  12  2.12932e-05
  13  7.49524
  14  9.37947e-06
  15  26.6343
  16  7.11863e-08
  17  1.48195e-06
  18  2.90944e-06
  19  13.6681
  20  6.87668
  21  9.94679
  22  12.8424
  23  3.98121
  24  10.9714
  25  1.13679e-07
  26  36.3757
  27  7.56642e-06
  28  15.8091
  29  9.61831e-07
  30  3.30587
  31  0.199185
  32  0.234259
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.008e+01  7.495e+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.196e-01  2.343e-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.177e+00  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.79
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 4.39e-08
Energy Flux (Fixed Index): 4.67e-05 +/- 1.74e-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) = 6574.13285604
delta logL = 0.000309547498546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6574.13280829
delta logL = 0.000357300721589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.042       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2296       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72046       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=   6574.133     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.026        112.14        .22367E-02   -.14982E-03
   2  alpha         2.2287        3.5849        .23275        .56543E-04
   3  Normalizat    1.1757        .20654        .51184E-01    .17160E-04
   4  Prefactor     .72045        .18116        .77066E-01    .30666E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.0256
  alpha      = 2.22865
  Normalizat = 1.17572
  Prefactor  = 0.720455
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.133     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.026        7.3215        .89467E-04   -1.4813    
   2  alpha         2.2287        .35590        .93237E-02   -.10875    
   3  Normalizat    1.1757        .19618        .22629E-03   -.87356    
   4  Prefactor     .72045        .23321        .34117E-03   -1.0273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33165e-11
Minuit parameter uncertainties:
  1  7.32179
  2  0.357129
  3  0.1963
  4  0.233526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42682': 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) = 6574.13279899
delta logL = 0.000366606826901

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.003e+01  7.322e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.229e+00  3.571e-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:  7.205e-01  2.335e-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.176e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.02
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.23 +/- 0.36
Photon Flux (Free Index): 1.19e-07 +/- 5.32e-08
Energy Flux (Free Index): 4.65e-05 +/- 1.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/42682/cmap_HighResolution_313200001_313459201_4FGL_J1257.8+3228_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='4.65e-05', photon_flux_error='4.39e-08', dlogl='3.67e-04', energy_flux='4.67e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-06 12:09:33.198056', photon_index_error2='0.36', photon_index2='2.23', ts='23.79', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.18', time_epoch_completed='1630955373.2', return_code='0', job_id='42682', GAL2='0.72', EG2='1.18', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='5.32e-08', ts2='24.02', photon_index='2.22' WHERE bin_id='285' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:09:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 42682: <4FGL_J1257.8+3228_daily_bin285> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin285> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:56:05 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:56:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:56:06 2021
Terminated at Mon Sep  6 12:09:36 2021
Results reported at Mon Sep  6 12:09:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin285 194.473 32.4721 313200001 313459201 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 :                                   783.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            811 sec.

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

