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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1344
RA = 194.473, Dec = 32.4721
tmin = 587692801, tmax = 587952001
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='49575', job_status='RUN', time_executed='2021-09-06 12:17:03.595501', time_epoch_executed='1630955823.6' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49575/ft1_4FGL_J1257.8+3228_daily_bin1344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49575/ft2_4FGL_J1257.8+3228_daily_bin1344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49575/ft1_4FGL_J1257.8+3228_daily_bin1344.fits outfile=/scratch/kocevski/49575/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1344.fits ra=194.473 dec=32.4721 rad=12.0 tmin=587692801.0 tmax=587952001.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.61
user 3.21
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49575/ft1_filtered_4FGL_J1257.8+3228_daily_bin1344.fits evtable="EVENTS" scfile=/scratch/kocevski/49575/ft2_4FGL_J1257.8+3228_daily_bin1344.fits sctable="SC_DATA" expcube=/scratch/kocevski/49575/ltcube_587692801_587952001_4FGL_J1257.8+3228_daily_bin1344.fits outfile=/scratch/kocevski/49575/expmap_587692801_587952001_4FGL_J1257.8+3228_daily_bin1344.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/49575/ltcube_587692801_587952001_4FGL_J1257.8+3228_daily_bin1344.fits
.....................!
real 191.58
user 186.21
sys 4.93

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/49575/ft1_filtered_4FGL_J1257.8+3228_daily_bin1344.fits scfile=/scratch/kocevski/49575/ft2_4FGL_J1257.8+3228_daily_bin1344.fits outfile=/scratch/kocevski/49575/cmap_587692801_587952001_4FGL_J1257.8+3228_daily_bin1344.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/49575/ft1_filtered_4FGL_J1257.8+3228_daily_bin1344.fits scfile=/scratch/kocevski/49575/ft2_4FGL_J1257.8+3228_daily_bin1344.fits outfile=/scratch/kocevski/49575/cmap_HighResolution_587692801_587952001_4FGL_J1257.8+3228_daily_bin1344.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15214E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    10.863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12273E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5859       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .38716E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6943       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22655E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    123.68       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91695       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.201       1.0000         .10000E-03   10000.    
    16 'norm      '    .70168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .48804E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.953       1.0000         .10000E-03   10000.    
    21 'norm      '    .17206E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .35117E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17997E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.439       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .23706E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .75166E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .14680E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3129       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .70281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6226.782     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     3214 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.973       -.29034E-05** at limit **
   2  norm          10.869        4.0766       -.13819E-06   -.65000E-04
   3  Prefactor     .10000E-03    10.609        .25056E-05** at limit **
   4  Prefactor     2.8818        2.6107       -.36642E-06   -.70403E-04
   5  Prefactor     1.5876        2.2077       -.24828E-06    .18082E-04
   6  Prefactor     .10000E-03    2.2392       -.39409E-06** at limit **
   7  norm          .10000E-03    5.2871        .20675E-05** at limit **
   8  Prefactor     9.6571        1.5097        .15065E-06   -.34896E-02
   9  Prefactor     .10000E-03    9.4255        .81031E-06** at limit **
  10  Prefactor     130.14        91.983        .20512E-05   -.14005E-03
  11  Prefactor     .18264        .91623       -.27890E-06   -.47688E-02
  12  Prefactor     .10000E-03    1.7355        .24486E-06** at limit **
  13  norm          .10000E-03    2.7533       -.10600E-05** at limit **
  14  Prefactor     .10053E-03    386.36        .77068E-05** at limit **
  15  Prefactor     26.769        22.497        .48286E-07   -.26098E-03
  16  norm          .70042        6.7912       -.28278E-05    .12026E-03
  17  Prefactor     .10000E-03    7.6642        .36643E-05** at limit **
  18  norm          .10000E-03    1.3314       -.39052E-06** at limit **
  19  norm          .10000E-03    5.5406        .34170E-06** at limit **
  20  norm          28.939        1.8687       -.63214E-07   -.30288E-02
  21  norm          .10000E-03    19.981        .29285E-05** at limit **
  22  norm          .10000E-03    11.711        .10911E-05** at limit **
  23  Prefactor     .10000E-03    2.3306        .15989E-05** at limit **
  24  Prefactor     .10000E-03    6.7192       -.12440E-05** at limit **
  25  norm          .10000E-03    2.6259        .17637E-06** at limit **
  26  Prefactor     34.268        45.457       -.46773E-05    .83269E-03
  27  Prefactor     .10000E-03    5.8307       -.97054E-06** at limit **
  28  Prefactor     .10000E-03    7.0920       -.36528E-07** at limit **
  29  Prefactor     .10000E-03    39.066       -.50792E-06** at limit **
  30  Prefactor     .10000E-03    1.4321        .10644E-05** at limit **
  31  Normalizat    1.3111        .20486        .22608E-05    .28562E-03
  32  Prefactor     .70335        .23931        .29992E-05    .18222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.8685
  Prefactor  = 0.000100002
  Prefactor  = 2.88177
  Prefactor  = 1.58762
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.6571
  Prefactor  = 0.0001
  Prefactor  = 130.136
  Prefactor  = 0.182635
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010053
  Prefactor  = 26.7687
  norm       = 0.700422
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 28.9394
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.2685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.31111
  Prefactor  = 0.703353
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.782     FROM HESSE     STATUS=OK           735 CALLS     3949 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.956        .10230E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.869        4.0733        .30390E-02   -1.5048    
   3  Prefactor     .10000E-03    10.667        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8818        2.6162        .59847E-02   -1.5368    
   5  Prefactor     1.5876        2.2493        .84273E-02   -1.5456    
   6  Prefactor     .10000E-03    2.2335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5257        .44419E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6571        7.2629        .32176E-02   -1.5086    
   9  Prefactor     .10000E-03    9.4039        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     130.14        91.695        .90481E-03   -1.3421    
  11  Prefactor     .18264        5.5171        .98787E-01   -1.5623    
  12  Prefactor     .10000E-03    1.7342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10053E-03    371.64        .12869E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.769        22.504        .19203E-02   -1.4673    
  16  norm          .70042        3.7597        .45107E-01   -1.5541    
  17  Prefactor     .10000E-03    7.6783        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.5382        .10585E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.939        6.4838        .18614E-02   -1.4632    
  21  norm          .10000E-03    19.488        .10180E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    11.738        .10661E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3475        .35953E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.6199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.268        45.806        .17588E-02   -1.4537    
  27  Prefactor     .10000E-03    5.8227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.0856        .10469E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    39.082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.4272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3111        .17559        .49637E-01   -.83235    
  32  Prefactor     .70335        .20544        .77835E-01   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77161e-08
