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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin197
RA = 194.473, Dec = 32.4721
tmin = 290390401, tmax = 290649601
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='42528', job_status='RUN', time_executed='2021-09-06 11:56:21.135292', time_epoch_executed='1630954581.14' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42528/ft1_4FGL_J1257.8+3228_daily_bin197.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42528/ft2_4FGL_J1257.8+3228_daily_bin197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42528/ft1_4FGL_J1257.8+3228_daily_bin197.fits outfile=/scratch/kocevski/42528/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin197.fits ra=194.473 dec=32.4721 rad=12.0 tmin=290390401.0 tmax=290649601.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.54
user 3.25
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42528/ft1_filtered_4FGL_J1257.8+3228_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/42528/ft2_4FGL_J1257.8+3228_daily_bin197.fits sctable="SC_DATA" expcube=/scratch/kocevski/42528/ltcube_290390401_290649601_4FGL_J1257.8+3228_daily_bin197.fits outfile=/scratch/kocevski/42528/expmap_290390401_290649601_4FGL_J1257.8+3228_daily_bin197.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/42528/ltcube_290390401_290649601_4FGL_J1257.8+3228_daily_bin197.fits
.....................!
real 190.27
user 184.91
sys 4.22

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/42528/ft1_filtered_4FGL_J1257.8+3228_daily_bin197.fits scfile=/scratch/kocevski/42528/ft2_4FGL_J1257.8+3228_daily_bin197.fits outfile=/scratch/kocevski/42528/cmap_290390401_290649601_4FGL_J1257.8+3228_daily_bin197.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.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42528/ft1_filtered_4FGL_J1257.8+3228_daily_bin197.fits scfile=/scratch/kocevski/42528/ft2_4FGL_J1257.8+3228_daily_bin197.fits outfile=/scratch/kocevski/42528/cmap_HighResolution_290390401_290649601_4FGL_J1257.8+3228_daily_bin197.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.55
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.971       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.915       1.0000         .10000E-03   10000.    
     7 'norm      '    4.1252       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6995       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6886       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4966       1.0000         .10000E-03   10000.    
    18 'norm      '    .93863       1.0000         .10000E-03   10000.    
    19 'norm      '    .11975E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7521       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    31.604       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4534       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10013E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2258       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .59330       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=   5354.912     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4367 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.966        30.719       -.34327E-06   -.49879E-04
   2  norm          6.2612        2.8418       -.50199E-08   -.30936E-04
   3  Prefactor     2.6077        8.9124        .16210E-05    .93056E-04
   4  Prefactor     .10000E-03    1.1783        .71306E-09** at limit **
   5  Prefactor     4.6585        2.2452        .53316E-08   -.28283E-04
   6  Prefactor     10.915        8.5281        .33916E-07   -.21013E-06
   7  norm          4.1255        4.8278        .11886E-06   -.32369E-04
   8  Prefactor     7.0666        7.0315        .15748E-07   -.58301E-04
   9  Prefactor     10.654        10.652        .60497E-08    .88216E-05
  10  Prefactor     .10000E-03    34.188       -.21757E-06** at limit **
  11  Prefactor     .10000E-03    2.7466        .63916E-08** at limit **
  12  Prefactor     .10000E-03    3.1050        .63816E-07** at limit **
  13  norm          .10000E-03    1.8160       -.55026E-08** at limit **
  14  Prefactor     .10000E-03    91.051        .11215E-05** at limit **
  15  Prefactor     4.6982        14.805       -.13356E-06   -.43914E-04
  16  norm          2.6888        3.2032        .56647E-07   -.21550E-03
  17  Prefactor     1.4878        49.924       -.62602E-05   -.16171E-03
  18  norm          .93979        9.2509        .37374E-05   -.39198E-03
  19  norm          .10007E-03    12.096       -.79631E-06** at limit **
  20  norm          2.7524        3.0151        .58885E-07   -.17294E-03
  21  norm          .10000E-03    6.9766       -.43487E-07** at limit **
  22  norm          31.604        19.217       -.41184E-08   -.86897E-05
  23  Prefactor     5.4565        3.5885       -.17045E-06   -.26214E-03
  24  Prefactor     .10000E-03    27.979        .29525E-06** at limit **
  25  norm          .10000E-03    1.7845       -.13195E-09** at limit **
  26  Prefactor     .10000E-03    61.968        .10958E-05** at limit **
  27  Prefactor     .10000E-03    9.9754        .19461E-07** at limit **
  28  Prefactor     .10000E-03    56.278       -.64265E-06** at limit **
  29  Prefactor     .10003E-03    163.25       -.78348E-05** at limit **
  30  Prefactor     .10000E-03    2.4795        .44270E-08** at limit **
  31  Normalizat    1.2257        .17845       -.56287E-07    .71283E-04
  32  Prefactor     .59338        .21158       -.40469E-06    .41364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9657
  norm       = 6.26122
  Prefactor  = 2.60766
  Prefactor  = 0.0001
  Prefactor  = 4.65851
  Prefactor  = 10.915
  norm       = 4.12551
  Prefactor  = 7.06665
  Prefactor  = 10.6544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.69821
  norm       = 2.68884
  Prefactor  = 1.48784
  norm       = 0.939788
  norm       = 0.000100068
  norm       = 2.75244
  norm       = 0.0001
  norm       = 31.6044
  Prefactor  = 5.45652
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Normalizat = 1.22571
  Prefactor  = 0.593379
 **********
 **   18 **HESSE 
 **********

 FCN=   5354.912     FROM HESSE     STATUS=OK           659 CALLS     5026 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.966        30.816        .74435E-04   -1.4631    
   2  norm          6.2612        2.8259        .79742E-04   -1.5207    
   3  Prefactor     2.6077        8.7450        .25275E-03   -1.5385    
   4  Prefactor     .10000E-03    1.2026        .15426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6585        2.2441        .72933E-04   -1.5276    
   6  Prefactor     10.915        8.5106        .12127E-03   -1.5047    
   7  norm          4.1255        4.8083        .15650E-03   -1.5302    
   8  Prefactor     7.0666        7.0275        .15091E-03   -1.5176    
   9  Prefactor     10.654        10.650        .12275E-03   -1.5055    
  10  Prefactor     .10000E-03    34.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7602        .11843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1367        .12568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8378        .96191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    91.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6982        14.746        .18563E-03   -1.5274    
  16  norm          2.6888        3.1943        .13776E-03   -1.5380    
  17  Prefactor     1.4878        48.285        .35018E-03   -1.5464    
  18  norm          .93979        10.129        .36354E-03   -1.5514    
  19  norm          .10007E-03    59.679        .48507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7524        2.9557        .12364E-03   -1.5376    
  21  norm          .10000E-03    7.0772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          31.604        19.212        .71275E-04   -1.4583    
  23  Prefactor     5.4565        3.5651        .10295E-03   -1.5241    
  24  Prefactor     .10000E-03    28.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.7870        .95465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    62.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    57.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10003E-03    174.90        .41523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.5120        .11249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2257        .20359        .20265E-03   -.85812    
  32  Prefactor     .59338        .23875        .33901E-03   -1.0787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92312e-09
