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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1570
RA = 194.473, Dec = 32.4721
tmin = 646272001, tmax = 646531201
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='50993', job_status='RUN', time_executed='2021-09-06 12:20:42.037551', time_epoch_executed='1630956042.04' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50993

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50993/ft1_4FGL_J1257.8+3228_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50993/ft2_4FGL_J1257.8+3228_daily_bin1570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50993/ft1_4FGL_J1257.8+3228_daily_bin1570.fits outfile=/scratch/kocevski/50993/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1570.fits ra=194.473 dec=32.4721 rad=12.0 tmin=646272001.0 tmax=646531201.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 4.08
user 3.86
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50993/ft1_filtered_4FGL_J1257.8+3228_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/50993/ft2_4FGL_J1257.8+3228_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/50993/ltcube_646272001_646531201_4FGL_J1257.8+3228_daily_bin1570.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/50993/ft2_4FGL_J1257.8+3228_daily_bin1570.fits
.....................!
real 11.86
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50993/ft1_filtered_4FGL_J1257.8+3228_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/50993/ft2_4FGL_J1257.8+3228_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/50993/ltcube_646272001_646531201_4FGL_J1257.8+3228_daily_bin1570.fits outfile=/scratch/kocevski/50993/expmap_646272001_646531201_4FGL_J1257.8+3228_daily_bin1570.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/50993/ltcube_646272001_646531201_4FGL_J1257.8+3228_daily_bin1570.fits
.....................!
real 191.44
user 186.25
sys 4.72

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/50993/ft1_filtered_4FGL_J1257.8+3228_daily_bin1570.fits scfile=/scratch/kocevski/50993/ft2_4FGL_J1257.8+3228_daily_bin1570.fits outfile=/scratch/kocevski/50993/cmap_646272001_646531201_4FGL_J1257.8+3228_daily_bin1570.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50993/ft1_filtered_4FGL_J1257.8+3228_daily_bin1570.fits scfile=/scratch/kocevski/50993/ft2_4FGL_J1257.8+3228_daily_bin1570.fits outfile=/scratch/kocevski/50993/cmap_HighResolution_646272001_646531201_4FGL_J1257.8+3228_daily_bin1570.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.163       1.0000         .10000E-03   10000.    
     2 'norm      '    8.2847       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.814       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8738       1.0000         .10000E-03   10000.    
     7 'norm      '    5.0917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.966       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2943       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6071       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5119       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.9397       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2519       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.679       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12480E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8744       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13667E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2470       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .83206       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=   6112.010     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4370 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.174        59.955        .18239E-05    .62257E-04
   2  norm          8.2863        5.4985        .96822E-07   -.33296E-04
   3  Prefactor     .10000E-03    6.6236        .73814E-06** at limit **
   4  Prefactor     .10000E-03    2.8401       -.16224E-07** at limit **
   5  Prefactor     11.814        4.7599        .66823E-07   -.74138E-04
   6  Prefactor     5.8739        6.0965       -.49664E-07   -.21327E-04
   7  norm          5.0919        6.4926        .41233E-06   -.37399E-04
   8  Prefactor     .10000E-03    6.1823        .23704E-06** at limit **
   9  Prefactor     .10000E-03    9.6048       -.52838E-07** at limit **
  10  Prefactor     19.066        109.63        .22509E-04    .18291E-03
  11  Prefactor     .10000E-03    7.7496       -.73686E-06** at limit **
  12  Prefactor     3.2941        3.9742        .61991E-07    .13190E-04
  13  norm          6.6064        5.7505       -.31353E-06    .65769E-04
  14  Prefactor     8.5142        58.686        .17554E-05    .54927E-05
  15  Prefactor     .10000E-03    10.487        .34072E-06** at limit **
  16  norm          4.9405        5.0721        .49264E-05   -.50689E-03
  17  Prefactor     .10000E-03    5.3183        .22707E-06** at limit **
  18  norm          2.2522        4.6135        .64618E-06    .12346E-03
  19  norm          .10000E-03    5.6163       -.37269E-06** at limit **
  20  norm          12.679        5.6004        .61819E-09    .61496E-03
  21  norm          .10000E-03    2.8415        .11806E-07** at limit **
  22  norm          .10000E-03    7.9958       -.32083E-06** at limit **
  23  Prefactor     .10007E-03    3.0528       -.11236E-05** at limit **
  24  Prefactor     4.8755        23.425        .28058E-05    .19121E-03
  25  norm          .10000E-03    5.9203       -.32447E-06** at limit **
  26  Prefactor     .10007E-03    177.34        .13152E-04** at limit **
  27  Prefactor     .10000E-03    11.340        .44567E-06** at limit **
  28  Prefactor     .10000E-03    16.695        .41041E-06** at limit **
  29  Prefactor     .10009E-03    214.90       -.18653E-04** at limit **
  30  Prefactor     .10001E-03    3.7831       -.54051E-06** at limit **
  31  Normalizat    1.2468        .19724       -.20983E-05    .44425E-03
  32  Prefactor     .83214        .22144       -.12706E-05    .15345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.1736
  norm       = 8.2863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8144
  Prefactor  = 5.87387
  norm       = 5.09186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0665
  Prefactor  = 0.0001
  Prefactor  = 3.29408
  norm       = 6.60639
  Prefactor  = 8.51422
  Prefactor  = 0.0001
  norm       = 4.94046
  Prefactor  = 0.0001
  norm       = 2.25224
  norm       = 0.0001
  norm       = 12.6791
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 4.8755
  norm       = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.000100007
  Normalizat = 1.24681
  Prefactor  = 0.832142
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.010     FROM HESSE     STATUS=OK           655 CALLS     5025 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.174        59.939        .42791E-04   -1.3827    
   2  norm          8.2863        5.0384        .12165E-03   -1.5132    
   3  Prefactor     .10000E-03    6.7700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1541        .22604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.814        4.7295        .93718E-04   -1.5020    
   6  Prefactor     5.8739        6.0859        .16570E-03   -1.5223    
   7  norm          5.0919        6.4710        .17818E-03   -1.5257    
   8  Prefactor     .10000E-03    6.1934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.066        117.20        .91969E-04   -1.4834    
  11  Prefactor     .10000E-03    7.9171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2941        3.9697        .16634E-03   -1.5345    
  13  norm          6.6064        5.7578        .15612E-03   -1.5194    
  14  Prefactor     8.5142        58.652        .13740E-03   -1.5124    
  15  Prefactor     .10000E-03    10.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9405        5.1783        .86143E-03   -1.5263    
  17  Prefactor     .10000E-03    5.3225        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2522        4.5281        .22790E-03   -1.5408    
  19  norm          .10000E-03    5.6221        .18097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.679        5.5621        .10825E-03   -1.4996    
  21  norm          .10000E-03    2.8444        .12857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.0035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10007E-03    14.899        .22556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.8755        19.826        .18219E-03   -1.5266    
  25  norm          .10000E-03    6.0536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10007E-03    181.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10009E-03    221.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    8.7030        .29275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2468        .23373        .24496E-03   -.85168    
  32  Prefactor     .83214        .26303        .34167E-03   -.98554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98659e-09
