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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin992
RA = 194.473, Dec = 32.4721
tmin = 496454401, tmax = 496713601
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='47636', job_status='RUN', time_executed='2021-09-06 12:10:59.845165', time_epoch_executed='1630955459.85' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='992'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47636

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47636/ft1_4FGL_J1257.8+3228_daily_bin992.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47636/ft2_4FGL_J1257.8+3228_daily_bin992.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47636/ft1_4FGL_J1257.8+3228_daily_bin992.fits outfile=/scratch/kocevski/47636/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin992.fits ra=194.473 dec=32.4721 rad=12.0 tmin=496454401.0 tmax=496713601.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.48
user 3.20
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47636/ft1_filtered_4FGL_J1257.8+3228_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/47636/ft2_4FGL_J1257.8+3228_daily_bin992.fits sctable="SC_DATA" expcube=/scratch/kocevski/47636/ltcube_496454401_496713601_4FGL_J1257.8+3228_daily_bin992.fits outfile=/scratch/kocevski/47636/expmap_496454401_496713601_4FGL_J1257.8+3228_daily_bin992.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/47636/ltcube_496454401_496713601_4FGL_J1257.8+3228_daily_bin992.fits
.....................!
real 190.49
user 185.03
sys 5.08

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/47636/ft1_filtered_4FGL_J1257.8+3228_daily_bin992.fits scfile=/scratch/kocevski/47636/ft2_4FGL_J1257.8+3228_daily_bin992.fits outfile=/scratch/kocevski/47636/cmap_496454401_496713601_4FGL_J1257.8+3228_daily_bin992.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47636/ft1_filtered_4FGL_J1257.8+3228_daily_bin992.fits scfile=/scratch/kocevski/47636/ft2_4FGL_J1257.8+3228_daily_bin992.fits outfile=/scratch/kocevski/47636/cmap_HighResolution_496454401_496713601_4FGL_J1257.8+3228_daily_bin992.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3570       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45175E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .57283       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.671       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1034       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7951       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.832       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .18712       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8568       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8845       1.0000         .10000E-03   10000.    
    20 'norm      '    7.7370       1.0000         .10000E-03   10000.    
    21 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.3077       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    19.030       1.0000         .10000E-03   10000.    
    26 'Prefactor '    79.957       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9627       1.0000         .10000E-03   10000.    
    29 'Prefactor '    19.033       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .63214       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3844       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=   5754.299     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     3763 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.389       -.72375E-07** at limit **
   2  norm          17.101        5.0803        .39491E-07    .12977E-03
   3  Prefactor     8.3550        11.119        .72588E-06    .54403E-05
   4  Prefactor     .10000E-03    1.8405       -.11804E-06** at limit **
   5  Prefactor     .57303        1.9298        .10502E-05    .30783E-03
   6  Prefactor     14.669        8.3075       -.13329E-06   -.34152E-04
   7  norm          7.1034        4.8165        .74925E-06    .29163E-03
   8  Prefactor     .10000E-03    6.8581       -.53429E-06** at limit **
   9  Prefactor     .10000E-03    10.588       -.28930E-06** at limit **
  10  Prefactor     .10000E-03    38.051        .65249E-07** at limit **
  11  Prefactor     .10000E-03    2.1042       -.40722E-07** at limit **
  12  Prefactor     2.7958        3.5700        .57498E-07   -.10924E-03
  13  norm          .10000E-03    1.7726        .28085E-06** at limit **
  14  Prefactor     28.832        38.360        .20851E-06   -.85242E-05
  15  Prefactor     .10000E-03    7.3569        .76864E-07** at limit **
  16  norm          .18953        2.2460        .61740E-06   -.27335E-03
  17  Prefactor     .10000E-03    4.9546        .12723E-06** at limit **
  18  norm          7.8650        5.1458       -.57687E-06   -.10700E-02
  19  norm          3.8838        8.0318        .28946E-06    .16068E-04
  20  norm          7.7392        3.5537       -.24446E-06   -.12209E-02
  21  norm          .10000E-03    7.1280        .26672E-06** at limit **
  22  norm          6.3097        11.127        .13102E-06   -.78429E-05
  23  Prefactor     .10000E-03    2.3728        .28508E-05** at limit **
  24  Prefactor     .10000E-03    3.5208        .28216E-06** at limit **
  25  norm          19.032        8.8972        .96338E-07   -.57670E-04
  26  Prefactor     80.016        54.944        .84922E-06   -.11801E-03
  27  Prefactor     .10000E-03    7.9858        .57541E-06** at limit **
  28  Prefactor     6.9684        20.013        .13658E-05   -.15693E-05
  29  Prefactor     19.049        34.283        .18564E-05    .70739E-04
  30  Prefactor     .10000E-03    1.2421        .21001E-07** at limit **
  31  Normalizat    .63234        .16879       -.30156E-05   -.58147E-03
  32  Prefactor     1.3843        .21481        .69996E-06   -.57782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 17.1012
  Prefactor  = 8.35503
  Prefactor  = 0.000100001
  Prefactor  = 0.573027
  Prefactor  = 14.6685
  norm       = 7.1034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79579
  norm       = 0.0001
  Prefactor  = 28.8321
  Prefactor  = 0.0001
  norm       = 0.189526
  Prefactor  = 0.0001
  norm       = 7.86498
  norm       = 3.88383
  norm       = 7.73918
  norm       = 0.0001
  norm       = 6.30972
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 19.0325
  Prefactor  = 80.0161
  Prefactor  = 0.0001
  Prefactor  = 6.96842
  Prefactor  = 19.0488
  Prefactor  = 0.0001
  Normalizat = 0.632338
  Prefactor  = 1.38434
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.299     FROM HESSE     STATUS=OK           657 CALLS     4420 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.101        4.5647        .78764E-04   -1.4881    
   3  Prefactor     8.3550        11.146        .13868E-03   -1.5130    
   4  Prefactor     .10000E-03    12.930        .17622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .57303        1.9053        .17972E-03   -1.5557    
   6  Prefactor     14.669        8.3016        .10457E-03   -1.4942    
   7  norm          7.1034        4.8323        .65319E-03   -1.5175    
   8  Prefactor     .10000E-03    6.9015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1075        .10746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7958        3.5621        .15737E-03   -1.5374    
  13  norm          .10000E-03    3.0262        .19646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.832        38.363        .74614E-04   -1.4634    
  15  Prefactor     .10000E-03    7.3642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .18953        5.8299        .21747E-02   -1.5621    
  17  Prefactor     .10000E-03    4.9628        .16492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8650        5.2061        .13565E-03   -1.5147    
  19  norm          3.8838        8.0225        .20473E-03   -1.5314    
  20  norm          7.7392        3.5388        .92733E-04   -1.5152    
  21  norm          .10000E-03    7.2088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.3097        11.118        .15982E-03   -1.5206    
  23  Prefactor     .10000E-03    2.8735        .18566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5242        .13901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          19.032        8.8945        .91812E-04   -1.4835    
  26  Prefactor     80.016        55.018        .22457E-03   -1.3917    
  27  Prefactor     .10000E-03    8.0192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.9684        20.034        .15204E-03   -1.5180    
  29  Prefactor     19.049        34.412        .91806E-04   -1.4835    
  30  Prefactor     .10000E-03    1.2464        .82559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .63234        .19949        .28060E-03   -1.0663    
  32  Prefactor     1.3843        .25496        .25531E-03   -.80833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01348e-08
