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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin414
RA = 194.473, Dec = 32.4721
tmin = 346636801, tmax = 346896001
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='44161', job_status='RUN', time_executed='2021-09-06 12:00:46.349034', time_epoch_executed='1630954846.35' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/44161

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/44161/ft1_4FGL_J1257.8+3228_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/44161/ft2_4FGL_J1257.8+3228_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/44161/ft1_4FGL_J1257.8+3228_daily_bin414.fits outfile=/scratch/kocevski/44161/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin414.fits ra=194.473 dec=32.4721 rad=12.0 tmin=346636801.0 tmax=346896001.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.48
user 3.24
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/44161/ft1_filtered_4FGL_J1257.8+3228_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/44161/ft2_4FGL_J1257.8+3228_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/44161/ltcube_346636801_346896001_4FGL_J1257.8+3228_daily_bin414.fits outfile=/scratch/kocevski/44161/expmap_346636801_346896001_4FGL_J1257.8+3228_daily_bin414.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/44161/ltcube_346636801_346896001_4FGL_J1257.8+3228_daily_bin414.fits
.....................!
real 189.65
user 184.77
sys 4.39

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/44161/ft1_filtered_4FGL_J1257.8+3228_daily_bin414.fits scfile=/scratch/kocevski/44161/ft2_4FGL_J1257.8+3228_daily_bin414.fits outfile=/scratch/kocevski/44161/cmap_346636801_346896001_4FGL_J1257.8+3228_daily_bin414.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/44161/ft1_filtered_4FGL_J1257.8+3228_daily_bin414.fits scfile=/scratch/kocevski/44161/ft2_4FGL_J1257.8+3228_daily_bin414.fits outfile=/scratch/kocevski/44161/cmap_HighResolution_346636801_346896001_4FGL_J1257.8+3228_daily_bin414.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35962E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    92.618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2835       1.0000         .10000E-03   10000.    
    13 'norm      '    .38675       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1790       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22168E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.2142       1.0000         .10000E-03   10000.    
    21 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.4911       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.0356       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11196E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.2118       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .93428       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .77333       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3244       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=   6084.398     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     4402 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    24.432        .15625E-06** at limit **
   2  norm          .10000E-03    1.3767        .28630E-08** at limit **
   3  Prefactor     .10000E-03    1.7802        .20851E-07** at limit **
   4  Prefactor     5.7369        2.4948        .12514E-07    .32398E-05
   5  Prefactor     3.5876        2.0085        .36251E-07   -.38842E-04
   6  Prefactor     .10000E-03    1.2882        .48210E-08** at limit **
   7  norm          .10000E-03    1.7233       -.51575E-08** at limit **
   8  Prefactor     .10000E-03    3.6429        .52493E-07** at limit **
   9  Prefactor     10.253        12.464       -.22806E-06    .80340E-04
  10  Prefactor     92.640        85.739        .26922E-05    .19911E-03
  11  Prefactor     .10000E-03    2.6851       -.24797E-08** at limit **
  12  Prefactor     5.2781        5.5349        .23532E-05   -.39475E-03
  13  norm          .39529        3.3180        .63903E-07   -.21491E-03
  14  Prefactor     .10000E-03    106.22        .11719E-05** at limit **
  15  Prefactor     8.1717        24.108        .54653E-06    .22498E-03
  16  norm          .10000E-03    1.5117        .22652E-07** at limit **
  17  Prefactor     .10008E-03    12.820       -.36331E-05** at limit **
  18  norm          .10000E-03    1.2630       -.30457E-08** at limit **
  19  norm          .10000E-03    6.8802       -.78769E-07** at limit **
  20  norm          7.2110        4.0209        .13503E-07    .39164E-03
  21  norm          .10000E-03    4.4712        .36679E-07** at limit **
  22  norm          .10000E-03    7.2673        .15096E-06** at limit **
  23  Prefactor     .10000E-03    1.0858        .19668E-07** at limit **
  24  Prefactor     .10000E-03    9.4585        .51786E-07** at limit **
  25  norm          4.4916        4.9615       -.70231E-06   -.50365E-03
  26  Prefactor     .10000E-03    16.502        .20577E-08** at limit **
  27  Prefactor     7.0456        10.697        .30429E-05    .58348E-03
  28  Prefactor     .10000E-03    31.619        .12970E-05** at limit **
  29  Prefactor     7.2390        80.711        .17403E-06   -.24386E-05
  30  Prefactor     .93797        5.2443        .14612E-05   -.40392E-03
  31  Normalizat    .77342        .16941       -.11171E-05    .36047E-03
  32  Prefactor     1.3243        .20495       -.16181E-07    .22874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100106
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.73688
  Prefactor  = 3.58763
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2529
  Prefactor  = 92.6399
  Prefactor  = 0.0001
  Prefactor  = 5.2781
  norm       = 0.395288
  Prefactor  = 0.000100001
  Prefactor  = 8.17169
  norm       = 0.0001
  Prefactor  = 0.000100078
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.21104
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49156
  Prefactor  = 0.0001
  Prefactor  = 7.04563
  Prefactor  = 0.0001
  Prefactor  = 7.239
  Prefactor  = 0.937972
  Normalizat = 0.773424
  Prefactor  = 1.32429
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.398     FROM HESSE     STATUS=OK           661 CALLS     5063 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    27.663        .11063       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4021        .17757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7823        .10163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7369        2.4787        .77636E-04   -1.5229    
   5  Prefactor     3.5876        2.0044        .79179E-04   -1.5329    
   6  Prefactor     .10000E-03    1.2899        .86459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7668        .19995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6528        .14538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.253        12.457        .12515E-03   -1.5067    
  10  Prefactor     92.640        89.843        .41758E-04   -1.3780    
  11  Prefactor     .10000E-03    2.6982        .12481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2781        5.8948        .87429E-03   -1.5248    
  13  norm          .39529        17.143        .23087E-02   -1.5582    
  14  Prefactor     .10000E-03    106.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1717        25.000        .14019E-03   -1.5136    
  16  norm          .10000E-03    1.5303        .93635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10008E-03    58.745        .48672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2642        .85593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.8942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.2110        3.9858        .10726E-03   -1.5171    
  21  norm          .10000E-03    4.4967        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.2754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.0996        .79318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.5830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.4916        5.0153        .17948E-03   -1.5284    
  26  Prefactor     .10000E-03    16.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.0456        11.093        .15124E-03   -1.5177    
  28  Prefactor     .10000E-03    31.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.2390        80.778        .14936E-03   -1.5170    
  30  Prefactor     .93797        5.5608        .33980E-02   -1.5514    
  31  Normalizat    .77342        .19894        .25236E-03   -1.0106    
  32  Prefactor     1.3243        .24504        .25433E-03   -.82587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7029e-09
