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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1312
RA = 194.473, Dec = 32.4721
tmin = 579398401, tmax = 579657601
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='49524', job_status='RUN', time_executed='2021-09-06 12:16:21.995596', time_epoch_executed='1630955782.0' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49524/ft1_4FGL_J1257.8+3228_daily_bin1312.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49524/ft2_4FGL_J1257.8+3228_daily_bin1312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49524/ft1_4FGL_J1257.8+3228_daily_bin1312.fits outfile=/scratch/kocevski/49524/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1312.fits ra=194.473 dec=32.4721 rad=12.0 tmin=579398401.0 tmax=579657601.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.46
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49524/ft1_filtered_4FGL_J1257.8+3228_daily_bin1312.fits" evtable="EVENTS" scfile=/scratch/kocevski/49524/ft2_4FGL_J1257.8+3228_daily_bin1312.fits sctable="SC_DATA" outfile=/scratch/kocevski/49524/ltcube_579398401_579657601_4FGL_J1257.8+3228_daily_bin1312.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/49524/ft2_4FGL_J1257.8+3228_daily_bin1312.fits
.....................!
real 13.32
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49524/ft1_filtered_4FGL_J1257.8+3228_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/49524/ft2_4FGL_J1257.8+3228_daily_bin1312.fits sctable="SC_DATA" expcube=/scratch/kocevski/49524/ltcube_579398401_579657601_4FGL_J1257.8+3228_daily_bin1312.fits outfile=/scratch/kocevski/49524/expmap_579398401_579657601_4FGL_J1257.8+3228_daily_bin1312.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/49524/ltcube_579398401_579657601_4FGL_J1257.8+3228_daily_bin1312.fits
.....................!
real 195.35
user 185.30
sys 4.59

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/49524/ft1_filtered_4FGL_J1257.8+3228_daily_bin1312.fits scfile=/scratch/kocevski/49524/ft2_4FGL_J1257.8+3228_daily_bin1312.fits outfile=/scratch/kocevski/49524/cmap_579398401_579657601_4FGL_J1257.8+3228_daily_bin1312.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49524/ft1_filtered_4FGL_J1257.8+3228_daily_bin1312.fits scfile=/scratch/kocevski/49524/ft2_4FGL_J1257.8+3228_daily_bin1312.fits outfile=/scratch/kocevski/49524/cmap_HighResolution_579398401_579657601_4FGL_J1257.8+3228_daily_bin1312.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.54
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.0154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4573       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0656       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    148.30       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3489       1.0000         .10000E-03   10000.    
    13 'norm      '    .10542E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5881       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5023       1.0000         .10000E-03   10000.    
    19 'norm      '    21.629       1.0000         .10000E-03   10000.    
    20 'norm      '    7.7156       1.0000         .10000E-03   10000.    
    21 'norm      '    16.338       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4235       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6683       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12984E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    75.602       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90261       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .85537       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=   5603.116     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4299 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.594        .10812E-06** at limit **
   2  norm          7.0153        3.0969        .14652E-06   -.41024E-04
   3  Prefactor     3.4577        5.8206        .20499E-06   -.28563E-06
   4  Prefactor     5.4125        2.7844       -.13476E-06    .32659E-04
   5  Prefactor     1.8086        1.8122        .20294E-06   -.18116E-04
   6  Prefactor     .10000E-03    4.3742        .41538E-06** at limit **
   7  norm          13.838        5.3387       -.88208E-07   -.11921E-03
   8  Prefactor     8.0654        10.036        .52144E-06   -.47143E-05
   9  Prefactor     8.0647        10.015        .25667E-07    .19075E-05
  10  Prefactor     148.31        85.362       -.12821E-05   -.26625E-05
  11  Prefactor     .10000E-03    4.9701        .16549E-06** at limit **
  12  Prefactor     5.3489        4.8504       -.74606E-08    .15607E-04
  13  norm          .10000E-03    3.2241        .34177E-06** at limit **
  14  Prefactor     .10000E-03    23.213       -.70973E-07** at limit **
  15  Prefactor     .10000E-03    8.2999       -.27125E-06** at limit **
  16  norm          .10000E-03    1.6461        .35926E-07** at limit **
  17  Prefactor     6.5876        16.009        .18952E-07    .13166E-04
  18  norm          1.5021        4.5777        .13849E-06    .69824E-05
  19  norm          21.630        17.355        .14828E-06   -.36445E-06
  20  norm          7.7151        6.8945        .44554E-07    .50603E-04
  21  norm          16.338        14.039       -.21008E-07    .32877E-04
  22  norm          2.4226        22.212        .68873E-05   -.47567E-05
  23  Prefactor     .10000E-03    1.0534        .25034E-07** at limit **
  24  Prefactor     .10000E-03    4.5437       -.53148E-06** at limit **
  25  norm          4.6683        5.2503       -.17283E-06   -.28339E-05
  26  Prefactor     .10000E-03    109.16       -.48442E-07** at limit **
  27  Prefactor     .10000E-03    8.1072        .26596E-06** at limit **
  28  Prefactor     .10000E-03    4.4881       -.29713E-07** at limit **
  29  Prefactor     75.572        69.382        .37636E-05   -.23061E-05
  30  Prefactor     .10000E-03    1.6356       -.16362E-07** at limit **
  31  Normalizat    .90274        .16434       -.71867E-07   -.83719E-06
  32  Prefactor     .85521        .19842       -.62615E-06   -.15531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.01525
  Prefactor  = 3.45772
  Prefactor  = 5.41253
  Prefactor  = 1.80857
  Prefactor  = 0.0001
  norm       = 13.8378
  Prefactor  = 8.06545
  Prefactor  = 8.06472
  Prefactor  = 148.315
  Prefactor  = 0.0001
  Prefactor  = 5.34889
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.58765
  norm       = 1.50209
  norm       = 21.6303
  norm       = 7.71509
  norm       = 16.3383
  norm       = 2.42261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.6683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.5716
  Prefactor  = 0.0001
  Normalizat = 0.902742
  Prefactor  = 0.855209
 **********
 **   18 **HESSE 
 **********

 FCN=   5603.116     FROM HESSE     STATUS=OK           661 CALLS     4960 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.0153        3.1030        .80901E-04   -1.5178    
   3  Prefactor     3.4577        5.8119        .21750E-03   -1.5336    
   4  Prefactor     5.4125        2.7880        .82424E-04   -1.5243    
   5  Prefactor     1.8086        1.8000        .47577E-03   -1.5439    
   6  Prefactor     .10000E-03    4.4449        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.838        5.3325        .10360E-03   -1.4964    
   8  Prefactor     8.0654        10.004        .70588E-03   -1.5140    
   9  Prefactor     8.0647        10.012        .14118E-03   -1.5140    
  10  Prefactor     148.31        85.528        .16547E-03   -1.3266    
  11  Prefactor     .10000E-03    5.0389        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3489        4.8380        .14663E-03   -1.5245    
  13  norm          .10000E-03    3.2959        .13122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.3006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6833        .93756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5876        15.802        .15635E-03   -1.5195    
  18  norm          1.5021        4.4958        .25238E-03   -1.5463    
  19  norm          21.630        17.363        .86125E-04   -1.4777    
  20  norm          7.7151        7.1488        .11468E-03   -1.5152    
  21  norm          16.338        14.560        .99088E-04   -1.4899    
  22  norm          2.4226        22.249        .13145E-02   -1.5397    
  23  Prefactor     .10000E-03    1.0629        .74954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5533        .15577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6683        5.2455        .17471E-03   -1.5276    
  26  Prefactor     .10000E-03    110.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.1635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.4896        .15488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     75.572        69.544        .46180E-04   -1.3967    
  30  Prefactor     .10000E-03    1.6479        .93475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .90274        .19573        .22752E-03   -.96364    
  32  Prefactor     .85521        .23467        .28896E-03   -.97724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15469e-10
