/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin90
RA = 194.473, Dec = 32.4721
tmin = 262656001, tmax = 262915201
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='42353', job_status='RUN', time_executed='2021-09-06 11:56:53.009347', time_epoch_executed='1630954613.01' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42353/ft1_4FGL_J1257.8+3228_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42353/ft2_4FGL_J1257.8+3228_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42353/ft1_4FGL_J1257.8+3228_daily_bin90.fits outfile=/scratch/kocevski/42353/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin90.fits ra=194.473 dec=32.4721 rad=12.0 tmin=262656001.0 tmax=262915201.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 1.45
user 1.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42353/ft1_filtered_4FGL_J1257.8+3228_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/42353/ft2_4FGL_J1257.8+3228_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/42353/ltcube_262656001_262915201_4FGL_J1257.8+3228_daily_bin90.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/42353/ft2_4FGL_J1257.8+3228_daily_bin90.fits
.....................!
real 13.28
user 12.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42353/ft1_filtered_4FGL_J1257.8+3228_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/42353/ft2_4FGL_J1257.8+3228_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/42353/ltcube_262656001_262915201_4FGL_J1257.8+3228_daily_bin90.fits outfile=/scratch/kocevski/42353/expmap_262656001_262915201_4FGL_J1257.8+3228_daily_bin90.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/42353/ltcube_262656001_262915201_4FGL_J1257.8+3228_daily_bin90.fits
.....................!
real 190.46
user 184.78
sys 5.08

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/42353/ft1_filtered_4FGL_J1257.8+3228_daily_bin90.fits scfile=/scratch/kocevski/42353/ft2_4FGL_J1257.8+3228_daily_bin90.fits outfile=/scratch/kocevski/42353/cmap_262656001_262915201_4FGL_J1257.8+3228_daily_bin90.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42353/ft1_filtered_4FGL_J1257.8+3228_daily_bin90.fits scfile=/scratch/kocevski/42353/ft2_4FGL_J1257.8+3228_daily_bin90.fits outfile=/scratch/kocevski/42353/cmap_HighResolution_262656001_262915201_4FGL_J1257.8+3228_daily_bin90.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.63
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0275       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10779E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1078       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4189       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53870E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0856       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.613       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5706       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.364       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.441       1.0000         .10000E-03   10000.    
    21 'norm      '    .18280E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.9973       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.255       1.0000         .10000E-03   10000.    
    27 'Prefactor '    41.358       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.8845       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1405       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .52700       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=   4665.197     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4380 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.016        .73231E-06** at limit **
   2  norm          5.0276        3.8963       -.78314E-07   -.77155E-04
   3  Prefactor     .10002E-03    8.5274       -.32770E-05** at limit **
   4  Prefactor     2.1079        2.5060       -.16412E-07   -.10025E-03
   5  Prefactor     2.5707        2.1789       -.33837E-07   -.61901E-04
   6  Prefactor     .10000E-03    3.4368       -.26240E-07** at limit **
   7  norm          .10000E-03    1.8405       -.31968E-07** at limit **
   8  Prefactor     .10000E-03    2.8115       -.22604E-07** at limit **
   9  Prefactor     .10000E-03    11.133       -.14292E-06** at limit **
  10  Prefactor     .10000E-03    17.047        .40706E-07** at limit **
  11  Prefactor     4.4192        6.0176       -.12673E-05    .91533E-04
  12  Prefactor     .62918E-01    25.169       -.14378E-04    .65205E-04
  13  norm          2.0820        5.1102       -.63186E-06    .19079E-03
  14  Prefactor     .10000E-03    90.938        .16935E-05** at limit **
  15  Prefactor     31.617        38.437        .34722E-06    .20843E-03
  16  norm          7.5694        4.9370        .53362E-07    .13024E-04
  17  Prefactor     .10000E-03    25.178        .88033E-06** at limit **
  18  norm          12.364        7.1515       -.42653E-07   -.87382E-04
  19  norm          .10000E-03    6.2506        .41957E-08** at limit **
  20  norm          14.433        6.8374        .43562E-06    .31487E-02
  21  norm          .10000E-03    72.867       -.27829E-04** at limit **
  22  norm          5.5096        17.309       -.15658E-05    .16191E-04
  23  Prefactor     .10000E-03    2.6390        .51500E-06** at limit **
  24  Prefactor     5.9890        15.482        .10757E-05    .10606E-03
  25  norm          .10000E-03    2.6935       -.14065E-07** at limit **
  26  Prefactor     49.211        72.532       -.41570E-05    .72622E-04
  27  Prefactor     41.352        23.855        .38328E-07    .65266E-04
  28  Prefactor     .10000E-03    22.795       -.58505E-06** at limit **
  29  Prefactor     .10000E-03    19.894       -.10803E-05** at limit **
  30  Prefactor     6.8836        4.8780       -.36094E-07    .24759E-04
  31  Normalizat    1.1410        .19934       -.36261E-06    .34700E-04
  32  Prefactor     .52655        .22998        .14037E-05   -.54378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.02758
  Prefactor  = 0.000100023
  Prefactor  = 2.10792
  Prefactor  = 2.57065
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.41922
  Prefactor  = 0.0629177
  norm       = 2.08201
  Prefactor  = 0.000100001
  Prefactor  = 31.6174
  norm       = 7.56945
  Prefactor  = 0.000100001
  norm       = 12.3637
  norm       = 0.0001
  norm       = 14.4331
  norm       = 0.000100004
  norm       = 5.5096
  Prefactor  = 0.0001
  Prefactor  = 5.98899
  norm       = 0.0001
  Prefactor  = 49.2112
  Prefactor  = 41.3516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.88362
  Normalizat = 1.141
  Prefactor  = 0.526546
 **********
 **   18 **HESSE 
 **********

 FCN=   4665.197     FROM HESSE     STATUS=OK           673 CALLS     5053 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0276        3.9104        .10148E-03   -1.5259    
   3  Prefactor     .10002E-03    28.289        .36319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1079        2.5017        .10289E-03   -1.5418    
   5  Prefactor     2.5707        2.1658        .86719E-04   -1.5387    
   6  Prefactor     .10000E-03    3.4621        .12364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8624        .90476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8150        .11185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4192        6.0134        .93918E-03   -1.5287    
  12  Prefactor     .62918E-01    5.4456        .50843E-01   -1.5658    
  13  norm          2.0820        5.0197        .20453E-03   -1.5419    
  14  Prefactor     .10000E-03    91.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.617        38.122        .71264E-04   -1.4583    
  16  norm          7.5694        4.9331        .11596E-03   -1.5158    
  17  Prefactor     .10000E-03    25.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.364        7.1402        .11392E-03   -1.5005    
  19  norm          .10000E-03    6.2557        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.433        7.3624        .91629E-04   -1.4948    
  21  norm          .10000E-03    14.803        .55478E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5096        17.288        .85593E-03   -1.5238    
  23  Prefactor     .10000E-03    2.6664        .10782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.9890        15.363        .16396E-03   -1.5218    
  25  norm          .10000E-03    2.7035        .10947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.211        72.183        .57139E-04   -1.4304    
  27  Prefactor     41.352        23.860        .62332E-04   -1.4421    
  28  Prefactor     .10000E-03    22.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    19.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.8836        4.8778        .12268E-03   -1.5183    
  31  Normalizat    1.1410        .22653        .20965E-03   -.88446    
  32  Prefactor     .52655        .25841        .35178E-03   -1.1077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40758e-09
