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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin370
RA = 194.473, Dec = 32.4721
tmin = 335232001, tmax = 335491201
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='42810', job_status='RUN', time_executed='2021-09-06 11:56:50.570849', time_epoch_executed='1630954610.57' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42810/ft1_4FGL_J1257.8+3228_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42810/ft2_4FGL_J1257.8+3228_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42810/ft1_4FGL_J1257.8+3228_daily_bin370.fits outfile=/scratch/kocevski/42810/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin370.fits ra=194.473 dec=32.4721 rad=12.0 tmin=335232001.0 tmax=335491201.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 4.62
user 3.48
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42810/ft1_filtered_4FGL_J1257.8+3228_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/42810/ft2_4FGL_J1257.8+3228_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/42810/ltcube_335232001_335491201_4FGL_J1257.8+3228_daily_bin370.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/42810/ft2_4FGL_J1257.8+3228_daily_bin370.fits
.....................!
real 12.02
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42810/ft1_filtered_4FGL_J1257.8+3228_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/42810/ft2_4FGL_J1257.8+3228_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/42810/ltcube_335232001_335491201_4FGL_J1257.8+3228_daily_bin370.fits outfile=/scratch/kocevski/42810/expmap_335232001_335491201_4FGL_J1257.8+3228_daily_bin370.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/42810/ltcube_335232001_335491201_4FGL_J1257.8+3228_daily_bin370.fits
.....................!
real 194.44
user 188.64
sys 4.72

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/42810/ft1_filtered_4FGL_J1257.8+3228_daily_bin370.fits scfile=/scratch/kocevski/42810/ft2_4FGL_J1257.8+3228_daily_bin370.fits outfile=/scratch/kocevski/42810/cmap_335232001_335491201_4FGL_J1257.8+3228_daily_bin370.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42810/ft1_filtered_4FGL_J1257.8+3228_daily_bin370.fits scfile=/scratch/kocevski/42810/ft2_4FGL_J1257.8+3228_daily_bin370.fits outfile=/scratch/kocevski/42810/cmap_HighResolution_335232001_335491201_4FGL_J1257.8+3228_daily_bin370.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/42810/ft1_filtered_4FGL_J1257.8+3228_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/42810/ft2_4FGL_J1257.8+3228_daily_bin370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/42810/Model_4FGL_J1257.8+3228_daily_bin370.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/42810/ft1_filtered_4FGL_J1257.8+3228_daily_bin370.fits.....................!
real 45.87
user 43.22
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53471E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9550       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5293       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0510       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.129       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.1641       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4221       1.0000         .10000E-03   10000.    
    22 'norm      '    8.0034       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .95971       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.149       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10573E-01   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1435       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89434       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=   5195.867     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     3814 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10259E-03    146.06       -.61212E-04** at limit **
   2  norm          2.9547        2.8205        .47354E-07    .53395E-03
   3  Prefactor     .10000E-03    3.8101       -.13583E-07** at limit **
   4  Prefactor     .10000E-03    1.9930       -.22181E-06** at limit **
   5  Prefactor     .10000E-03    1.4298        .13359E-06** at limit **
   6  Prefactor     1.5197        6.7648       -.11933E-05   -.23577E-03
   7  norm          3.0597        6.5874        .47366E-06    .23583E-03
   8  Prefactor     25.078        12.591       -.10994E-07    .22565E-03
   9  Prefactor     .10000E-03    6.2091        .34266E-07** at limit **
  10  Prefactor     .10000E-03    27.058       -.41823E-06** at limit **
  11  Prefactor     3.7478        8.2671       -.35499E-06   -.12824E-03
  12  Prefactor     .10000E-03    3.1677        .65016E-07** at limit **
  13  norm          .10000E-03    3.6502        .41579E-07** at limit **
  14  Prefactor     .10000E-03    19.444        .89913E-07** at limit **
  15  Prefactor     11.123        22.334       -.79443E-06   -.11086E-04
  16  norm          3.2845        5.4174       -.12220E-06   -.11774E-03
  17  Prefactor     .10000E-03    7.1155       -.17985E-06** at limit **
  18  norm          .10000E-03    1.3529       -.70312E-08** at limit **
  19  norm          .10000E-03    5.2132        .60346E-09** at limit **
  20  norm          7.1650        5.2152        .50067E-06   -.33151E-03
  21  norm          3.4207        6.6708       -.18250E-05   -.21375E-03
  22  norm          8.0051        18.116        .59691E-06   -.73395E-04
  23  Prefactor     .10000E-03    .89718       -.87802E-07** at limit **
  24  Prefactor     .10000E-03    3.3892       -.10263E-06** at limit **
  25  norm          .95756        6.7939       -.69508E-05   -.79327E-03
  26  Prefactor     .10000E-03    44.370        .22617E-05** at limit **
  27  Prefactor     .10000E-03    7.2531        .33898E-07** at limit **
  28  Prefactor     10.150        22.355       -.18234E-06   -.85136E-04
  29  Prefactor     .10000E-03    53.730       -.30609E-05** at limit **
  30  Prefactor     .22509E-01    62.685       -.41418E-04    .47698E-03
  31  Normalizat    1.1434        .18837        .14976E-05    .23428E-03
  32  Prefactor     .89446        .22052       -.24096E-06   -.20658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102588
  norm       = 2.95467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.51967
  norm       = 3.05968
  Prefactor  = 25.0778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74783
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1228
  norm       = 3.28447
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.165
  norm       = 3.42065
  norm       = 8.00509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.957558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1497
  Prefactor  = 0.0001
  Prefactor  = 0.0225088
  Normalizat = 1.14335
  Prefactor  = 0.894459
 **********
 **   18 **HESSE 
 **********

 FCN=   5195.867     FROM HESSE     STATUS=OK           675 CALLS     4489 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10259E-03    29.779        .11920       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9547        2.7425        .11101E-03   -1.5364    
   3  Prefactor     .10000E-03    3.8221        .13738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0470        .19642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7857        .15956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5197        6.2058        .28856E-03   -1.5461    
   7  norm          3.0597        6.2914        .20530E-03   -1.5358    
   8  Prefactor     25.078        12.409        .79991E-04   -1.4706    
   9  Prefactor     .10000E-03    6.2104        .17543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7478        8.2366        .20856E-03   -1.5321    
  12  Prefactor     .10000E-03    3.2051        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7133        .13415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.123        22.326        .12009E-03   -1.5041    
  16  norm          3.2845        5.3727        .19864E-03   -1.5345    
  17  Prefactor     .10000E-03    7.1291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3547        .81877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.2186        .16074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.1650        5.2160        .10412E-03   -1.5173    
  21  norm          3.4207        6.6643        .98644E-03   -1.5338    
  22  norm          8.0051        18.182        .14173E-03   -1.5142    
  23  Prefactor     .10000E-03    .90127        .66663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.3917        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .95756        20.459        .32281E-02   -1.5512    
  26  Prefactor     .10000E-03    44.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.2670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.150        22.332        .12578E-03   -1.5071    
  29  Prefactor     .10000E-03    53.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .22509E-01    3.7924        .41634E-01   -1.5678    
  31  Normalizat    1.1434        .22137        .22258E-03   -.88372    
  32  Prefactor     .89446        .25904        .29656E-03   -.96335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88548e-09
