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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin757
RA = 194.473, Dec = 32.4721
tmin = 435542401, tmax = 435801601
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='46102', job_status='RUN', time_executed='2021-09-06 12:06:24.885342', time_epoch_executed='1630955184.89' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46102/ft1_4FGL_J1257.8+3228_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46102/ft2_4FGL_J1257.8+3228_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46102/ft1_4FGL_J1257.8+3228_daily_bin757.fits outfile=/scratch/kocevski/46102/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin757.fits ra=194.473 dec=32.4721 rad=12.0 tmin=435542401.0 tmax=435801601.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 5.72
user 5.34
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46102/ft1_filtered_4FGL_J1257.8+3228_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/46102/ft2_4FGL_J1257.8+3228_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/46102/ltcube_435542401_435801601_4FGL_J1257.8+3228_daily_bin757.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/46102/ft2_4FGL_J1257.8+3228_daily_bin757.fits
.....................!
real 12.76
user 12.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46102/ft1_filtered_4FGL_J1257.8+3228_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/46102/ft2_4FGL_J1257.8+3228_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/46102/ltcube_435542401_435801601_4FGL_J1257.8+3228_daily_bin757.fits outfile=/scratch/kocevski/46102/expmap_435542401_435801601_4FGL_J1257.8+3228_daily_bin757.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/46102/ltcube_435542401_435801601_4FGL_J1257.8+3228_daily_bin757.fits
.....................!
real 190.13
user 185.36
sys 4.36

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/46102/ft1_filtered_4FGL_J1257.8+3228_daily_bin757.fits scfile=/scratch/kocevski/46102/ft2_4FGL_J1257.8+3228_daily_bin757.fits outfile=/scratch/kocevski/46102/cmap_435542401_435801601_4FGL_J1257.8+3228_daily_bin757.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.473 yref=32.4721 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46102/ft1_filtered_4FGL_J1257.8+3228_daily_bin757.fits scfile=/scratch/kocevski/46102/ft2_4FGL_J1257.8+3228_daily_bin757.fits outfile=/scratch/kocevski/46102/cmap_HighResolution_435542401_435801601_4FGL_J1257.8+3228_daily_bin757.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.473 yref=32.4721 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.972       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6356       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.717       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21743E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .87239E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14890E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .72843       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.757       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2082       1.0000         .10000E-03   10000.    
    19 'norm      '    .10564E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11664E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.134       1.0000         .10000E-03   10000.    
    25 'norm      '    4.8219       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2055       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.431       1.0000         .10000E-03   10000.    
    29 'Prefactor '    42.444       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1965       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73161       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4043.799     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     3728 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.985        3.9074        .11999E-04    .11888E-02
   2  norm          3.3782        3.2706        .20484E-07   -.29096E-04
   3  Prefactor     .10000E-03    10.041       -.52835E-05** at limit **
   4  Prefactor     2.6354        2.5792        .34120E-06    .66302E-05
   5  Prefactor     2.9735        3.5103       -.12520E-05   -.26037E-03
   6  Prefactor     11.717        1.0863        .15832E-05    .27201E-02
   7  norm          .10000E-03    6.1351        .15487E-04** at limit **
   8  Prefactor     .10000E-03    5.5609        .77567E-05** at limit **
   9  Prefactor     .10000E-03    15.089        .80975E-05** at limit **
  10  Prefactor     .15984E-03    500.53       -.58830E-03** at limit **
  11  Prefactor     .10000E-03    8.9970       -.72108E-05** at limit **
  12  Prefactor     .10000E-03    5.3153       -.76703E-06** at limit **
  13  norm          .10002E-03    63.520       -.12007E-03** at limit **
  14  Prefactor     .10628E-03    114.36        .65478E-04** at limit **
  15  Prefactor     .82484        257.37       -.10839E-03   -.33786E-04
  16  norm          .10000E-03    1.3672       -.24323E-05** at limit **
  17  Prefactor     16.766        7.3235       -.14702E-04   -.74124E-02
  18  norm          5.1910        4.0685        .36589E-05   -.51229E-02
  19  norm          .10000E-03    20.443       -.15908E-04** at limit **
  20  norm          .10000E-03    5.8007       -.23299E-05** at limit **
  21  norm          .10001E-03    18.561        .13756E-04** at limit **
  22  norm          .10000E-03    6.2332       -.13103E-04** at limit **
  23  Prefactor     .10000E-03    3.9371       -.35745E-05** at limit **
  24  Prefactor     22.130        2.1808        .31976E-05   -.13807E-02
  25  norm          4.8219        1.0239       -.45254E-06   -.10491E-02
  26  Prefactor     .10002E-03    58.051        .68947E-04** at limit **
  27  Prefactor     2.2282        7.7584       -.24285E-04   -.14130E-02
  28  Prefactor     17.418        6.0418        .10044E-04   -.15588E-02
  29  Prefactor     42.668        55.454        .11003E-03    .39153E-03
  30  Prefactor     .10000E-03    8.1482        .51184E-05** at limit **
  31  Normalizat    1.1963        .25675        .70242E-05    .10885E-03
  32  Prefactor     .73156        .29362       -.38755E-05    .75961E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9849
  norm       = 3.37819
  Prefactor  = 0.0001
  Prefactor  = 2.63539
  Prefactor  = 2.97355
  Prefactor  = 11.7168
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000159844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 0.000106283
  Prefactor  = 0.824838
  norm       = 0.0001
  Prefactor  = 16.7658
  norm       = 5.19097
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1296
  norm       = 4.82194
  Prefactor  = 0.000100024
  Prefactor  = 2.22818
  Prefactor  = 17.4181
  Prefactor  = 42.6682
  Prefactor  = 0.0001
  Normalizat = 1.19629
  Prefactor  = 0.731556
 **********
 **   18 **HESSE 
 **********

 FCN=   4043.799     FROM HESSE     STATUS=OK           745 CALLS     4473 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.985        41.650        .25054E-02   -1.4908    
   2  norm          3.3782        3.2755        .55042E-02   -1.5340    
   3  Prefactor     .10000E-03    9.8298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6354        2.5776        .62792E-02   -1.5383    
   5  Prefactor     2.9735        3.5773        .58871E-02   -1.5363    
   6  Prefactor     11.717        8.4508        .29258E-02   -1.5023    
   7  norm          .10000E-03    5.9646        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5455        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.099        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15984E-03    1217.0        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    4.1316        .66034E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10628E-03    355.87        .10238E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .82484        60.656        .12170       -1.5526    
  16  norm          .10000E-03    1.3636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.766        24.774        .24460E-02   -1.4889    
  18  norm          5.1910        11.339        .44036E-02   -1.5252    
  19  norm          .10000E-03    20.250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.6794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    7.7419        .59488E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.8352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.130        19.155        .21284E-02   -1.4767    
  25  norm          4.8219        6.1020        .45801E-02   -1.5269    
  26  Prefactor     .10002E-03    58.411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.2282        85.133        .69252E-02   -1.5409    
  28  Prefactor     17.418        33.882        .23983E-02   -1.4873    
  29  Prefactor     42.668        74.013        .15383E-02   -1.4401    
  30  Prefactor     .10000E-03    7.7901        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1963        .22074        .50571E-01   -.86718    
  32  Prefactor     .73156        .24791        .72838E-01   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83657e-07