Minuit parameter uncertainties:
  1  9.42094e-05
  2  3.9106
  3  0.00159996
  4  2.50179
  5  2.16587
  6  5.61517e-06
  7  2.74136e-06
  8  1.30657e-07
  9  3.61636e-06
  10  6.56807e-06
  11  6.01417
  12  1.16986
  13  5.02074
  14  0.000558699
  15  38.1511
  16  4.93334
  17  0.000246792
  18  7.14071
  19  4.07432e-06
  20  7.3629
  21  0.000462362
  22  17.3034
  23  4.40407e-05
  24  15.373
  25  2.12547e-06
  26  72.3116
  27  23.8659
  28  5.43522e-05
  29  0.000172796
  30  4.87805
  31  0.226725
  32  0.258986
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.082e+00  5.021e+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:  5.265e-01  2.590e-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.141e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/42353/likelihoodResults_262656001_262915201_4FGL_J1257.8+3228_daily_bin90.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4665.19579362
delta logL = 0.000713331193765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4665.19572164
delta logL = 0.000785313221058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0314       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2862       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52752       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.

 FCN=   4665.196     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      267 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0318        4.8234        .20134E-03   -.75212E-04
   2  alpha         2.2857        1.6351        .33195E-01   -.21172E-05
   3  Normalizat    1.1400        .21564        .20972E-03   -.20479E-03
   4  Prefactor     .52749        .25372        .35149E-03   -.11204E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0318
  alpha      = 2.28569
  Normalizat = 1.14
  Prefactor  = 0.527488
 **********
 **   18 **HESSE 
 **********

 FCN=   4665.196     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0318        4.6147        .80535E-05   -1.5423    
   2  alpha         2.2857        1.5769        .13278E-02   -.85828E-01
   3  Normalizat    1.1400        .21554        .41945E-04   -.88478    
   4  Prefactor     .52749        .25355        .14059E-04   -1.1073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49732e-11
Minuit parameter uncertainties:
  1  4.61546
  2  1.70749
  3  0.215708
  4  0.254093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42353': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4665.19572143
delta logL = 0.000785523818195

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.032e+00  4.615e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.286e+00  1.707e+00  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:  5.275e-01  2.541e-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.140e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/42353/cmap_HighResolution_262656001_262915201_4FGL_J1257.8+3228_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-06 12:09:55.626928', job_id='42353', GAL2='0.53', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630955395.63', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='7.86e-04', ts2='0.26', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='90' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:09:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 42353: <4FGL_J1257.8+3228_daily_bin90> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin90> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:55:44 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:55:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:55:46 2021
Terminated at Mon Sep  6 12:09:56 2021
Results reported at Mon Sep  6 12:09:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin90 194.473 32.4721 262656001 262915201 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 :                                   775.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            852 sec.

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

