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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1112
RA = 194.473, Dec = 32.4721
tmin = 527558401, tmax = 527817601
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='47848', job_status='RUN', time_executed='2021-09-06 12:11:11.863059', time_epoch_executed='1630955471.86' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47848/ft1_4FGL_J1257.8+3228_daily_bin1112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47848/ft2_4FGL_J1257.8+3228_daily_bin1112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47848/ft1_4FGL_J1257.8+3228_daily_bin1112.fits outfile=/scratch/kocevski/47848/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1112.fits ra=194.473 dec=32.4721 rad=12.0 tmin=527558401.0 tmax=527817601.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.55
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47848/ft2_4FGL_J1257.8+3228_daily_bin1112.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/47848/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1112.fits evtable="EVENTS" outfile="/scratch/kocevski/47848/ft1_filtered_4FGL_J1257.8+3228_daily_bin1112.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.47
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47848/ft1_filtered_4FGL_J1257.8+3228_daily_bin1112.fits" evtable="EVENTS" scfile=/scratch/kocevski/47848/ft2_4FGL_J1257.8+3228_daily_bin1112.fits sctable="SC_DATA" outfile=/scratch/kocevski/47848/ltcube_527558401_527817601_4FGL_J1257.8+3228_daily_bin1112.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/47848/ft2_4FGL_J1257.8+3228_daily_bin1112.fits
.....................!
real 11.80
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47848/ft1_filtered_4FGL_J1257.8+3228_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/47848/ft2_4FGL_J1257.8+3228_daily_bin1112.fits sctable="SC_DATA" expcube=/scratch/kocevski/47848/ltcube_527558401_527817601_4FGL_J1257.8+3228_daily_bin1112.fits outfile=/scratch/kocevski/47848/expmap_527558401_527817601_4FGL_J1257.8+3228_daily_bin1112.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/47848/ltcube_527558401_527817601_4FGL_J1257.8+3228_daily_bin1112.fits
.....................!
real 192.29
user 187.06
sys 4.79

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/47848/ft1_filtered_4FGL_J1257.8+3228_daily_bin1112.fits scfile=/scratch/kocevski/47848/ft2_4FGL_J1257.8+3228_daily_bin1112.fits outfile=/scratch/kocevski/47848/cmap_527558401_527817601_4FGL_J1257.8+3228_daily_bin1112.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47848/ft1_filtered_4FGL_J1257.8+3228_daily_bin1112.fits scfile=/scratch/kocevski/47848/ft2_4FGL_J1257.8+3228_daily_bin1112.fits outfile=/scratch/kocevski/47848/cmap_HighResolution_527558401_527817601_4FGL_J1257.8+3228_daily_bin1112.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.624       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5723       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15847E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4752       1.0000         .10000E-03   10000.    
    13 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.171       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6427       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7088       1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9761       1.0000         .10000E-03   10000.    
    25 'norm      '    18.845       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    33.630       1.0000         .10000E-03   10000.    
    29 'Prefactor '    23.633       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.7418       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .95677       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .86303       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=   5593.387     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4350 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.612       -.15065E-06** at limit **
   2  norm          11.624        4.2058       -.58079E-08   -.56247E-04
   3  Prefactor     9.0276        8.6378        .27465E-07   -.72551E-05
   4  Prefactor     6.5723        3.2488       -.86284E-09   -.64734E-04
   5  Prefactor     5.3468        2.5561        .30770E-08    .51226E-04
   6  Prefactor     .10003E-03    3.4748       -.10221E-05** at limit **
   7  norm          .10000E-03    1.5182        .11834E-06** at limit **
   8  Prefactor     .10000E-03    4.0507        .67204E-07** at limit **
   9  Prefactor     15.200        22.047        .78022E-06    .27645E-04
  10  Prefactor     .10000E-03    23.240        .29580E-06** at limit **
  11  Prefactor     .37628        14.441       -.40959E-05    .63161E-03
  12  Prefactor     5.4742        5.0089       -.18595E-05   -.13499E-02
  13  norm          .10000E-03    3.6161       -.83662E-07** at limit **
  14  Prefactor     23.712        43.317       -.94929E-06   -.13195E-03
  15  Prefactor     23.166        25.595        .37734E-06    .20862E-04
  16  norm          2.6404        4.7633        .61326E-06    .44511E-03
  17  Prefactor     .10000E-03    12.895        .51124E-06** at limit **
  18  norm          4.7083        4.6828        .25862E-06    .11757E-03
  19  norm          .10000E-03    4.9180       -.16630E-06** at limit **
  20  norm          .10000E-03    1.6473       -.87577E-08** at limit **
  21  norm          .10000E-03    1.7210       -.47448E-08** at limit **
  22  norm          .10000E-03    8.4025       -.54183E-08** at limit **
  23  Prefactor     .10000E-03    2.0877       -.10659E-07** at limit **
  24  Prefactor     9.9794        11.350       -.72011E-07   -.26515E-04
  25  norm          18.844        9.3860       -.74316E-07   -.16226E-05
  26  Prefactor     .10000E-03    49.863       -.87667E-07** at limit **
  27  Prefactor     .10000E-03    14.922       -.92557E-07** at limit **
  28  Prefactor     33.627        26.402       -.25078E-06   -.51222E-04
  29  Prefactor     23.620        76.172       -.49034E-06   -.19114E-04
  30  Prefactor     6.7417        5.9402        .12569E-06    .60792E-04
  31  Normalizat    .95667        .18065        .66518E-06    .22879E-04
  32  Prefactor     .86311        .20817       -.11849E-05    .37965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.6238
  Prefactor  = 9.0276
  Prefactor  = 6.57234
  Prefactor  = 5.34684
  Prefactor  = 0.000100033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2
  Prefactor  = 0.0001
  Prefactor  = 0.376278
  Prefactor  = 5.47419
  norm       = 0.0001
  Prefactor  = 23.7122
  Prefactor  = 23.1662
  norm       = 2.64035
  Prefactor  = 0.0001
  norm       = 4.70829
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97938
  norm       = 18.8439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6274
  Prefactor  = 23.62
  Prefactor  = 6.74166
  Normalizat = 0.95667
  Prefactor  = 0.863107
 **********
 **   18 **HESSE 
 **********

 FCN=   5593.387     FROM HESSE     STATUS=OK           665 CALLS     5015 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.624        4.2150        .83835E-04   -1.5026    
   3  Prefactor     9.0276        8.6416        .13340E-03   -1.5107    
   4  Prefactor     6.5723        3.2554        .86086E-04   -1.5195    
   5  Prefactor     5.3468        2.5530        .78532E-04   -1.5245    
   6  Prefactor     .10003E-03    19.820        .25193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4507        .17939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0618        .14699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.200        22.095        .10273E-03   -1.4928    
  10  Prefactor     .10000E-03    23.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .37628        39.610        .38209E-02   -1.5585    
  12  Prefactor     5.4742        5.2121        .79903E-03   -1.5240    
  13  norm          .10000E-03    3.6489        .13804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.712        43.582        .82194E-04   -1.4734    
  15  Prefactor     23.166        25.522        .83214E-04   -1.4745    
  16  norm          2.6404        4.7214        .20206E-03   -1.5383    
  17  Prefactor     .10000E-03    12.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7083        4.6827        .15483E-03   -1.5274    
  19  norm          .10000E-03    4.9206        .16199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6621        .93569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.7230        .95804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.4060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1166        .10518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.9794        11.332        .12687E-03   -1.5076    
  25  norm          18.844        9.3838        .92263E-04   -1.4840    
  26  Prefactor     .10000E-03    50.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     33.627        26.394        .69100E-04   -1.4548    
  29  Prefactor     23.620        76.575        .82397E-04   -1.4736    
  30  Prefactor     6.7417        5.9441        .15453E-03   -1.5189    
  31  Normalizat    .95667        .21335        .23886E-03   -.94497    
  32  Prefactor     .86311        .24542        .29647E-03   -.97442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94836e-09
