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


Performing analysis on: 4FGL_J0231.8+1322_daily_bin1429
RA = 37.9616, Dec = 13.3692
tmin = 609724801, tmax = 609984001
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='499939', job_status='RUN', time_executed='2021-08-16 03:56:46.367701', time_epoch_executed='1629111406.37' WHERE source_name='4FGL J0231.8+1322' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499939/ft1_4FGL_J0231.8+1322_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499939/ft2_4FGL_J0231.8+1322_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499939/ft1_4FGL_J0231.8+1322_daily_bin1429.fits outfile=/scratch/kocevski/499939/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1429.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=609724801.0 tmax=609984001.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.24
user 2.36
sys 0.87

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499939/ft1_filtered_4FGL_J0231.8+1322_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/499939/ft2_4FGL_J0231.8+1322_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/499939/ltcube_609724801_609984001_4FGL_J0231.8+1322_daily_bin1429.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/499939/ft2_4FGL_J0231.8+1322_daily_bin1429.fits
.....................!
real 15.29
user 14.10
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499939/ft1_filtered_4FGL_J0231.8+1322_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/499939/ft2_4FGL_J0231.8+1322_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/499939/ltcube_609724801_609984001_4FGL_J0231.8+1322_daily_bin1429.fits outfile=/scratch/kocevski/499939/expmap_609724801_609984001_4FGL_J0231.8+1322_daily_bin1429.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/499939/ltcube_609724801_609984001_4FGL_J0231.8+1322_daily_bin1429.fits
.....................!
real 194.74
user 187.99
sys 6.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/499939/ft1_filtered_4FGL_J0231.8+1322_daily_bin1429.fits scfile=/scratch/kocevski/499939/ft2_4FGL_J0231.8+1322_daily_bin1429.fits outfile=/scratch/kocevski/499939/cmap_609724801_609984001_4FGL_J0231.8+1322_daily_bin1429.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 1.23
user 0.37
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499939/ft1_filtered_4FGL_J0231.8+1322_daily_bin1429.fits scfile=/scratch/kocevski/499939/ft2_4FGL_J0231.8+1322_daily_bin1429.fits outfile=/scratch/kocevski/499939/cmap_HighResolution_609724801_609984001_4FGL_J0231.8+1322_daily_bin1429.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 1.25
user 0.37
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    40.365       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    194.77       1.0000         .10000E-03   10000.    
     9 'Prefactor '    105.30       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56405E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.377       1.0000         .10000E-03   10000.    
    13 'Prefactor '    87.134       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.705       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10714E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    64.323       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.8141       1.0000         .10000E-03   10000.    
    28 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .18885       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2013       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=   2525.562     FROM MIGRAD    STATUS=CONVERGED   1471 CALLS     5569 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          40.363        62.473        .63091E-04   -.39643E-05
   2  Prefactor     .10000E-03    23.369        .18142E-02** at limit **
   3  Prefactor     .10000E-03    12.452        .17323E-02** at limit **
   4  norm          .10000E-03    24.840        .18142E-02** at limit **
   5  Prefactor     .10000E-03    78.288        .18142E-02** at limit **
   6  Prefactor     13.958        10.026        .10722E-03    .49996E-04
   7  Prefactor     .10000E-03    72.445        .18142E-02** at limit **
   8  Prefactor     194.97        398.32        .14472E-03    .52631E-05
   9  Prefactor     105.28        74.940        .39188E-04   -.14505E-05
  10  Prefactor     .10000E-03    122.67        .18142E-02** at limit **
  11  Prefactor     .10002E-03    6736.0        .21096E-02** at limit **
  12  Prefactor     52.364        80.121        .55418E-04   -.84109E-05
  13  Prefactor     87.151        64.195        .43040E-04   -.23297E-04
  14  Prefactor     23.698        36.201        .82273E-04   -.14855E-04
  15  Prefactor     .10000E-03    38.446        .18142E-02** at limit **
  16  norm          1.3041        1.5999        .67580E-04   -.12146E-03
  17  Prefactor     .10000E-03    71.624        .18142E-02** at limit **
  18  Prefactor     .10000E-03    532.37        .70389E-02** at limit **
  19  norm          64.336        48.071        .50037E-04   -.13178E-04
  20  Prefactor     .10000E-03    36.837        .18142E-02** at limit **
  21  Prefactor     .10000E-03    82.925        .18142E-02** at limit **
  22  Prefactor     .10000E-03    47.632        .18142E-02** at limit **
  23  Prefactor     .10000E-03    35.805        .18142E-02** at limit **
  24  Prefactor     .10000E-03    9.8112        .15265E-02** at limit **
  25  norm          .10000E-03    13.491        .18016E-02** at limit **
  26  norm          .10000E-03    5.6357        .11651E-02** at limit **
  27  norm          4.8155        7.9692        .83930E-03    .40095E-04
  28  norm          .10000E-03    31.351        .18142E-02** at limit **
  29  Prefactor     .10000E-03    311.79        .18142E-02** at limit **
  30  Prefactor     .10000E-03    6.2439        .12222E-02** at limit **
  31  Normalizat    .18890        .47565        .96641E-02    .94534E-05
  32  Prefactor     1.2013        .19477        .16473E-03    .33404E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 40.3634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9578
  Prefactor  = 0.0001
  Prefactor  = 194.967
  Prefactor  = 105.277
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 52.3639
  Prefactor  = 87.1508
  Prefactor  = 23.6985
  Prefactor  = 0.0001
  norm       = 1.30406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 64.3356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.81546
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.188902
  Prefactor  = 1.20133
 **********
 **   18 **HESSE 
 **********

 FCN=   2525.562     FROM HESSE     STATUS=OK           629 CALLS     6198 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          40.363        62.434        .25237E-05   -1.4436    
   2  Prefactor     .10000E-03    23.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.452        .34647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    24.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    78.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.958        10.023        .42886E-05   -1.4961    
   7  Prefactor     .10000E-03    72.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     194.97        397.96        .57890E-05   -1.2906    
   9  Prefactor     105.28        74.932        .78377E-05   -1.3652    
  10  Prefactor     .10000E-03    122.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    6736.2        .42193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     52.364        80.059        .22167E-05   -1.4259    
  13  Prefactor     87.151        64.059        .86081E-05   -1.3838    
  14  Prefactor     23.698        36.201        .32909E-05   -1.4734    
  15  Prefactor     .10000E-03    38.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3041        1.5998        .27032E-05   -1.5480    
  17  Prefactor     .10000E-03    71.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    545.08        .28155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          64.336        48.048        .20015E-05   -1.4102    
  20  Prefactor     .10000E-03    36.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    82.926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.8146        .30530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    13.492        .36033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.6357        .23301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.8155        7.9645        .33572E-04   -1.5269    
  28  norm          .10000E-03    31.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    311.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.2446        .24444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .18890        .46126        .38656E-03   -1.3023    
  32  Prefactor     1.2013        .19014        .65890E-05   -.86290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5393e-11