Minuit parameter uncertainties:
  1  0.000140025
  2  4.07342
  3  0.000322278
  4  2.61635
  5  2.24945
  6  3.24927e-06
  7  1.72786e-05
  8  7.26359
  9  5.98613e-05
  10  91.795
  11  2.00726
  12  2.3662e-06
  13  1.19098e-05
  14  0.0282488
  15  22.5116
  16  3.24561
  17  2.66841e-06
  18  2.17324e-06
  19  2.79292e-06
  20  6.484
  21  0.000144959
  22  0.000442764
  23  1.1377e-05
  24  6.81257e-06
  25  2.67378e-06
  26  45.8528
  27  1.22176e-05
  28  4.54613e-08
  29  0.000406169
  30  7.35665e-06
  31  0.175668
  32  0.205659
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.191e-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:  7.034e-01  2.057e-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.311e+00  1.757e-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: 5.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49575/likelihoodResults_587692801_587952001_4FGL_J1257.8+3228_daily_bin1344.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) = 6226.78400001
delta logL = -0.00173205333977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6226.78226613
delta logL = 1.82731128007e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5689       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70336       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=   6226.782     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      280 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3977        .26867E-03** at limit **
   2  alpha         2.7422        3.8279        .16469        .88707E-07
   3  Normalizat    1.3111        .20037        .21944E-03    .44078E-04
   4  Prefactor     .70335        .23862        .34460E-03    .42459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.74217
  Normalizat = 1.31111
  Prefactor  = 0.703354
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.782     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1785        .53734E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7422        3.3689        .65874E-02    .97019E-01
   3  Normalizat    1.3111        .20053        .43888E-04   -.83235    
   4  Prefactor     .70335        .23882        .13784E-04   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59387e-11
Minuit parameter uncertainties:
  1  9.1325e-06
  2  220.715
  3  0.200651
  4  0.239171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49575': 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) = 6226.78226541
delta logL = 2.54405040323e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  7.034e-01  2.392e-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.311e+00  2.007e-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/49575/cmap_HighResolution_587692801_587952001_4FGL_J1257.8+3228_daily_bin1344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='5.81e-08', time_completed='2021-09-06 12:31:25.545402', job_id='49575', GAL2='0.70', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630956685.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1344' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:31:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 49575: <4FGL_J1257.8+3228_daily_bin1344> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1344 194.473 32.4721 587692801 587952001 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 :                                   840.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