Minuit parameter uncertainties:
  1  2.99275e-06
  2  4.56477
  3  11.1489
  4  0.000232298
  5  1.9055
  6  8.30223
  7  4.83252
  8  4.03373e-05
  9  1.9768e-05
  10  4.4772e-05
  11  1.73997e-07
  12  3.56237
  13  8.83103e-06
  14  38.3959
  15  1.04627e-05
  16  2.10197
  17  1.18652e-05
  18  5.20636
  19  8.02468
  20  3.53888
  21  3.90434e-05
  22  11.1217
  23  0.000190912
  24  2.98499e-06
  25  8.89514
  26  55.0533
  27  5.2426e-05
  28  20.0535
  29  34.4482
  30  1.47853e-06
  31  0.199723
  32  0.255197
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  8.831e-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:  1.384e+00  2.552e-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:  6.323e-01  1.997e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47636/likelihoodResults_496454401_496713601_4FGL_J1257.8+3228_daily_bin992.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) = 5754.30104442
delta logL = -0.00156988237995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5754.29947486
delta logL = -3.23847416439e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2030       1.0000          .0000       5.0000    
     3 'Normalizat'    .63234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3844       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=   5754.299     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      261 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    524.43        .19780E-02** at limit **
   2  alpha         1.9199        3.9905        .16610       -.50102E-07
   3  Normalizat    .63234        .68052E-01    .28060E-03    .58433E-03
   4  Prefactor     1.3843        .88722E-01    .25531E-03    .57218E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91987
  Normalizat = 0.632342
  Prefactor  = 1.38434
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.299     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3779        .39561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9199        3.2022        .66439E-02   -.23419    
   3  Normalizat    .63234        .19363        .56120E-04   -1.0663    
   4  Prefactor     1.3843        .25236        .51062E-04   -.80833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99835e-10
Minuit parameter uncertainties:
  1  1.30088e-05
  2  157.632
  3  0.193838
  4  0.252585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47636': 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) = 5754.29947286
delta logL = 1.67220696312e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.384e+00  2.526e-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:  6.323e-01  1.938e-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/47636/cmap_HighResolution_496454401_496713601_4FGL_J1257.8+3228_daily_bin992.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2021-09-06 12:24:56.082359', job_id='47636', GAL2='1.38', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630956296.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='1.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='992' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:24:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 47636: <4FGL_J1257.8+3228_daily_bin992> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin992> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:10:47 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:10:49 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:10:49 2021
Terminated at Mon Sep  6 12:24:56 2021
Results reported at Mon Sep  6 12:24:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin992 194.473 32.4721 496454401 496713601 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

