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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1278
RA = 194.473, Dec = 32.4721
tmin = 570585601, tmax = 570844801
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='49470', job_status='RUN', time_executed='2021-09-06 12:18:07.263613', time_epoch_executed='1630955887.26' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49470/ft1_4FGL_J1257.8+3228_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49470/ft2_4FGL_J1257.8+3228_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49470/ft1_4FGL_J1257.8+3228_daily_bin1278.fits outfile=/scratch/kocevski/49470/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1278.fits ra=194.473 dec=32.4721 rad=12.0 tmin=570585601.0 tmax=570844801.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.25
user 2.81
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49470/ft1_filtered_4FGL_J1257.8+3228_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/49470/ft2_4FGL_J1257.8+3228_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/49470/ltcube_570585601_570844801_4FGL_J1257.8+3228_daily_bin1278.fits outfile=/scratch/kocevski/49470/expmap_570585601_570844801_4FGL_J1257.8+3228_daily_bin1278.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/49470/ltcube_570585601_570844801_4FGL_J1257.8+3228_daily_bin1278.fits
.....................!
real 192.96
user 187.66
sys 4.82

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/49470/ft1_filtered_4FGL_J1257.8+3228_daily_bin1278.fits scfile=/scratch/kocevski/49470/ft2_4FGL_J1257.8+3228_daily_bin1278.fits outfile=/scratch/kocevski/49470/cmap_570585601_570844801_4FGL_J1257.8+3228_daily_bin1278.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49470/ft1_filtered_4FGL_J1257.8+3228_daily_bin1278.fits scfile=/scratch/kocevski/49470/ft2_4FGL_J1257.8+3228_daily_bin1278.fits outfile=/scratch/kocevski/49470/cmap_HighResolution_570585601_570844801_4FGL_J1257.8+3228_daily_bin1278.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .83347E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    24.121       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    134.95       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2005       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15314E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3897       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5590       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.5445       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.961       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.131       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3220       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4324       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .31094       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=   3209.136     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4328 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.523        .44430E-04** at limit **
   2  norm          17.630        8.0247        .20210E-06   -.14426E-03
   3  Prefactor     .10000E-03    7.2570        .33987E-06** at limit **
   4  Prefactor     .10000E-03    3.8561       -.90349E-07** at limit **
   5  Prefactor     .10000E-03    1.7488        .28406E-07** at limit **
   6  Prefactor     .10000E-03    9.5095        .71099E-05** at limit **
   7  norm          24.122        11.068        .66598E-07   -.33862E-03
   8  Prefactor     .10000E-03    17.049        .12238E-04** at limit **
   9  Prefactor     .10000E-03    15.650        .57514E-07** at limit **
  10  Prefactor     134.94        128.41       -.95740E-05    .12117E-04
  11  Prefactor     .10000E-03    7.1841        .12740E-05** at limit **
  12  Prefactor     9.2002        11.095        .33804E-06   -.13482E-03
  13  norm          .10000E-03    3.2609        .24224E-06** at limit **
  14  Prefactor     .10000E-03    31.298       -.13254E-04** at limit **
  15  Prefactor     .10000E-03    14.145       -.10129E-04** at limit **
  16  norm          .10000E-03    1.6546        .25156E-07** at limit **
  17  Prefactor     .10001E-03    118.28       -.55305E-04** at limit **
  18  norm          2.3896        5.5978        .53296E-06    .40251E-03
  19  norm          .10000E-03    5.5863       -.16020E-06** at limit **
  20  norm          .10000E-03    2.2505        .19616E-06** at limit **
  21  norm          4.5592        4.8012       -.82532E-06    .35041E-04
  22  norm          .10000E-03    11.415       -.19174E-05** at limit **
  23  Prefactor     .10000E-03    2.4781        .13970E-07** at limit **
  24  Prefactor     .10000E-03    10.980        .18064E-05** at limit **
  25  norm          7.5448        6.7645        .23559E-06   -.14562E-04
  26  Prefactor     .10000E-03    42.260        .97386E-05** at limit **
  27  Prefactor     10.962        14.596        .50930E-06   -.42493E-05
  28  Prefactor     .10000E-03    8.4744       -.61743E-05** at limit **
  29  Prefactor     22.165        96.859        .61982E-04    .65430E-05
  30  Prefactor     1.3221        3.4406       -.21051E-06   -.50438E-03
  31  Normalizat    1.4324        .25009       -.36590E-05    .38784E-03
  32  Prefactor     .31093        .27312        .23273E-05    .18770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 17.63
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.1222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.941
  Prefactor  = 0.0001
  Prefactor  = 9.20022
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100014
  norm       = 2.38958
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.55916
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.54475
  Prefactor  = 0.0001
  Prefactor  = 10.9623
  Prefactor  = 0.0001
  Prefactor  = 22.1646
  Prefactor  = 1.32212
  Normalizat = 1.43239
  Prefactor  = 0.310926
 **********
 **   18 **HESSE 
 **********

 FCN=   3209.136     FROM HESSE     STATUS=OK           645 CALLS     4973 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.630        7.5084        .95402E-04   -1.4868    
   3  Prefactor     .10000E-03    7.2659        .14905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.811        .20169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7558        .73135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5664        .17051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          24.122        11.051        .81561E-04   -1.4725    
   8  Prefactor     .10000E-03    17.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     134.94        128.53        .34667E-04   -1.3379    
  11  Prefactor     .10000E-03    7.2428        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2002        10.986        .66065E-03   -1.5101    
  13  norm          .10000E-03    3.2789        .99786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6613        .71154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    119.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3896        5.5494        .19301E-03   -1.5399    
  19  norm          .10000E-03    5.5868        .13078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2627        .82572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5592        4.7766        .12339E-03   -1.5281    
  22  norm          .10000E-03    11.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5106        .86968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.5448        6.7651        .13517E-03   -1.5159    
  26  Prefactor     .10000E-03    42.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.962        14.608        .12101E-03   -1.5046    
  28  Prefactor     .10000E-03    8.4810        .16106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     22.165        97.582        .85144E-04   -1.4766    
  30  Prefactor     1.3221        3.4119        .16200E-03   -1.5478    
  31  Normalizat    1.4324        .25398        .19139E-03   -.79696    
  32  Prefactor     .31093        .26964        .43714E-03   -1.2163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58521e-09
