/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 196 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin73
RA = 194.473, Dec = 32.4721
tmin = 258249601, tmax = 258508801
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='41100', job_status='RUN', time_executed='2021-09-06 11:55:30.693709', time_epoch_executed='1630954530.69' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41100

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41100/ft1_4FGL_J1257.8+3228_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41100/ft2_4FGL_J1257.8+3228_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41100/ft1_4FGL_J1257.8+3228_daily_bin73.fits outfile=/scratch/kocevski/41100/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin73.fits ra=194.473 dec=32.4721 rad=12.0 tmin=258249601.0 tmax=258508801.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 2.27
user 1.00
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41100/ft1_filtered_4FGL_J1257.8+3228_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/41100/ft2_4FGL_J1257.8+3228_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/41100/ltcube_258249601_258508801_4FGL_J1257.8+3228_daily_bin73.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/41100/ft2_4FGL_J1257.8+3228_daily_bin73.fits
.....................!
real 9.84
user 9.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41100/ft1_filtered_4FGL_J1257.8+3228_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/41100/ft2_4FGL_J1257.8+3228_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/41100/ltcube_258249601_258508801_4FGL_J1257.8+3228_daily_bin73.fits outfile=/scratch/kocevski/41100/expmap_258249601_258508801_4FGL_J1257.8+3228_daily_bin73.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/41100/ltcube_258249601_258508801_4FGL_J1257.8+3228_daily_bin73.fits
.....................!
real 189.92
user 184.76
sys 3.98

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/41100/ft1_filtered_4FGL_J1257.8+3228_daily_bin73.fits scfile=/scratch/kocevski/41100/ft2_4FGL_J1257.8+3228_daily_bin73.fits outfile=/scratch/kocevski/41100/cmap_258249601_258508801_4FGL_J1257.8+3228_daily_bin73.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.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41100/ft1_filtered_4FGL_J1257.8+3228_daily_bin73.fits scfile=/scratch/kocevski/41100/ft2_4FGL_J1257.8+3228_daily_bin73.fits outfile=/scratch/kocevski/41100/cmap_HighResolution_258249601_258508801_4FGL_J1257.8+3228_daily_bin73.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.52
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5069       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79150E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.233       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40834E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5678       1.0000         .10000E-03   10000.    
    19 'norm      '    11.328       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8149       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    30.733       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.588       1.0000         .10000E-03   10000.    
    25 'norm      '    15.348       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .18804E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.6328       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1290       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=   3416.623     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     3724 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.718        .95544E-07** at limit **
   2  norm          5.5070        3.5952       -.31360E-07    .18465E-03
   3  Prefactor     .10000E-03    5.0012       -.76011E-07** at limit **
   4  Prefactor     .10000E-03    1.7888        .37701E-07** at limit **
   5  Prefactor     .10004E-03    1.8970       -.40927E-06** at limit **
   6  Prefactor     .10000E-03    2.4608        .94017E-08** at limit **
   7  norm          .10000E-03    1.3667       -.15821E-08** at limit **
   8  Prefactor     .10000E-03    6.5687        .23692E-07** at limit **
   9  Prefactor     .10000E-03    13.507        .15852E-06** at limit **
  10  Prefactor     .10000E-03    56.056        .76026E-06** at limit **
  11  Prefactor     7.1892        12.053        .35179E-05   -.66355E-04
  12  Prefactor     .10000E-03    5.1700       -.15912E-07** at limit **
  13  norm          5.8985        5.8677        .21612E-06    .30054E-04
  14  Prefactor     .10000E-03    72.443       -.13886E-06** at limit **
  15  Prefactor     12.072        38.280       -.42184E-05   -.11344E-03
  16  norm          .10000E-03    2.2378       -.45589E-07** at limit **
  17  Prefactor     .10000E-03    118.60        .10734E-05** at limit **
  18  norm          4.5761        7.9164        .83261E-06    .54837E-04
  19  norm          11.330        18.575        .85088E-06   -.11542E-04
  20  norm          3.8170        4.7933        .32280E-06   -.13668E-04
  21  norm          .10000E-03    4.8216        .24888E-06** at limit **
  22  norm          30.726        29.693       -.41127E-07   -.22998E-05
  23  Prefactor     .10000E-03    4.6027       -.27704E-06** at limit **
  24  Prefactor     13.594        14.244        .64502E-07   -.14818E-04
  25  norm          15.345        10.838       -.10245E-06   -.31839E-04
  26  Prefactor     .10002E-03    220.89        .92385E-05** at limit **
  27  Prefactor     .10000E-03    8.7537        .62211E-08** at limit **
  28  Prefactor     .10000E-03    17.564       -.13099E-07** at limit **
  29  Prefactor     .10000E-03    64.856       -.11337E-05** at limit **
  30  Prefactor     2.6288        7.7126        .55265E-06   -.60762E-04
  31  Normalizat    1.0517        .23250        .75012E-06    .66337E-05
  32  Prefactor     1.1282        .28043       -.18726E-05    .60388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.50703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.18917
  Prefactor  = 0.0001
  norm       = 5.89854
  Prefactor  = 0.0001
  Prefactor  = 12.0716
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.57613
  norm       = 11.3295
  norm       = 3.81699
  norm       = 0.0001
  norm       = 30.726
  Prefactor  = 0.0001
  Prefactor  = 13.5945
  norm       = 15.3446
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.6288
  Normalizat = 1.05169
  Prefactor  = 1.12822
 **********
 **   18 **HESSE 
 **********

 FCN=   3416.623     FROM HESSE     STATUS=OK           655 CALLS     4379 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5070        3.5463        .85584E-04   -1.5239    
   3  Prefactor     .10000E-03    5.0267        .12767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8179        .76185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    17.466        .14960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4646        .89551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3674        .66737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5788        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1892        12.317        .74787E-03   -1.5172    
  12  Prefactor     .10000E-03    5.1846        .12978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8985        5.8735        .13105E-03   -1.5222    
  14  Prefactor     .10000E-03    72.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.072        39.643        .11453E-03   -1.5013    
  16  norm          .10000E-03    2.2517        .85389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    122.77        .42508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5761        7.8879        .18835E-03   -1.5280    
  19  norm          11.330        18.595        .59516E-03   -1.5035    
  20  norm          3.8170        4.7640        .13026E-03   -1.5317    
  21  norm          .10000E-03    4.8275        .12503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          30.726        29.685        .72274E-04   -1.4599    
  23  Prefactor     .10000E-03    4.7796        .24382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.594        14.221        .10866E-03   -1.4970    
  25  norm          15.345        10.839        .10223E-03   -1.4924    
  26  Prefactor     .10002E-03    228.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.7646        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    65.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.6288        7.7381        .25131E-03   -1.5384    
  31  Normalizat    1.0517        .26851        .23679E-03   -.91318    
  32  Prefactor     1.1282        .32516        .28326E-03   -.88570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79027e-09
