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


Performing analysis on: 4FGL_J0231.8+1322_daily_bin1480
RA = 37.9616, Dec = 13.3692
tmin = 622944001, tmax = 623203201
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='500018', job_status='RUN', time_executed='2021-08-16 03:59:35.818343', time_epoch_executed='1629111575.82' WHERE source_name='4FGL J0231.8+1322' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500018/ft1_4FGL_J0231.8+1322_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500018/ft2_4FGL_J0231.8+1322_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500018/ft1_4FGL_J0231.8+1322_daily_bin1480.fits outfile=/scratch/kocevski/500018/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1480.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=622944001.0 tmax=623203201.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.04
user 2.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500018/ft1_filtered_4FGL_J0231.8+1322_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/500018/ft2_4FGL_J0231.8+1322_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/500018/ltcube_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.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/500018/ft2_4FGL_J0231.8+1322_daily_bin1480.fits
.....................!
real 14.13
user 13.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500018/ft1_filtered_4FGL_J0231.8+1322_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/500018/ft2_4FGL_J0231.8+1322_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/500018/ltcube_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.fits outfile=/scratch/kocevski/500018/expmap_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.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/500018/ltcube_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.fits
.....................!
real 190.72
user 185.63
sys 4.67

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/500018/ft1_filtered_4FGL_J0231.8+1322_daily_bin1480.fits scfile=/scratch/kocevski/500018/ft2_4FGL_J0231.8+1322_daily_bin1480.fits outfile=/scratch/kocevski/500018/cmap_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.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 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500018/ft1_filtered_4FGL_J0231.8+1322_daily_bin1480.fits scfile=/scratch/kocevski/500018/ft2_4FGL_J0231.8+1322_daily_bin1480.fits outfile=/scratch/kocevski/500018/cmap_HighResolution_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.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 0.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/500018/ft1_filtered_4FGL_J0231.8+1322_daily_bin1480.fits', '/scratch/kocevski/500018/ft2_4FGL_J0231.8+1322_daily_bin1480.fits', expMap='/scratch/kocevski/500018/expmap_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.fits', expCube='/scratch/kocevski/500018/ltcube_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/500018/Model_4FGL_J0231.8+1322_daily_bin1480.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/500018/ft1_filtered_4FGL_J0231.8+1322_daily_bin1480.fits
Spacecraft file(s): /scratch/kocevski/500018/ft2_4FGL_J0231.8+1322_daily_bin1480.fits
Exposure map: /scratch/kocevski/500018/expmap_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.fits
Exposure cube: /scratch/kocevski/500018/ltcube_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/500018/Model_4FGL_J0231.8+1322_daily_bin1480.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) = 1836.21988292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.270       1.0000         .10000E-03   10000.    
     4 'norm      '    7.1466       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    129.22       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38316       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.8947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    203.85       1.0000         .10000E-03   10000.    
    21 'Prefactor '    80.033       1.0000         .10000E-03   10000.    
    22 'Prefactor '    86.248       1.0000         .10000E-03   10000.    
    23 'Prefactor '    70.925       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .61863       1.0000         .10000E-03   10000.    
    28 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    153.22       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .53788E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0409       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=   1836.199     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     4335 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10082E-03    22.756       -.39586E-05** at limit **
   2  Prefactor     .10001E-03    9.6701        .18239E-04** at limit **
   3  Prefactor     25.262        1.3588        .49392E-06   -.35297E-03
   4  norm          7.1370        1.2273       -.10360E-06   -.18083E-04
   5  Prefactor     .10005E-03    9.4000       -.14332E-04** at limit **
   6  Prefactor     .10000E-03    4.1952       -.53969E-06** at limit **
   7  Prefactor     45.956        8.6621       -.84800E-06   -.13352E-02
   8  Prefactor     .10010E-03    23.002       -.14858E-04** at limit **
   9  Prefactor     .10001E-03    14.625        .10178E-04** at limit **
  10  Prefactor     .10003E-03    69.733        .27492E-04** at limit **
  11  Prefactor     129.21        5.0341        .15905E-06    .26898E-02
  12  Prefactor     .10000E-03    13.818       -.40237E-05** at limit **
  13  Prefactor     .10136E-03    45.809       -.21900E-04** at limit **
  14  Prefactor     .10000E-03    11.198        .55358E-05** at limit **
  15  Prefactor     .28529        567.26        .56703E-04   -.68978E-03
  16  norm          .10000E-03    .76616       -.30902E-06** at limit **
  17  Prefactor     .22298E-02    268.55        .17499E-04** at limit **
  18  Prefactor     .10004E-03    31.867        .20341E-04** at limit **
  19  norm          9.8942        1.0759        .55347E-07    .51196E-04
  20  Prefactor     203.83        5.1493        .10178E-05   -.11612E-01
  21  Prefactor     80.038        4.0608        .76873E-06   -.70617E-02
  22  Prefactor     86.201        12.994        .22276E-05   -.60222E-02
  23  Prefactor     70.866        17.405        .21378E-05   -.11233E-02
  24  Prefactor     .10000E-03    5.4786        .24189E-05** at limit **
  25  norm          .10003E-03    25.789       -.18683E-04** at limit **
  26  norm          .10001E-03    9.6738       -.76449E-05** at limit **
  27  norm          .60529        13.074       -.67056E-05   -.34433E-04
  28  norm          .10000E-03    9.8304        .18433E-04** at limit **
  29  Prefactor     153.22        2.9873       -.79338E-07   -.17194E-02
  30  Prefactor     .10000E-03    3.6576       -.21240E-05** at limit **
  31  Normalizat    .53013E-01    1.6288        .13743E-04    .86937E-05
  32  Prefactor     1.0412        .20161        .19933E-05    .83510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100825
  Prefactor  = 0.000100005
  Prefactor  = 25.262
  norm       = 7.13699
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 45.956
  Prefactor  = 0.000100098
  Prefactor  = 0.000100015
  Prefactor  = 0.000100034
  Prefactor  = 129.21
  Prefactor  = 0.0001
  Prefactor  = 0.000101355
  Prefactor  = 0.0001
  Prefactor  = 0.28529
  norm       = 0.0001
  Prefactor  = 0.00222975
  Prefactor  = 0.000100037
  norm       = 9.89422
  Prefactor  = 203.832
  Prefactor  = 80.0379
  Prefactor  = 86.2013
  Prefactor  = 70.8664
  Prefactor  = 0.0001
  norm       = 0.000100033
  norm       = 0.000100006
  norm       = 0.605288
  norm       = 0.000100003
  Prefactor  = 153.225
  Prefactor  = 0.0001
  Normalizat = 0.0530126
  Prefactor  = 1.04118
 **********
 **   18 **HESSE 
 **********

 FCN=   1836.199     FROM HESSE     STATUS=NOT POSDEF   709 CALLS     5044 TOTAL
                     EDM=   .30E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10082E-03    70.913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    17.653        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.262        32.046        .19922E-02   -1.4702    
   4  norm          7.1370        20.930        .37513E-02   -1.5174    
   5  Prefactor     .10005E-03    14.692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.956        745.20        .14791E-02   -1.4351    
   8  Prefactor     .10010E-03    66.569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    13.599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    80.501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     129.21        404.60        .88543E-03   -1.3430    
  12  Prefactor     .10000E-03    12.210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10136E-03    61.228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .28529        80.984        .10784       -1.5601    
  16  norm          .10000E-03    .66991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22298E-02    1450.8        .90712E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    28.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.8942        33.237        .31847E-02   -1.5079    
  20  Prefactor     203.83        167.43        .70765E-03   -1.2843    
  21  Prefactor     80.038        225.49        .11223E-02   -1.3916    
  22  Prefactor     86.201        91.071        .10815E-02   -1.3848    
  23  Prefactor     70.866        67.426        .11917E-02   -1.4022    
  24  Prefactor     .10000E-03    4.8389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10003E-03    22.958        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    15.613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .60529        49.699        .11746E-01   -1.5552    
  28  norm          .10000E-03    18.075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     153.22        5887.3        .81415E-03   -1.3226    
  30  Prefactor     .10000E-03    3.2366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .53013E-01    8.9360        .32817       -1.4395    
  32  Prefactor     1.0412        .98068        .40472E-01   -.91369    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.02587e-05