Minuit parameter uncertainties:
  1  59.9797
  2  5.03865
  3  5.8617e-05
  4  4.12732e-06
  5  4.72963
  6  6.08651
  7  6.47192
  8  3.62312e-06
  9  1.56594e-06
  10  94.8186
  11  7.56134e-05
  12  3.97
  13  5.75828
  14  44.7563
  15  3.70566e-05
  16  5.17879
  17  2.59527e-05
  18  4.52882
  19  2.96249e-05
  20  5.56234
  21  4.24738e-07
  22  3.57931e-05
  23  0.00200604
  24  19.6743
  25  1.59416e-05
  26  0.00708171
  27  7.75991e-05
  28  9.34016e-05
  29  0.00880451
  30  0.000479745
  31  0.233923
  32  0.26343
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.606e+00  5.758e+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:  8.321e-01  2.634e-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.247e+00  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/50993/likelihoodResults_646272001_646531201_4FGL_J1257.8+3228_daily_bin1570.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6111.6340127
delta logL = 0.375791316225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6111.62852456
delta logL = 0.38127945388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3855       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8070       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85151       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=   6111.629     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      270 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3829        89.524        .43292E-02    .23525E-03
   2  alpha         2.8064        3.7839        .36772        .38739E-04
   3  Normalizat    1.2177        .81230E-01    .55924E-01    .58938E-05
   4  Prefactor     .85155        .82719E-01    .76365E-01    .18684E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.38289
  alpha      = 2.80639
  Normalizat = 1.21773
  Prefactor  = 0.851548
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.629     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3829        5.1197        .12364E-03   -1.5244    
   2  alpha         2.8064        .71518        .13873E-01    .12287    
   3  Normalizat    1.2177        .22775        .24729E-03   -.86057    
   4  Prefactor     .85155        .26216        .33799E-03   -.97855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65189e-12
Minuit parameter uncertainties:
  1  5.12009
  2  0.725471
  3  0.227932
  4  0.262546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50993': 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) = 6111.62852296
delta logL = 0.381281048363

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  5.383e+00  5.120e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.806e+00  7.255e-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:  8.515e-01  2.625e-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.218e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.28
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.81 +/- 0.73
Photon Flux (Free Index): 6.70e-08 +/- 5.48e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.14e-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/50993/cmap_HighResolution_646272001_646531201_4FGL_J1257.8+3228_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-05', comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='1.58e-05', photon_flux_error='3.37e-08', dlogl='3.81e-01', energy_flux='1.53e-05', photon_flux2='6.70e-08', job_status='DONE', time_completed='2021-09-06 12:35:57.816235', photon_index_error2='0.73', photon_index2='2.81', ts='2.49', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.14e-05', EG='1.25', time_epoch_completed='1630956957.82', return_code='0', job_id='50993', GAL2='0.85', EG2='1.22', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.48e-08', ts2='3.28', photon_index='2.22' WHERE bin_id='1570' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:35:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 50993: <4FGL_J1257.8+3228_daily_bin1570> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1570 194.473 32.4721 646272001 646531201 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 :                                   909.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