Minuit parameter uncertainties:
  1  0.00342941
  2  6.54671e-07
  3  1.64884e-06
  4  2.47876
  5  2.00444
  6  5.0134e-07
  7  1.20818e-06
  8  3.0946e-06
  9  12.46
  10  89.9751
  11  1.91368e-06
  12  5.89544
  13  5.20728
  14  0.000502263
  15  25.0318
  16  3.16499e-06
  17  0.00428788
  18  2.49665e-08
  19  3.38587e-06
  20  3.98596
  21  2.99141e-06
  22  2.23342e-05
  23  1.26016e-07
  24  1.21863e-05
  25  5.01573
  26  1.58163e-06
  27  11.0958
  28  2.29019e-05
  29  48.446
  30  4.56805
  31  0.199124
  32  0.245258
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  3.953e-01  5.207e+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:  1.324e+00  2.453e-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:  7.734e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/44161/likelihoodResults_346636801_346896001_4FGL_J1257.8+3228_daily_bin414.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) = 6084.18591917
delta logL = 0.212022657481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6084.16249391
delta logL = 0.235447920292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74148       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5404       1.0000          .0000       5.0000    
     3 'Normalizat'    .74406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3443       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=   6084.162     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74221        22.758        .12220E-01    .12040E-02
   2  alpha         3.5399        4.1406        .46929        .44027E-04
   3  Normalizat    .74406        .30514E-01    .42876E-01    .18657E-04
   4  Prefactor     1.3443        .39183E-01    .57120E-01    .17501E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.742213
  alpha      = 3.53986
  Normalizat = 0.744061
  Prefactor  = 1.34428
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.162     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      256 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74221        85.902        .99974E-04   -1.5536    
   2  alpha         3.5399        2.6904        .25748E-01    .42898    
   3  Normalizat    .74406        .21986        .25664E-03   -1.0218    
   4  Prefactor     1.3443        .28033        .25257E-03   -.82000    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20596e-06
Minuit parameter uncertainties:
  1  15.9921
  2  13.8858
  3  0.220123
  4  0.280648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/44161': 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) = 6084.16249386
delta logL = 0.235447971249

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  7.422e-01  1.599e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.540e+00  1.389e+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:  1.344e+00  2.806e-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:  7.441e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/44161/cmap_HighResolution_346636801_346896001_4FGL_J1257.8+3228_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-05', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-09-06 12:15:55.207380', job_id='44161', GAL2='1.34', fit_tolerance='1e-08', EG2='0.74', EG='0.77', time_epoch_completed='1630955755.21', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.35e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='414' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:15:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 44161: <4FGL_J1257.8+3228_daily_bin414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin414 194.473 32.4721 346636801 346896001 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 :                                   903.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