Minuit parameter uncertainties:
  1  0.0153147
  2  0.000607169
  3  32.0674
  4  20.9517
  5  0.0017676
  6  2.63657e-06
  7  375.788
  8  0.00511451
  9  0.000901497
  10  0.0033025
  11  413.796
  12  0.000144679
  13  0.0182361
  14  5.01461e-05
  15  9.62479
  16  5.68984e-07
  17  3.60671
  18  0.00205773
  19  33.2996
  20  167.824
  21  227.968
  22  91.2186
  23  67.4983
  24  1.72886e-05
  25  0.00175307
  26  0.000624142
  27  10.978
  28  0.000499268
  29  1421.55
  30  1.18683e-05
  31  2.75826
  32  0.998365
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1836.1994249

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.447e-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:  1.041e+00  9.984e-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:  5.301e-02  2.758e+00  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.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500018/likelihoodResults_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.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) = 1836.1997676
delta logL = -0.000342697433098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1836.19942502
delta logL = -1.12036332212e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6689       1.0000          .0000       10.000    
     3 'Normalizat'    .52746E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0413       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=   1836.199     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      261 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    219.57        .15626E-01** at limit **
   2  Index         2.0884        8.5087        .50000        .10060E-06
   3  Normalizat    .53024E-01    .50317E-01    .12744E-01    .23878E-03
   4  Prefactor     1.0412        .18913E-01    .15251E-03    .30640E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.08837
  Normalizat = 0.0530241
  Prefactor  = 1.04119
 **********
 **   18 **HESSE 
 **********

 FCN=   1836.199     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1697.5        .16608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0884        5.9740        .50000       -.62159    
   3  Normalizat    .53024E-01    .16467        .50975E-03   -1.4395    
   4  Prefactor     1.0412        .62441E-01    .30501E-04   -.91369    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.95455e-09
Minuit parameter uncertainties:
  1  0.00380461
  2  2531.33
  3  0.166456
  4  0.0624452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500018': 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) = 1836.19942447
delta logL = 4.34252569903e-07

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  3.805e-03  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.088e+00  2.531e+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:  1.041e+00  6.245e-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:  5.302e-02  1.665e-01  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/500018/cmap_HighResolution_622944001_623203201_4FGL_J0231.8+1322_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-02', job_status='DONE', photon_flux_upper_limit='3.59e-07', time_completed='2021-08-16 04:07:51.833181', job_id='500018', GAL2='1.04', fit_tolerance='1e-08', EG2='0.05', EG='0.05', time_epoch_completed='1629112071.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.04', dlogl='4.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1480' AND source_name='4FGL J0231.8+1322' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:07:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 500018: <4FGL_J0231.8+1322_daily_bin1480> in cluster <slac> Done

Job <4FGL_J0231.8+1322_daily_bin1480> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 16 03:55:44 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 03:57:04 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:57:04 2021
Terminated at Mon Aug 16 04:07:52 2021
Results reported at Mon Aug 16 04:07:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_daily_bin1480 37.9616 13.3692 622944001 623203201 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 :                                   492.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            728 sec.

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

