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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1225
RA = 194.473, Dec = 32.4721
tmin = 556848001, tmax = 557107201
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='49380', job_status='RUN', time_executed='2021-09-06 12:18:43.630977', time_epoch_executed='1630955923.63' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49380

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49380/ft1_4FGL_J1257.8+3228_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49380/ft2_4FGL_J1257.8+3228_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49380/ft1_4FGL_J1257.8+3228_daily_bin1225.fits outfile=/scratch/kocevski/49380/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1225.fits ra=194.473 dec=32.4721 rad=12.0 tmin=556848001.0 tmax=557107201.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.59
user 3.36
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49380/ft1_filtered_4FGL_J1257.8+3228_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/49380/ft2_4FGL_J1257.8+3228_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/49380/ltcube_556848001_557107201_4FGL_J1257.8+3228_daily_bin1225.fits outfile=/scratch/kocevski/49380/expmap_556848001_557107201_4FGL_J1257.8+3228_daily_bin1225.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/49380/ltcube_556848001_557107201_4FGL_J1257.8+3228_daily_bin1225.fits
.....................!
real 190.52
user 185.38
sys 4.70

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/49380/ft1_filtered_4FGL_J1257.8+3228_daily_bin1225.fits scfile=/scratch/kocevski/49380/ft2_4FGL_J1257.8+3228_daily_bin1225.fits outfile=/scratch/kocevski/49380/cmap_556848001_557107201_4FGL_J1257.8+3228_daily_bin1225.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49380/ft1_filtered_4FGL_J1257.8+3228_daily_bin1225.fits scfile=/scratch/kocevski/49380/ft2_4FGL_J1257.8+3228_daily_bin1225.fits outfile=/scratch/kocevski/49380/cmap_HighResolution_556848001_557107201_4FGL_J1257.8+3228_daily_bin1225.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.262       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93764       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.127       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3547       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    86.935       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.0207       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    56.246       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5787       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .33251       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=   3016.839     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4339 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.225        140.15       -.19206E-05   -.39884E-04
   2  norm          5.8583        6.0536        .39721E-07   -.13071E-03
   3  Prefactor     .10000E-03    8.2733       -.20201E-06** at limit **
   4  Prefactor     .10000E-03    4.0136       -.10514E-06** at limit **
   5  Prefactor     .10011E-03    4.5920        .98875E-06** at limit **
   6  Prefactor     .10000E-03    13.022        .17287E-06** at limit **
   7  norm          .10000E-03    11.744       -.37368E-07** at limit **
   8  Prefactor     .10000E-03    19.692        .10788E-06** at limit **
   9  Prefactor     .10000E-03    20.886       -.42787E-06** at limit **
  10  Prefactor     .10000E-03    51.703       -.18529E-07** at limit **
  11  Prefactor     10.790        13.193        .32409E-07    .95642E-05
  12  Prefactor     .93928        18.094        .51276E-05    .43141E-04
  13  norm          .10000E-03    5.0632        .68329E-06** at limit **
  14  Prefactor     42.014        77.231       -.89129E-06   -.39612E-04
  15  Prefactor     13.137        33.630       -.37565E-06    .15315E-04
  16  norm          8.3559        6.4496        .17897E-08    .17625E-04
  17  Prefactor     .10000E-03    29.705       -.27872E-06** at limit **
  18  norm          86.939        17.557       -.27224E-06   -.11940E-03
  19  norm          .10000E-03    7.3913       -.93284E-07** at limit **
  20  norm          .10000E-03    1.8848        .94808E-07** at limit **
  21  norm          .10000E-03    3.1808        .66176E-07** at limit **
  22  norm          .10000E-03    11.957       -.60050E-07** at limit **
  23  Prefactor     .10000E-03    1.5900        .20221E-07** at limit **
  24  Prefactor     .10000E-03    5.1053        .18867E-07** at limit **
  25  norm          .10000E-03    3.5791        .16468E-07** at limit **
  26  Prefactor     .10000E-03    26.059       -.12058E-06** at limit **
  27  Prefactor     4.0264        24.156        .22662E-06    .17284E-04
  28  Prefactor     .10000E-03    26.055       -.41023E-08** at limit **
  29  Prefactor     56.228        95.699       -.12009E-05   -.30082E-04
  30  Prefactor     .10000E-03    1.2944        .95753E-08** at limit **
  31  Normalizat    1.5787        .30942        .19202E-05   -.15505E-03
  32  Prefactor     .33241        .34771       -.49423E-05   -.72043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.2252
  norm       = 5.8583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7896
  Prefactor  = 0.939277
  norm       = 0.0001
  Prefactor  = 42.0141
  Prefactor  = 13.1374
  norm       = 8.35587
  Prefactor  = 0.0001
  norm       = 86.9391
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02637
  Prefactor  = 0.0001
  Prefactor  = 56.2279
  Prefactor  = 0.0001
  Normalizat = 1.57875
  Prefactor  = 0.332409
 **********
 **   18 **HESSE 
 **********

 FCN=   3016.839     FROM HESSE     STATUS=OK           639 CALLS     4978 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.225        140.83        .56014E-04   -1.4275    
   2  norm          5.8583        5.9841        .13107E-03   -1.5224    
   3  Prefactor     .10000E-03    8.2752        .15429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0263        .10717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10011E-03    32.668        .20180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    51.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.790        13.171        .12199E-03   -1.5051    
  12  Prefactor     .93928        18.621        .44548E-03   -1.5514    
  13  norm          .10000E-03    5.1109        .12040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.014        77.337        .61833E-04   -1.4411    
  15  Prefactor     13.137        33.492        .11055E-03   -1.4983    
  16  norm          8.3559        6.4431        .11638E-03   -1.5130    
  17  Prefactor     .10000E-03    29.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          86.939        17.546        .43089E-04   -1.3840    
  19  norm          .10000E-03    7.3934        .14585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9010        .73625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1879        .95672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    11.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5967        .67616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.1088        .12121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.5886        .10148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.0264        24.099        .20111E-03   -1.5307    
  28  Prefactor     .10000E-03    26.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     56.228        96.224        .53488E-04   -1.4207    
  30  Prefactor     .10000E-03    1.2972        .61025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5787        .32405        .21005E-03   -.75589    
  32  Prefactor     .33241        .35365        .49130E-03   -1.2041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5418e-09
