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


Performing analysis on: 4FGL_J0231.8+1322_daily_bin1357
RA = 37.9616, Dec = 13.3692
tmin = 591062401, tmax = 591321601
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='499822', job_status='RUN', time_executed='2021-08-16 03:59:22.816658', time_epoch_executed='1629111562.82' WHERE source_name='4FGL J0231.8+1322' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499822/ft1_4FGL_J0231.8+1322_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499822/ft2_4FGL_J0231.8+1322_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499822/ft1_4FGL_J0231.8+1322_daily_bin1357.fits outfile=/scratch/kocevski/499822/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1357.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=591062401.0 tmax=591321601.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.81
user 2.79
sys 5.64

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499822/ft1_filtered_4FGL_J0231.8+1322_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/499822/ft2_4FGL_J0231.8+1322_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/499822/ltcube_591062401_591321601_4FGL_J0231.8+1322_daily_bin1357.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/499822/ft2_4FGL_J0231.8+1322_daily_bin1357.fits
.....................!
real 21.75
user 15.11
sys 6.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499822/ft1_filtered_4FGL_J0231.8+1322_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/499822/ft2_4FGL_J0231.8+1322_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/499822/ltcube_591062401_591321601_4FGL_J0231.8+1322_daily_bin1357.fits outfile=/scratch/kocevski/499822/expmap_591062401_591321601_4FGL_J0231.8+1322_daily_bin1357.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/499822/ltcube_591062401_591321601_4FGL_J0231.8+1322_daily_bin1357.fits
.....................!
real 201.59
user 187.22
sys 12.79

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/499822/ft1_filtered_4FGL_J0231.8+1322_daily_bin1357.fits scfile=/scratch/kocevski/499822/ft2_4FGL_J0231.8+1322_daily_bin1357.fits outfile=/scratch/kocevski/499822/cmap_591062401_591321601_4FGL_J0231.8+1322_daily_bin1357.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.93
user 0.39
sys 5.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499822/ft1_filtered_4FGL_J0231.8+1322_daily_bin1357.fits scfile=/scratch/kocevski/499822/ft2_4FGL_J0231.8+1322_daily_bin1357.fits outfile=/scratch/kocevski/499822/cmap_HighResolution_591062401_591321601_4FGL_J0231.8+1322_daily_bin1357.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.94
user 0.39
sys 5.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.790       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.214       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21486E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7950       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3129       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8301       1.0000         .10000E-03   10000.    
    16 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.480       1.0000         .10000E-03   10000.    
    19 'norm      '    9.0447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.559       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .22910       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13206E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.3827       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .28527       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1451       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=   2983.150     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4398 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    46.709       -.75789E-07** at limit **
   2  Prefactor     39.790        32.260       -.11648E-05   -.48929E-04
   3  Prefactor     .10000E-03    6.3701       -.68289E-07** at limit **
   4  norm          26.096        19.258       -.53976E-06   -.11068E-03
   5  Prefactor     49.214        27.449       -.45717E-06   -.39100E-04
   6  Prefactor     .10000E-03    2.7530       -.16432E-07** at limit **
   7  Prefactor     .10000E-03    438.38        .68339E-05** at limit **
   8  Prefactor     72.004        117.50       -.50348E-05    .40672E-04
   9  Prefactor     .10000E-03    14.912        .61890E-07** at limit **
  10  Prefactor     .10000E-03    104.63       -.14957E-06** at limit **
  11  Prefactor     82.021        114.27       -.36677E-05   -.93596E-04
  12  Prefactor     9.7976        22.335       -.19168E-05   -.63358E-04
  13  Prefactor     49.210        55.553       -.10595E-05   -.28771E-03
  14  Prefactor     3.3373        64.133       -.14755E-05   -.90173E-04
  15  Prefactor     1.8279        43.355       -.22014E-05   -.10870E-03
  16  norm          .10000E-03    .44236        .39205E-08** at limit **
  17  Prefactor     .10000E-03    32.595       -.13240E-06** at limit **
  18  Prefactor     65.492        49.478       -.24402E-05   -.79407E-04
  19  norm          9.0452        23.898       -.59205E-06   -.47230E-04
  20  Prefactor     .10000E-03    24.098       -.18213E-06** at limit **
  21  Prefactor     .10000E-03    33.011       -.20151E-07** at limit **
  22  Prefactor     .10000E-03    11.844       -.44019E-06** at limit **
  23  Prefactor     19.563        34.579       -.13431E-05   -.27688E-04
  24  Prefactor     .10000E-03    7.0579       -.61936E-07** at limit **
  25  norm          .10000E-03    9.3936        .10674E-07** at limit **
  26  norm          .10000E-03    5.6364       -.64599E-08** at limit **
  27  norm          .10000E-03    3.5786        .20767E-08** at limit **
  28  norm          .23101        18.196       -.57059E-06    .13673E-03
  29  Prefactor     .10004E-03    676.35       -.47991E-05** at limit **
  30  Prefactor     6.3841        7.5009       -.73372E-07   -.77495E-04
  31  Normalizat    .28487        .46257        .39578E-04   -.65946E-04
  32  Prefactor     1.1452        .17405       -.60514E-05   -.21239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 39.7898
  Prefactor  = 0.0001
  norm       = 26.0957
  Prefactor  = 49.2144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.0042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.021
  Prefactor  = 9.79758
  Prefactor  = 49.21
  Prefactor  = 3.33733
  Prefactor  = 1.82792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.492
  norm       = 9.04518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5627
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.23101
  Prefactor  = 0.000100036
  Prefactor  = 6.38411
  Normalizat = 0.284874
  Prefactor  = 1.1452
 **********
 **   18 **HESSE 
 **********

 FCN=   2983.150     FROM HESSE     STATUS=OK           643 CALLS     5041 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    46.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.790        32.262        .63544E-04   -1.4446    
   3  Prefactor     .10000E-03    6.3949        .13461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.096        19.262        .78424E-04   -1.4686    
   5  Prefactor     49.214        27.480        .57162E-04   -1.4304    
   6  Prefactor     .10000E-03    2.7560        .88489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    445.38        .40327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     72.004        117.73        .47333E-04   -1.4009    
   9  Prefactor     .10000E-03    14.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    104.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     82.021        114.42        .22163E-03   -1.3894    
  12  Prefactor     9.7976        21.947        .12804E-03   -1.5082    
  13  Prefactor     49.210        55.135        .57111E-04   -1.4304    
  14  Prefactor     3.3373        61.288        .22241E-03   -1.5343    
  15  Prefactor     1.8279        40.983        .30851E-03   -1.5438    
  16  norm          .10000E-03    .44681        .70041E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     65.492        49.485        .49596E-04   -1.4088    
  19  norm          9.0452        23.596        .13327E-03   -1.5106    
  20  Prefactor     .10000E-03    24.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.563        34.635        .90565E-04   -1.4823    
  24  Prefactor     .10000E-03    7.0894        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    9.4074        .16350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.6381        .12665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.6094        .10087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .23101        224.05        .40910E-02   -1.5612    
  29  Prefactor     .10004E-03    676.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.3841        7.5234        .15421E-03   -1.5203    
  31  Normalizat    .28487        .46738        .74047E-03   -1.2375    
  32  Prefactor     1.1452        .18362        .15216E-03   -.88035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22907e-09