Minuit parameter uncertainties:
  1  30.8326
  2  2.82598
  3  8.74931
  4  3.41767e-07
  5  2.24419
  6  8.5115
  7  4.80877
  8  7.02837
  9  10.6522
  10  7.17081e-05
  11  1.42043e-06
  12  1.28552e-05
  13  9.82649e-07
  14  0.000704163
  15  14.7572
  16  3.19446
  17  16.966
  18  6.17167
  19  0.00402546
  20  2.95587
  21  6.25854e-06
  22  19.2162
  23  3.56519
  24  0.000100697
  25  3.11143e-07
  26  0.000518463
  27  7.47861e-06
  28  0.000207464
  29  0.00456368
  30  1.5168e-06
  31  0.203726
  32  0.239159
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  9.826e-07  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.934e-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.226e+00  2.037e-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: 4.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/42528/likelihoodResults_290390401_290649601_4FGL_J1257.8+3228_daily_bin197.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5354.91442207
delta logL = -0.00256231511867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5354.81160921
delta logL = 0.100250537226

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41671E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61373       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=   5354.812     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      331 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41672E-01    .10708        .30766E-03    .16835E-01
   2  alpha         5.0000        4.5511        .50000    ** at limit **
   3  Normalizat    1.1996        .20639        .20453E-03   -.34663E-04
   4  Prefactor     .61375        .24243        .33382E-03   -.11034E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0416724
  alpha      = 5
  Normalizat = 1.19963
  Prefactor  = 0.613753
 **********
 **   18 **HESSE 
 **********

 FCN=   5354.812     FROM HESSE     STATUS=OK            31 CALLS      362 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41672E-01    .10327        .61532E-04   -1.5667    
   2  alpha         5.0000        4.4757        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1996        .20680        .40905E-04   -.86614    
   4  Prefactor     .61375        .24277        .13353E-04   -1.0701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22471e-11
Minuit parameter uncertainties:
  1  0.103272
  2  1.03015e-06
  3  0.206945
  4  0.24319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42528': 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) = 5354.81160921
delta logL = 0.100250545017

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  4.167e-02  1.033e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  1.030e-06  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:  6.138e-01  2.432e-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.200e+00  2.069e-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/42528/cmap_HighResolution_290390401_290649601_4FGL_J1257.8+3228_daily_bin197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2021-09-06 12:10:38.424281', job_id='42528', GAL2='0.61', fit_tolerance='1e-08', EG2='1.20', EG='1.23', time_epoch_completed='1630955438.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='1.00e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='197' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:10:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 42528: <4FGL_J1257.8+3228_daily_bin197> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin197 194.473 32.4721 290390401 290649601 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 :                                   849.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