Minuit parameter uncertainties:
  1  62.5351
  2  1.77313e-06
  3  6.88476e-08
  4  6.40254e-05
  5  5.83771e-05
  6  10.0244
  7  8.77529e-05
  8  403.67
  9  74.9992
  10  0.000146268
  11  0.0181521
  12  80.2239
  13  64.1095
  14  36.2344
  15  3.20728e-05
  16  1.59984
  17  8.13497e-05
  18  0.000202314
  19  48.0772
  20  2.67793e-05
  21  5.22853e-05
  22  2.97738e-05
  23  8.97933e-06
  24  5.04279e-06
  25  1.65672e-06
  26  1.0494e-07
  27  7.96621
  28  8.3687e-05
  29  0.000525467
  30  4.60113e-06
  31  0.471127
  32  0.190253
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  5.236e+01  8.022e+01  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.201e+00  1.903e-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:  1.889e-01  4.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 1.06e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/499939/likelihoodResults_609724801_609984001_4FGL_J0231.8+1322_daily_bin1429.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) = 2525.2850728
delta logL = 0.276867351396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2525.27660726
delta logL = 0.28533289933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.093       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9013       1.0000          .0000       10.000    
     3 'Normalizat'    .24065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1892       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.

 FCN=   2525.277     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.110        67.461        .87508E-05    .12117E-03
   2  Index         1.9010        .90010        .28128E-04   -.12627E-03
   3  Normalizat    .24122        .53080        .15498E-04    .34080E-04
   4  Prefactor     1.1888        .21742       -.37014E-05   -.52962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.1097
  Index      = 1.90103
  Normalizat = 0.241216
  Prefactor  = 1.18885
 **********
 **   18 **HESSE 
 **********

 FCN=   2525.277     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.110        65.613        .56661E-04   -1.4291    
   2  Index         1.9010        .82199        .70393E-02   -.66848    
   3  Normalizat    .24122        .45224        .87337E-03   -1.2653    
   4  Prefactor     1.1888        .18470        .16547E-03   -.86675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16404e-09
Minuit parameter uncertainties:
  1  65.7079
  2  0.828122
  3  0.459364
  4  0.184797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499939': 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) = 2525.27660534
delta logL = 0.285334812554

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  5.011e+01  6.571e+01  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  1.901e+00  8.281e-01  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.189e+00  1.848e-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:  2.412e-01  4.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 37.962 13.369
Photon Index (Free Index): 1.90 +/- 0.83
Photon Flux (Free Index): 1.42e-07 +/- 2.36e-07
Energy Flux (Free Index): 1.27e-04 +/- 1.86e-04

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/499939/cmap_HighResolution_609724801_609984001_4FGL_J0231.8+1322_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-02', comment='SUCCESS', energy_flux2='1.27e-04', dlogl='2.85e-01', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-08-16 04:06:37.033355', photon_index_error2='0.83', photon_index2='1.90', ts='0.80', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.06e-06', energy_flux_error2='1.86e-04', EG='0.19', time_epoch_completed='1629111997.03', return_code='0', job_id='499939', GAL2='1.19', EG2='0.24', return_code2='0', photon_flux_error2='2.36e-07', ts2='1.44', photon_index='2.68' WHERE bin_id='1429' AND source_name='4FGL J0231.8+1322' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:06:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 499939: <4FGL_J0231.8+1322_daily_bin1429> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_daily_bin1429 37.9616 13.3692 609724801 609984001 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 :                                   598.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             349.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            660 sec.

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