Minuit parameter uncertainties:
  1  41.7257
  2  3.27569
  3  2.69564e-05
  4  2.57771
  5  3.57752
  6  8.45169
  7  7.04882e-05
  8  1.89657e-05
  9  0.000333084
  10  0.55133
  11  6.87086e-05
  12  1.45566e-05
  13  0.00054054
  14  0.0951412
  15  14.1606
  16  1.45451e-05
  17  24.7896
  18  11.3432
  19  0.000211006
  20  2.54023e-06
  21  0.000474686
  22  5.4147e-05
  23  6.2466e-06
  24  19.1603
  25  6.10279
  26  0.00238861
  27  27.5874
  28  33.9196
  29  74.1725
  30  9.44425e-06
  31  0.220914
  32  0.248281
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  5.405e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  7.316e-01  2.483e-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.196e+00  2.209e-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: 8.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46102/likelihoodResults_435542401_435801601_4FGL_J1257.8+3228_daily_bin757.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) = 4043.79880021
delta logL = -7.54919437895e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4043.7987998
delta logL = -7.50769527258e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95453E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2189       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73127       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=   4043.799     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      232 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    8.0741        .46494E-01** at limit **
   2  alpha         2.1849        3.5878        .41485        .90701E-06
   3  Normalizat    1.1963        .62878E-02    .50571E-01    .71678E-04
   4  Prefactor     .73155        .73053E-02    .72839E-01   -.92339E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 2.1849
  Normalizat = 1.19629
  Prefactor  = 0.731553
 **********
 **   18 **HESSE 
 **********

 FCN=   4043.799     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      271 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    18.097        .46705E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1849        3.4328        .16594       -.12637    
   3  Normalizat    1.1963        .94543E-02    .22358E-03   -.86718    
   4  Prefactor     .73155        .10968E-01    .32238E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73583e-08
Minuit parameter uncertainties:
  1  0.000657097
  2  376.3
  3  0.00945435
  4  0.0109675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46102': 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) = 4043.79872469
delta logL = 2.53266989603e-08

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  6.571e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.185e+00  3.763e+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:  7.316e-01  1.097e-02  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.196e+00  9.454e-03  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/46102/cmap_HighResolution_435542401_435801601_4FGL_J1257.8+3228_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', job_status='DONE', photon_flux_upper_limit='8.53e-08', time_completed='2021-09-06 12:17:46.775307', job_id='46102', GAL2='0.73', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630955866.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='757' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:17:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 46102: <4FGL_J1257.8+3228_daily_bin757> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin757> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 12:06:06 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:06:07 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:06:07 2021
Terminated at Mon Sep  6 12:17:47 2021
Results reported at Mon Sep  6 12:17:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin757 194.473 32.4721 435542401 435801601 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 :                                   676.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

