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


Performing analysis on: 4FGL_J0231.8+1322_daily_bin1201
RA = 37.9616, Dec = 13.3692
tmin = 550627201, tmax = 550886401
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='498503', job_status='RUN', time_executed='2021-08-16 03:53:36.669763', time_epoch_executed='1629111216.67' WHERE source_name='4FGL J0231.8+1322' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498503

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498503/ft1_4FGL_J0231.8+1322_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498503/ft1_4FGL_J0231.8+1322_daily_bin1201.fits outfile=/scratch/kocevski/498503/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1201.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=550627201.0 tmax=550886401.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 8.67
user 3.74
sys 4.79

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.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/498503/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1201.fits evtable="EVENTS" outfile="/scratch/kocevski/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.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 4.93
user 0.33
sys 4.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/498503/ltcube_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.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/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits
.....................!
real 18.82
user 13.26
sys 5.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/498503/ltcube_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.fits outfile=/scratch/kocevski/498503/expmap_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.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/498503/ltcube_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.fits
.....................!
real 196.26
user 185.43
sys 10.10

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J0231.8+1322 @ 37.9616 13.3692

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.fits scfile=/scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits outfile=/scratch/kocevski/498503/cmap_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.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=37.9616 yref=13.3692 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 5.03
user 0.38
sys 4.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.fits scfile=/scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits outfile=/scratch/kocevski/498503/cmap_HighResolution_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.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=37.9616 yref=13.3692 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 5.02
user 0.40
sys 4.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498503/Model_4FGL_J0231.8+1322_daily_bin1201.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/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.fits.......................!
real 37.22
user 29.69
sys 7.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.fits', '/scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits', expMap='/scratch/kocevski/498503/expmap_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.fits', expCube='/scratch/kocevski/498503/ltcube_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498503/Model_4FGL_J0231.8+1322_daily_bin1201.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0231.8+1322'

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  4.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/498503/ft1_filtered_4FGL_J0231.8+1322_daily_bin1201.fits
Spacecraft file(s): /scratch/kocevski/498503/ft2_4FGL_J0231.8+1322_daily_bin1201.fits
Exposure map: /scratch/kocevski/498503/expmap_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.fits
Exposure cube: /scratch/kocevski/498503/ltcube_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498503/Model_4FGL_J0231.8+1322_daily_bin1201.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) = 1642.47694262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.960       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2458       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12672E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.323       1.0000         .10000E-03   10000.    
    16 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    73.131       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    80.587       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16945E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3654       1.0000         .10000E-03   10000.    
    26 'norm      '    32.164       1.0000         .10000E-03   10000.    
    27 'norm      '    3.3860       1.0000         .10000E-03   10000.    
    28 'norm      '    6.8175       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11305E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .78705       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .50464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1642.282     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     3767 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.965        1.2594        .61669E-06   -.35776E-03
   2  Prefactor     .10000E-03    11.219        .21032E-05** at limit **
   3  Prefactor     .10000E-03    5.8331       -.50764E-07** at limit **
   4  norm          .10002E-03    8.7428        .11870E-04** at limit **
   5  Prefactor     .10013E-03    13.251       -.58454E-05** at limit **
   6  Prefactor     2.2457        5.1629       -.12921E-06    .13957E-03
   7  Prefactor     .10002E-03    20.281        .28942E-04** at limit **
   8  Prefactor     .10438E-03    75.853        .36701E-04** at limit **
   9  Prefactor     .10101E-03    8.2627       -.20365E-04** at limit **
  10  Prefactor     .11221E-03    52.638        .13357E-04** at limit **
  11  Prefactor     .10045E-03    73.090       -.39246E-04** at limit **
  12  Prefactor     .10001E-03    4.5986       -.40105E-06** at limit **
  13  Prefactor     8.8913        1.0450       -.35903E-06    .11267E-03
  14  Prefactor     .10002E-03    8.8321       -.13625E-04** at limit **
  15  Prefactor     22.338        2.2108       -.11868E-05    .55091E-03
  16  norm          .10000E-03    8.0026        .23241E-05** at limit **
  17  Prefactor     .10004E-03    14.167        .72831E-05** at limit **
  18  Prefactor     73.142        1.7100        .74119E-06   -.62032E-03
  19  norm          .10003E-03    13.654       -.84312E-05** at limit **
  20  Prefactor     80.589        1.1639        .34111E-06   -.68485E-03
  21  Prefactor     .10005E-03    26.373       -.23749E-05** at limit **
  22  Prefactor     .11255E-03    52.409        .17394E-04** at limit **
  23  Prefactor     .10000E-03    37.357       -.56797E-04** at limit **
  24  Prefactor     .10080E-03    6.9027        .19336E-04** at limit **
  25  norm          3.3296        3.5597       -.56633E-05    .69050E-04
  26  norm          32.165        1.0340       -.93661E-07    .44168E-04
  27  norm          3.3857        5.3777        .39183E-06   -.20149E-04
  28  norm          6.8161        1.0252        .11689E-06    .16712E-03
  29  Prefactor     .22759E-03    126.56       -.10110E-03** at limit **
  30  Prefactor     .10005E-03    4.6386        .55925E-05** at limit **
  31  Normalizat    .78670        .38316       -.16604E-05    .36270E-04
  32  Prefactor     .50480        .14804        .12544E-05    .57429E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 38.9652
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.000100133
  Prefactor  = 2.24569
  Prefactor  = 0.000100022
  Prefactor  = 0.000104379
  Prefactor  = 0.000101009
  Prefactor  = 0.000112209
  Prefactor  = 0.000100451
  Prefactor  = 0.000100005
  Prefactor  = 8.89133
  Prefactor  = 0.000100018
  Prefactor  = 22.3383
  norm       = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 73.1419
  norm       = 0.000100027
  Prefactor  = 80.5895
  Prefactor  = 0.000100049
  Prefactor  = 0.000112551
  Prefactor  = 0.0001
  Prefactor  = 0.000100796
  norm       = 3.3296
  norm       = 32.1648
  norm       = 3.3857
  norm       = 6.81608
  Prefactor  = 0.000227594
  Prefactor  = 0.000100046
  Normalizat = 0.786698
  Prefactor  = 0.5048
 **********
 **   18 **HESSE 
 **********

 FCN=   1642.282     FROM HESSE     STATUS=OK           727 CALLS     4494 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.965        46.079        .16054E-02   -1.4459    
   2  Prefactor     .10000E-03    11.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    8.7164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10013E-03    47.947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2457        5.2303        .68555E-02   -1.5408    
   7  Prefactor     .10002E-03    44.549        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10438E-03    97.270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10101E-03    17.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11221E-03    187.80        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10045E-03    243.01        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    17.326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.8913        30.986        .33612E-02   -1.5112    
  14  Prefactor     .10002E-03    8.9060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.338        33.396        .21194E-02   -1.4762    
  16  norm          .10000E-03    2.6148        .29035E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    46.582        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     73.142        40.294        .11737E-02   -1.3995    
  19  norm          .10003E-03    13.761        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     80.589        94.516        .11185E-02   -1.3910    
  21  Prefactor     .10005E-03    26.827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11255E-03    184.09        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    57.310        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10080E-03    8.5761        .40098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3296        99.875        .55147E-02   -1.5343    
  26  norm          32.165        21.174        .17663E-02   -1.4573    
  27  norm          3.3857        5.5085        .54971E-02   -1.5340    
  28  norm          6.8161        8.5641        .38416E-02   -1.5186    
  29  Prefactor     .22759E-03    365.42        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10005E-03    16.531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .78670        .39069        .76389E-01   -1.0056    
  32  Prefactor     .50480        .14215        .39737E-01   -1.1176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29505e-07