Minuit parameter uncertainties:
  1  141.761
  2  5.98474
  3  1.6581e-06
  4  9.43882e-06
  5  0.00385982
  6  5.47738e-05
  7  3.2778e-05
  8  1.6586e-05
  9  0.000102513
  10  7.19891e-05
  11  13.1747
  12  8.36676
  13  1.41673e-05
  14  77.5221
  15  33.5394
  16  6.44364
  17  6.44062e-05
  18  17.5473
  19  8.26943e-06
  20  6.69578e-07
  21  1.16468e-07
  22  2.02496e-05
  23  4.94379e-07
  24  8.75886e-07
  25  7.27814e-07
  26  4.95606e-05
  27  19.7125
  28  4.66661e-05
  29  96.4915
  30  1.69799e-07
  31  0.324483
  32  0.355981
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  3.324e-01  3.560e-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.579e+00  3.245e-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: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49380/likelihoodResults_556848001_557107201_4FGL_J1257.8+3228_daily_bin1225.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) = 3016.8397037
delta logL = -0.000918618227843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3016.83878543
delta logL = -3.48933554051e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10612E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1901       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33256       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=   3016.839     FROM MIGRAD    STATUS=FAILED       106 CALLS      247 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    93.096        .12468E-01** at limit **
   2  alpha         1.6433        2.8979        .50000       -.63610E-06
   3  Normalizat    1.5787        .22470E-01    .21005E-03    .16821E-03
   4  Prefactor     .33241        .25842E-01    .49132E-03    .77643E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3016.839     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      431 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    93.096        .41032E-03** at limit **
   2  alpha         1.6433        2.8979        .38779E-06   -.63610E-06
   3  Normalizat    1.5787        .22470E-01    .55741E-08    .16821E-03
   4  Prefactor     .33241        .25842E-01    .66767E-08    .77643E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3016.839     FROM MIGRAD    STATUS=FAILED        72 CALLS      503 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1314.7        .59420E-03** at limit **
   2  alpha         1.6432        3.0384        .50000       -.64326E-06
   3  Normalizat    1.5787        .11480        .84019E-05    .16778E-03
   4  Prefactor     .33241        .13193        .39306E-05    .77516E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64317
  Normalizat = 1.57875
  Prefactor  = 0.33241
 **********
 **   18 **HESSE 
 **********

 FCN=   3016.839     FROM HESSE     STATUS=OK            27 CALLS      530 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4980        .11884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6432        4.0974        .50000       -.34982    
   3  Normalizat    1.5787        .30014        .16804E-05   -.75589    
   4  Prefactor     .33241        .34249        .78611E-06   -1.2041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30868e-09
Minuit parameter uncertainties:
  1  1.9777e-05
  2  171.718
  3  0.300478
  4  0.344612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49380': 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): 1
logL (Free Index) = 3016.8387815
delta logL = 3.58899114872e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.978e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.643e+00  1.717e+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:  3.324e-01  3.446e-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.579e+00  3.005e-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/49380/cmap_HighResolution_556848001_557107201_4FGL_J1257.8+3228_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-05', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-06 12:29:13.128993', job_id='49380', GAL2='0.33', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630956553.13', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.33', dlogl='3.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1225' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:29:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 49380: <4FGL_J1257.8+3228_daily_bin1225> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1225> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:15:38 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:15:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:15:39 2021
Terminated at Mon Sep  6 12:29:13 2021
Results reported at Mon Sep  6 12:29:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1225 194.473 32.4721 556848001 557107201 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 :                                   618.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