Minuit parameter uncertainties:
  1  0.0175656
  2  2.74257
  3  9.25096e-07
  4  2.83502e-05
  5  5.31393e-05
  6  6.14283
  7  6.2928
  8  12.4105
  9  4.73678e-06
  10  5.84322e-05
  11  8.23906
  12  1.09193e-05
  13  5.82145e-06
  14  1.32716e-05
  15  22.3429
  16  5.37347
  17  3.47947e-06
  18  5.49546e-07
  19  1.2541e-06
  20  5.21638
  21  6.66573
  22  18.1941
  23  7.8051e-06
  24  1.66455e-05
  25  8.85515
  26  1.60235e-05
  27  3.61557e-05
  28  22.3505
  29  0.000225121
  30  0.583071
  31  0.221555
  32  0.259398
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  5.821e-06  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:  8.945e-01  2.594e-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.143e+00  2.216e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/42810/likelihoodResults_335232001_335491201_4FGL_J1257.8+3228_daily_bin370.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) = 5195.86806136
delta logL = -0.00128247851535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5195.86677759
delta logL = 1.29170712171e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2683       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89443       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=   5195.384     FROM MIGRAD    STATUS=FAILED       238 CALLS      386 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24522        9.7522        .30013E-02    .39577E-01
   2  alpha         4.6053        3.4677        .50000       -.12249E-04
   3  Normalizat    1.0770        .69444E-01    .22258E-02   -.30750E-03
   4  Prefactor     .94380        .82112E-01    .29656E-03   -.39525E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5195.384     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      465 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24522        9.7522        .13539E-03    .39577E-01
   2  alpha         4.6053        3.4677        .95553E-02   -.12249E-04
   3  Normalizat    1.0770        .69444E-01    .10388E-03   -.30750E-03
   4  Prefactor     .94380        .82112E-01    .15661E-03   -.39525E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5195.384     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      498 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24520        14.355        .18627E-03    .12160E-02
   2  alpha         4.6053        2.8435        .43111E-01    .20642E-04
   3  Normalizat    1.0770        .17261        .89031E-04   -.13267E-03
   4  Prefactor     .94380        .20407        .59312E-04   -.31461E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.245205
  alpha      = 4.60533
  Normalizat = 1.07702
  Prefactor  = 0.943803
 **********
 **   18 **HESSE 
 **********

 FCN=   5195.384     FROM HESSE     STATUS=OK            27 CALLS      525 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24520        .89712        .74507E-05   -1.5609    
   2  alpha         4.6053        4.2524        .17244E-02    1.0012    
   3  Normalizat    1.0770        .22358        .17806E-04   -.90493    
   4  Prefactor     .94380        .26131        .11862E-04   -.94627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80318e-10