Minuit parameter uncertainties:
  1  5.36529e-05
  2  7.50885
  3  8.79661e-06
  4  0.000828936
  5  2.23372e-06
  6  4.38342e-06
  7  11.0514
  8  1.64928e-05
  9  2.45583e-05
  10  128.802
  11  1.62336e-05
  12  10.9883
  13  4.22346e-05
  14  5.36433e-06
  15  5.29891e-05
  16  4.51158e-06
  17  0.00261043
  18  5.55057
  19  2.95987e-07
  20  2.71919e-05
  21  4.77703
  22  1.10659e-05
  23  3.28683e-07
  24  1.05151e-05
  25  6.76582
  26  7.89568e-05
  27  14.6123
  28  1.25119e-05
  29  93.2695
  30  3.41235
  31  0.254208
  32  0.27074
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  4.223e-05  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:  3.109e-01  2.707e-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.432e+00  2.542e-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: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49470/likelihoodResults_570585601_570844801_4FGL_J1257.8+3228_daily_bin1278.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) = 3209.13787415
delta logL = -0.0014259856639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3209.13644993
delta logL = -1.76396042662e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11173E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2318       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31104       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=   3209.128     FROM MIGRAD    STATUS=CONVERGED    181 CALLS      328 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59998E-01    13.588        .14065E-01    .16804E-02
   2  alpha         4.3218        2.8237        .16582        .13495E-04
   3  Normalizat    1.4236        .32546E-01    .19139E-03   -.13082E-03
   4  Prefactor     .31669        .36461E-01    .43714E-03   -.84367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0599978
  alpha      = 4.32179
  Normalizat = 1.42364
  Prefactor  = 0.316688
 **********
 **   18 **HESSE 
 **********

 FCN=   3209.128     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      357 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59998E-01    183.88        .71221E-03   -1.5659    
   2  alpha         4.3218        2.5384        .66328E-02    .81644    
   3  Normalizat    1.4236        .31012        .38278E-04   -.79947    
   4  Prefactor     .31669        .26248        .17485E-04   -1.2130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82613e-09
Minuit parameter uncertainties:
  1  6.65797
  2  51.1273
  3  0.310536
  4  0.263472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49470': 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): 102
logL (Free Index) = 3209.12814793
delta logL = 0.00830023197068

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.000e-02  6.658e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.322e+00  5.113e+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:  3.167e-01  2.635e-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.424e+00  3.105e-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/49470/cmap_HighResolution_570585601_570844801_4FGL_J1257.8+3228_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-06 12:31:02.817318', job_id='49470', GAL2='0.32', fit_tolerance='1e-08', EG2='1.42', EG='1.43', time_epoch_completed='1630956662.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.31', dlogl='8.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1278' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 49470: <4FGL_J1257.8+3228_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1278> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:15:46 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:15:49 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:15:49 2021
Terminated at Mon Sep  6 12:31:04 2021
Results reported at Mon Sep  6 12:31:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1278 194.473 32.4721 570585601 570844801 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 :                                   625.15 sec.
    Max Memory :                                 1205 MB
    Average Memory :                             265.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            918 sec.

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