Minuit parameter uncertainties:
  1  9.19717e-06
  2  3.54645
  3  5.56336e-06
  4  4.27839e-06
  5  0.00175322
  6  2.84462e-07
  7  7.41711e-08
  8  3.63949e-06
  9  2.26851e-05
  10  0.000207963
  11  12.3213
  12  7.65001e-06
  13  5.87405
  14  5.20434e-05
  15  39.73
  16  5.34162e-06
  17  0.000495288
  18  7.88969
  19  18.6042
  20  4.76446
  21  7.11423e-06
  22  29.699
  23  9.51592e-06
  24  14.2242
  25  10.8401
  26  0.00384695
  27  1.19079e-06
  28  3.38213e-06
  29  0.000288403
  30  7.74107
  31  0.268859
  32  0.325734
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.128e+00  3.257e-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.052e+00  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.36e-05

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) = 3416.27934693
delta logL = 0.343253744088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3416.24500996
delta logL = 0.377590710243

Fit tolerance = 1e-08

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

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

 FCN=   3416.245     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4322        4.5053        .47837E-02    .14388E-03
   2  alpha         1.4067        .60395        .38140       -.47691E-04
   3  Normalizat    1.0751        .22195        .39119E-01    .40827E-04
   4  Prefactor     1.1143        .27467        .64387E-01    .54396E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.43216
  alpha      = 1.40675
  Normalizat = 1.07509
  Prefactor  = 1.11425
 **********
 **   18 **HESSE 
 **********

 FCN=   3416.245     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4322        5.4011        .12010E-03   -1.5287    
   2  alpha         1.4067        .79205        .15251E-01   -.45260    
   3  Normalizat    1.0751        .25864        .23454E-03   -.90556    
   4  Prefactor     1.1143        .31997        .28480E-03   -.89012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36944e-11
Minuit parameter uncertainties:
  1  5.40168
  2  0.809424
  3  0.258948
  4  0.320528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41100': 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) = 3416.24500938
delta logL = 0.377591290355

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  4.432e+00  5.402e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.407e+00  8.094e-01  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:  1.114e+00  3.205e-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.075e+00  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.21
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.41 +/- 0.81
Photon Flux (Free Index): 1.39e-08 +/- 1.87e-08
Energy Flux (Free Index): 2.62e-05 +/- 3.96e-05

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/41100/cmap_HighResolution_258249601_258508801_4FGL_J1257.8+3228_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='2.62e-05', photon_flux_error='3.44e-08', dlogl='3.78e-01', energy_flux='1.37e-05', photon_flux2='1.39e-08', job_status='DONE', time_completed='2021-09-06 12:04:30.798735', photon_index_error2='0.81', photon_index2='1.41', ts='4.48', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='3.96e-05', EG='1.05', time_epoch_completed='1630955070.8', return_code='0', job_id='41100', GAL2='1.11', EG2='1.08', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='1.87e-08', ts2='5.21', photon_index='2.22' WHERE bin_id='73' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:04:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 41100: <4FGL_J1257.8+3228_daily_bin73> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin73> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 11:51:46 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:51:47 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:51:47 2021
Terminated at Mon Sep  6 12:04:31 2021
Results reported at Mon Sep  6 12:04:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin73 194.473 32.4721 258249601 258508801 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 :                                   537.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            765 sec.

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