Minuit parameter uncertainties:
  1  1.14474e-05
  2  32.2758
  3  4.43762e-05
  4  19.2669
  5  27.4866
  6  1.13921e-05
  7  0.000521903
  8  118.112
  9  4.1325e-05
  10  0.000158959
  11  114.729
  12  21.9652
  13  55.1927
  14  28.637
  15  17.3236
  16  3.0159e-06
  17  6.81674e-05
  18  49.516
  19  23.6202
  20  6.16581e-05
  21  4.08803e-05
  22  6.96187e-05
  23  34.6708
  24  2.10191e-05
  25  6.63178e-06
  26  1.77276e-06
  27  7.65054e-07
  28  14.4399
  29  0.00999297
  30  7.52453
  31  0.474003
  32  0.183725
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  9.798e+00  2.197e+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.145e+00  1.837e-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.849e-01  4.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/499822/likelihoodResults_591062401_591321601_4FGL_J0231.8+1322_daily_bin1357.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) = 2983.0948847
delta logL = 0.0551110632346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2983.09053132
delta logL = 0.0594644459297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5234       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1155       1.0000          .0000       10.000    
     3 'Normalizat'    .26281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1496       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=   2983.091     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      239 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5184        19.016        .13731E-03    .12188E-02
   2  Index         3.1160        1.3788        .97033E-02    .32459E-03
   3  Normalizat    .26269        .42668        .76900E-03   -.31296E-03
   4  Prefactor     1.1497        .16718        .15187E-03   -.12596E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.51844
  Index      = 3.11602
  Normalizat = 0.262687
  Prefactor  = 1.14969
 **********
 **   18 **HESSE 
 **********

 FCN=   2983.091     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5184        17.969        .27461E-04   -1.5124    
   2  Index         3.1160        1.3035        .38813E-03   -.38633    
   3  Normalizat    .26269        .42629        .30760E-04   -1.2514    
   4  Prefactor     1.1497        .16693        .30375E-04   -.87894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1084e-08
Minuit parameter uncertainties:
  1  17.9805
  2  1.32137
  3  0.431718
  4  0.167006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499822': 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) = 2983.0905311
delta logL = 0.059464663349

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  8.518e+00  1.798e+01  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  3.116e+00  1.321e+00  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.150e+00  1.670e-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.627e-01  4.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/499822/cmap_HighResolution_591062401_591321601_4FGL_J0231.8+1322_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-02', job_status='DONE', photon_flux_upper_limit='3.39e-07', time_completed='2021-08-16 04:10:37.703060', job_id='499822', GAL2='1.15', fit_tolerance='1e-08', EG2='0.26', EG='0.28', time_epoch_completed='1629112237.7', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.95e-02', ts2='0.40', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1357' AND source_name='4FGL J0231.8+1322' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:10:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 499822: <4FGL_J0231.8+1322_daily_bin1357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_daily_bin1357 37.9616 13.3692 591062401 591321601 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 :                                   753.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             212.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