Minuit parameter uncertainties:
  1  46.1214
  2  0.000352863
  3  2.95019e-07
  4  0.000813391
  5  0.00504778
  6  5.23132
  7  0.00198303
  8  0.0413447
  9  0.00845906
  10  0.0960716
  11  0.0210288
  12  0.000604079
  13  31.0426
  14  0.000801338
  15  33.4238
  16  2.37235e-05
  17  0.00285395
  18  40.3093
  19  0.00122022
  20  94.6925
  21  0.00229448
  22  0.0964335
  23  0.00033592
  24  0.00522673
  25  36.5381
  26  21.1791
  27  5.50936
  28  8.56566
  29  0.43453
  30  0.0017516
  31  0.392095
  32  0.14225
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  6.041e-04  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  5.048e-01  1.423e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  7.867e-01  3.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 3.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498503/likelihoodResults_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.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) = 1642.2820896
delta logL = -0.000274283858062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1642.2818164
delta logL = -1.08736389848e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4313       1.0000          .0000       10.000    
     3 'Normalizat'    .78668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   1642.282     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      291 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.662        .14150E-01** at limit **
   2  Index         2.6514        5.5031        .50000        .31999E-06
   3  Normalizat    .78670        .20101E-01    .33815E-03    .38798E-04
   4  Prefactor     .50480        .78208E-02    .16048E-03    .93449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.65139
  Normalizat = 0.786698
  Prefactor  = 0.5048
 **********
 **   18 **HESSE 
 **********

 FCN=   1642.282     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    576.83        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6514        5.7351        .50000       -.48898    
   3  Normalizat    .78670        .61478E-01    .13526E-04   -1.0056    
   4  Prefactor     .50480        .23921E-01    .32096E-04   -1.1176    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4649e-08
Minuit parameter uncertainties:
  1  0.000216244
  2  1755.14
  3  0.0614834
  4  0.0239213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498503': 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) = 1642.28181531
delta logL = 3.02634362015e-09

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  2.162e-04  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.651e+00  1.755e+03  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  5.048e-01  2.392e-02  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  7.867e-01  6.148e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 37.962 13.369

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/498503/cmap_HighResolution_550627201_550886401_4FGL_J0231.8+1322_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-02', job_status='DONE', photon_flux_upper_limit='3.58e-07', time_completed='2021-08-16 04:02:09.984773', job_id='498503', GAL2='0.50', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1629111729.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='3.03e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1201' AND source_name='4FGL J0231.8+1322' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 498503: <4FGL_J0231.8+1322_daily_bin1201> in cluster <slac> Done

Job <4FGL_J0231.8+1322_daily_bin1201> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 03:50:30 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 03:52:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 03:52:13 2021
Terminated at Mon Aug 16 04:02:11 2021
Results reported at Mon Aug 16 04:02:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_daily_bin1201 37.9616 13.3692 550627201 550886401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0231.8+1322 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   582.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            701 sec.

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