Minuit parameter uncertainties:
  1  8.3489e-05
  2  4.21513
  3  8.64284
  4  3.25546
  5  2.55302
  6  0.00160917
  7  9.97653e-06
  8  4.73194e-06
  9  22.1069
  10  0.000124966
  11  7.72548
  12  5.21255
  13  5.63883e-06
  14  43.6404
  15  25.5344
  16  4.72205
  17  0.000135244
  18  4.68306
  19  1.13293e-05
  20  5.236e-07
  21  4.1869e-07
  22  3.87614e-06
  23  9.51729e-08
  24  11.3345
  25  9.38456
  26  6.90449e-05
  27  4.7512e-05
  28  26.4033
  29  76.8963
  30  5.94466
  31  0.213544
  32  0.245732
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  5.639e-06  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.631e-01  2.457e-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:  9.567e-01  2.135e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47848/likelihoodResults_527558401_527817601_4FGL_J1257.8+3228_daily_bin1112.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) = 5593.38808585
delta logL = -0.00130678543792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5593.38677425
delta logL = 4.81371534988e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1510       1.0000          .0000       5.0000    
     3 'Normalizat'    .95663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86310       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5593.387     FROM MIGRAD    STATUS=FAILED        99 CALLS      294 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    272.18        .15338E-02** at limit **
   2  alpha         3.0934        2.7787        .50000        .76636E-06
   3  Normalizat    .95667        .30955E-01    .23886E-03   -.24702E-04
   4  Prefactor     .86311        .36833E-01    .29647E-03   -.11274E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5593.387     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      453 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    272.18        .43996E-03** at limit **
   2  alpha         3.0934        2.7787        .64963E-05    .76636E-06
   3  Normalizat    .95667        .30955E-01    .22091E-06   -.24702E-04
   4  Prefactor     .86311        .36833E-01    .18835E-06   -.11274E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5593.387     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      487 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    967.11        .30675E-03** at limit **
   2  alpha         3.1007        3.8596        .50000        .11309E-05
   3  Normalizat    .95667        .77165E-01    .95545E-05   -.18086E-04
   4  Prefactor     .86311        .91804E-01    .11859E-04   -.70941E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100041
  alpha      = 3.10075
  Normalizat = 0.956669
  Prefactor  = 0.863107
 **********
 **   18 **HESSE 
 **********

 FCN=   5593.387     FROM HESSE     STATUS=OK            29 CALLS      516 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    7.1628        .61350E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1007        3.9804        .50000        .24267    
   3  Normalizat    .95667        .20189        .19109E-05   -.94497    
   4  Prefactor     .86311        .24020        .23718E-05   -.97442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93841e-09
Minuit parameter uncertainties:
  1  0.00107898
  2  201.805
  3  0.202051
  4  0.240499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47848': 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) = 5593.3867739
delta logL = 5.17004991707e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.079e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.101e+00  2.018e+02  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.631e-01  2.405e-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:  9.567e-01  2.021e-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/47848/cmap_HighResolution_527558401_527817601_4FGL_J1257.8+3228_daily_bin1112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-06 12:25:36.375965', job_id='47848', GAL2='0.86', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630956336.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1112' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:25:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 47848: <4FGL_J1257.8+3228_daily_bin1112> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1112> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:10:59 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:11:00 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:11:00 2021
Terminated at Mon Sep  6 12:25:37 2021
Results reported at Mon Sep  6 12:25:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1112 194.473 32.4721 527558401 527817601 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 :                                   857.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