Minuit parameter uncertainties:
  1  0.897168
  2  2.15082
  3  0.223779
  4  0.261657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42810': 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) = 5195.3838463
delta logL = 0.482932579796

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.452e-01  8.972e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.605e+00  2.151e+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:  9.438e-01  2.617e-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.077e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 194.473 32.472
Photon Index (Free Index): 4.61 +/- 2.15
Photon Flux (Free Index): 5.37e-08 +/- 6.12e-08
Energy Flux (Free Index): 7.65e-06 +/- 8.61e-06

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/42810/cmap_HighResolution_335232001_335491201_4FGL_J1257.8+3228_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', comment='SUCCESS', energy_flux2='7.65e-06', dlogl='4.83e-01', photon_flux2='5.37e-08', job_status='DONE', time_completed='2021-09-06 12:10:21.466579', photon_index_error2='2.15', photon_index2='4.61', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='6.05e-08', energy_flux_error2='8.61e-06', EG='1.14', time_epoch_completed='1630955421.47', return_code='0', job_id='42810', GAL2='0.94', EG2='1.08', return_code2='0', photon_flux_error2='6.12e-08', ts2='1.05', photon_index='2.22' WHERE bin_id='370' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:10:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 42810: <4FGL_J1257.8+3228_daily_bin370> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin370> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:56:14 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:56:15 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:56:15 2021
Terminated at Mon Sep  6 12:10:22 2021
Results reported at Mon Sep  6 12:10:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin370 194.473 32.4721 335232001 335491201 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 :                                   795.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