Minuit parameter uncertainties:
  1  5.64027e-07
  2  3.10312
  3  5.81286
  4  2.78808
  5  1.80002
  6  1.31973e-07
  7  5.33271
  8  10.0059
  9  10.0145
  10  85.5998
  11  3.42643e-07
  12  4.83839
  13  2.45453e-05
  14  1.94698e-06
  15  1.30395e-05
  16  5.98512e-07
  17  15.8116
  18  4.49682
  19  17.3675
  20  7.14959
  21  14.5631
  22  14.6905
  23  8.57754e-07
  24  1.91062e-06
  25  5.24599
  26  9.13701e-05
  27  1.16157e-06
  28  1.30145e-07
  29  69.6187
  30  6.20214e-07
  31  0.195882
  32  0.234947
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  8.552e-01  2.349e-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:  9.027e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/49524/likelihoodResults_579398401_579657601_4FGL_J1257.8+3228_daily_bin1312.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) = 5603.11736105
delta logL = -0.00144605734386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5603.11591043
delta logL = 4.56821180705e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8524       1.0000          .0000       5.0000    
     3 'Normalizat'    .90273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85519       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=   5603.116     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .70403        .46693E-01** at limit **
   2  alpha         2.8538        3.1237        .41680       -.17182E-05
   3  Normalizat    .90274        .28389E-02    .44936E-01    .25691E-03
   4  Prefactor     .85521        .35380E-02    .65326E-01    .11265E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.85383
  Normalizat = 0.902743
  Prefactor  = 0.855208
 **********
 **   18 **HESSE 
 **********

 FCN=   5603.116     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    690.72        .17137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8538        3.9244        .16672        .14201    
   3  Normalizat    .90274        .62568E-01    .22752E-03   -.96364    
   4  Prefactor     .85521        .77725E-01    .28896E-03   -.97724    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.46445e-06
Minuit parameter uncertainties:
  1  0.00245619
  2  2274.67
  3  0.0625733
  4  0.077735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49524': 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): 102
logL (Free Index) = 5603.11591035
delta logL = 4.64108688902e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.456e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.854e+00  2.275e+03  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:  8.552e-01  7.773e-02  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:  9.027e-01  6.257e-02  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/49524/cmap_HighResolution_579398401_579657601_4FGL_J1257.8+3228_daily_bin1312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-06 12:30:49.908181', job_id='49524', GAL2='0.86', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630956649.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1312' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:30:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 49524: <4FGL_J1257.8+3228_daily_bin1312> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1312> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:15:51 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:15:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:15:52 2021
Terminated at Mon Sep  6 12:30:51 2021
Results reported at Mon Sep  6 12:30:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1312 194.473 32.4721 579398401 579657601 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 :                                   852.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

